Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools - WRITEME: Updates to config #6594

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .tools/readmes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -175,4 +180,4 @@
"sdk_api_ref": 'https://awscli.amazonaws.com/v2/documentation/api/latest/reference/{{service["name"]}}/index.html',
}
},
}
}
7 changes: 6 additions & 1 deletion .tools/readmes/includes/run_instructions.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,19 @@ 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 %}
```bash
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 %}
Expand Down
3 changes: 3 additions & 0 deletions .tools/readmes/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion dotnetv3/SESv2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Alternatively, you can run the example from within your IDE.

#### Newsletter workflow

This example shows you how to run the Amazon SES v2 API newsletter workflow.
This example shows you how to Amazon SES v2 API newsletter workflow.


<!--custom.scenario_prereqs.sesv2_NewsletterWorkflow.start-->
Expand Down
2 changes: 1 addition & 1 deletion python/example_code/medical-imaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ functions within the same service.
This example shows you how to get started using HealthImaging.

```
python hello.py
python imaging_set_and_frames_workflow/hello.py
```


Expand Down
2 changes: 1 addition & 1 deletion python/example_code/s3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Sample applications that work across multiple AWS services.
This example shows you how to get started using Amazon S3.

```
python hello.py
python s3_basics/hello.py
```


Expand Down
Loading