diff --git a/.tools/readmes/config.py b/.tools/readmes/config.py index 2d85630b577..7107c98af33 100644 --- a/.tools/readmes/config.py +++ b/.tools/readmes/config.py @@ -76,6 +76,7 @@ "acm": "dotnetv3/ACM", "aurora": "dotnetv3/Aurora", "auto-scaling": "dotnetv3/AutoScaling", + "cloudformation": "dotnetv3/CloudFormation", "cloudwatch": "dotnetv3/CloudWatch", "cloudwatch-logs": "dotnetv3/CloudWatchLogs", "cognito-identity-provider": "dotnetv3/Cognito", @@ -101,6 +102,7 @@ "sagemaker": "dotnetv3/SageMaker", "secrets-manager": "dotnetv3/SecretsManager", "ses": "dotnetv3/SES", + "sesv2": "dotnetv3/SESv2", "sns": "dotnetv3/SNS", "sqs": "dotnetv3/SQS", "sfn": "dotnetv3/StepFunctions", @@ -137,6 +139,9 @@ "base_folder": "ruby", "service_folder": 'ruby/example_code/{{service["name"]}}', "sdk_api_ref": 'https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/{{service["name"] | capitalize}}.html', + "service_folder_overrides": { + "cognito-identity-provider": "ruby/example_code/cognito", + }, } }, "Rust": { @@ -175,4 +180,4 @@ "sdk_api_ref": 'https://awscli.amazonaws.com/v2/documentation/api/latest/reference/{{service["name"]}}/index.html', } }, -} +} \ No newline at end of file diff --git a/.tools/readmes/includes/run_instructions.jinja2 b/.tools/readmes/includes/run_instructions.jinja2 index b7ece9bc23a..463f3ab7716 100644 --- a/.tools/readmes/includes/run_instructions.jinja2 +++ b/.tools/readmes/includes/run_instructions.jinja2 @@ -79,7 +79,7 @@ go run ./hello {% endif %} {% if lang_config['name'] == 'Python' and lang_config['sdk_ver'] == 3 %} ``` -python hello.py +python {{ hello_ex['run_file'] }} ``` {% endif %} {% if lang_config['name'] == 'JavaScript' and lang_config['sdk_ver'] == 3 %} @@ -87,6 +87,11 @@ python hello.py node ./hello.js ``` {% endif %} +{% if lang_config['name'] == 'Ruby' and lang_config['sdk_ver'] == 3 %} +``` +ruby {{ hello_ex['run_file'] }} +``` +{% endif %} {% endfor %} {% if lang_config['name'] == 'Go' and lang_config['sdk_ver'] == 2 %} diff --git a/.tools/readmes/render.py b/.tools/readmes/render.py index 7e64074732f..a9c4bdee82f 100644 --- a/.tools/readmes/render.py +++ b/.tools/readmes/render.py @@ -124,6 +124,9 @@ def _transform_hello(self, pre_hello): "file": self.scanner.snippet( pre, self.sdk_ver, self.lang_config["service_folder"], api ), + "run_file": self.scanner.snippet( + pre, self.sdk_ver, self.lang_config["service_folder"], '' + ), "api": api, } post_hello.append(action)