Skip to content
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
2 changes: 1 addition & 1 deletion .tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Python 3.8
- [PEP 586](http://www.python.org/dev/peps/pep-0586), Literal types.
- [PEP 589](http://www.python.org/dev/peps/pep-0589), TypedDict.

Python 3.7
Python 3.9

- [PEP 557](http://www.python.org/dev/peps/pep-0557), Data Classes.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def init_batch_lambda(self, job_queue, job_definition):
function = _lambda.Function(
self,
f"SubmitBatchJob-{tool_name}",
runtime=_lambda.Runtime.PYTHON_3_8,
runtime=_lambda.Runtime.PYTHON_3_9,
handler="submit_job.handler",
role=execution_role,
code=_lambda.Code.from_asset("lambda"),
Expand Down Expand Up @@ -301,7 +301,7 @@ def init_log_function(self, admin_bucket_name):
lambda_function = _lambda.Function(
self,
"BatchJobCompleteLambda",
runtime=_lambda.Runtime.PYTHON_3_8,
runtime=_lambda.Runtime.PYTHON_3_9,
handler="export_logs.handler",
role=execution_role,
code=_lambda.Code.from_asset("lambda"),
Expand Down
4 changes: 2 additions & 2 deletions .tools/test/stacks/plugin/typescript/plugin_stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class PluginStack extends cdk.Stack {
);

return new lambda.Function(this, `SubmitBatchJob-${toolName}`, {
runtime: lambda.Runtime.PYTHON_3_8,
runtime: lambda.Runtime.PYTHON_3_9,
handler: "submit_job.handler",
code: lambda.Code.fromAsset("lambda"),
environment: {
Expand Down Expand Up @@ -314,7 +314,7 @@ class PluginStack extends cdk.Stack {

// Define the Lambda function.
const lambdaFunction = new lambda.Function(this, "BatchJobCompleteLambda", {
runtime: lambda.Runtime.PYTHON_3_8,
runtime: lambda.Runtime.PYTHON_3_9,
handler: "export_logs.handler",
role: executionRole,
code: lambda.Code.fromAsset("lambda"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ bool AwsDoc::Lambda::getStartedWithFunctionsScenario(
#error "Unimplemented architecture"
#endif // defined(architecture)
#else
request.SetRuntime(Aws::Lambda::Model::Runtime::python3_8);
request.SetRuntime(Aws::Lambda::Model::Runtime::python3_9);
#endif
request.SetRole(roleArn);
request.SetHandler(LAMBDA_HANDLER_NAME);
Expand Down
2 changes: 1 addition & 1 deletion gov2/lambda/actions/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (wrapper FunctionWrapper) CreateFunction(ctx context.Context, functionName
Role: iamRoleArn,
Handler: aws.String(handlerName),
Publish: true,
Runtime: types.RuntimePython38,
Runtime: types.RuntimePython39,
})
if err != nil {
var resConflict *types.ResourceConflictException
Expand Down
2 changes: 1 addition & 1 deletion python/cross_service/apigateway_covid-19_tracker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tutorials in the
- You must have an AWS account, and have your default credentials and AWS Region
configured as described in the [AWS Tools and SDKs Shared Configuration and
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
- Python 3.7 or later
- Python 3.9 or later
- An Amazon S3 bucket

## Cautions
Expand Down
2 changes: 1 addition & 1 deletion python/cross_service/aurora_rest_lending_library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and out of the database.
- You must have an AWS account, and have your default credentials and AWS Region
configured as described in the [AWS Tools and SDKs Shared Configuration and
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
- Python 3.7 or later
- Python 3.9 or later

## Cautions

Expand Down
2 changes: 1 addition & 1 deletion python/cross_service/stepfunctions_messenger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ integrations.
- You must have an AWS account, and have your default credentials and AWS Region
configured as described in the [AWS Tools and SDKs Shared Configuration and
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
- Python 3.7 or later
- Python 3.9 or later
- Boto3 1.14.47 or later
- PyTest 5.3.5 or later (to run unit tests)

Expand Down
2 changes: 1 addition & 1 deletion python/example_code/dynamodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ The tutorial shows you how to set up the following additional resources:
- A VPC from Amazon Virtual Private Cloud (Amazon VPC)
- A DAX cluster set up in your VPC
- An EC2 instance running in your VPC with the following installed:
- Python 3.7 or later
- Python 3.9 or later
- Boto3 1.11.10 or later
- Amazon DAX Client for Python 1.1.7 or later

Expand Down
2 changes: 1 addition & 1 deletion python/example_code/greengrass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and are not intended to be used out of context.
- You must have an AWS account, and have your default credentials and AWS Region
configured as described in the [AWS Tools and SDKs Shared Configuration and
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
- Python 3.7
- Python 3.9
- GreengrassSdk 1.6.0 or later
- PyTest 5.3.5 or later (to run unit tests)

Expand Down
2 changes: 1 addition & 1 deletion python/example_code/lambda/lambda_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def create_function(
response = self.lambda_client.create_function(
FunctionName=function_name,
Description="AWS Lambda doc example",
Runtime="python3.8",
Runtime="python3.9",
Role=iam_role.arn,
Handler=handler_name,
Code={"ZipFile": deployment_package},
Expand Down
2 changes: 1 addition & 1 deletion python/example_code/s3/file_transfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ amount of data at any time, from anywhere on the web.*
- You must have an AWS account, and have your default credentials and AWS Region
configured as described in the [AWS Tools and SDKs Shared Configuration and
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
- Python 3.7 or later
- Python 3.9 or later
- Boto3 1.11.10 or later
- PyTest 5.3.5 or later (to run unit tests)

Expand Down
2 changes: 1 addition & 1 deletion python/example_code/s3/s3_versioning/batch_versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def create_lambda_function(
response = custom_retry(
lambda: aws_lambda.create_function(
FunctionName=function_name,
Runtime="python3.8",
Runtime="python3.9",
Role=iam_role.arn,
Handler=handler,
Code={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// * An AWS Identity and Access Management (IAM) role and policy that grants
// AWS Lambda permission to access the DynamoDB table and have basic rights to
// run functions.
// * A Lambda function that runs on Python 3.7 and has an environment variable
// * A Lambda function that runs on Python 3.9 and has an environment variable
// that contains the DynamoDB table name. The function code is updated as part
// of the example.
//
Expand Down Expand Up @@ -64,7 +64,7 @@ export class SetupStack extends cdk.Stack {
);

const fn = new Function(this, "doc-example-apigateway-websocket-connect", {
runtime: Runtime.PYTHON_3_7,
runtime: Runtime.PYTHON_3_9,
handler: "lambda_chat.lambda_handler",
code: Code.fromInline(
"# This placeholder is replaced during code example deployment."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class SetupStack extends cdk.Stack {
this,
"doc-example-stepfunctions-scan-messages",
{
runtime: Runtime.PYTHON_3_7,
runtime: Runtime.PYTHON_3_9,
handler: "index.lambda_handler",
code: Code.fromInline(
"import boto3\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ CLASS ltc_zcl_aws1_lmd_actions IMPLEMENTATION.

DATA(lo_result) = ao_lmd_actions->update_function_configuration(
iv_function_name = cv_function_name
iv_runtime = `python3.8`
iv_runtime = `python3.9`
iv_memory_size = 150
).

Expand All @@ -321,7 +321,7 @@ CLASS ltc_zcl_aws1_lmd_actions IMPLEMENTATION.
).

cl_abap_unit_assert=>assert_equals(
exp = `python3.8`
exp = `python3.9`
act = lo_result->get_runtime( )
msg = |Function's runtime did not match expected value |
).
Expand Down
Loading