Skip to content

Commit 4b29f6f

Browse files
committed
updating all functions to at least 3.9
1 parent 08ed7b6 commit 4b29f6f

File tree

16 files changed

+20
-20
lines changed

16 files changed

+20
-20
lines changed

.tools/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Python 3.8
6767
- [PEP 586](http://www.python.org/dev/peps/pep-0586), Literal types.
6868
- [PEP 589](http://www.python.org/dev/peps/pep-0589), TypedDict.
6969

70-
Python 3.7
70+
Python 3.9
7171

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

.tools/test/stacks/plugin/python/consumer_stack/consumer_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def init_batch_lambda(self, job_queue, job_definition):
178178
function = _lambda.Function(
179179
self,
180180
f"SubmitBatchJob-{tool_name}",
181-
runtime=_lambda.Runtime.PYTHON_3_8,
181+
runtime=_lambda.Runtime.PYTHON_3_9,
182182
handler="submit_job.handler",
183183
role=execution_role,
184184
code=_lambda.Code.from_asset("lambda"),
@@ -301,7 +301,7 @@ def init_log_function(self, admin_bucket_name):
301301
lambda_function = _lambda.Function(
302302
self,
303303
"BatchJobCompleteLambda",
304-
runtime=_lambda.Runtime.PYTHON_3_8,
304+
runtime=_lambda.Runtime.PYTHON_3_9,
305305
handler="export_logs.handler",
306306
role=execution_role,
307307
code=_lambda.Code.from_asset("lambda"),

.tools/test/stacks/plugin/typescript/plugin_stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class PluginStack extends cdk.Stack {
192192
);
193193

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

315315
// Define the Lambda function.
316316
const lambdaFunction = new lambda.Function(this, "BatchJobCompleteLambda", {
317-
runtime: lambda.Runtime.PYTHON_3_8,
317+
runtime: lambda.Runtime.PYTHON_3_9,
318318
handler: "export_logs.handler",
319319
role: executionRole,
320320
code: lambda.Code.fromAsset("lambda"),

cpp/example_code/lambda/get_started_with_functions_scenario.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ bool AwsDoc::Lambda::getStartedWithFunctionsScenario(
188188
#error "Unimplemented architecture"
189189
#endif // defined(architecture)
190190
#else
191-
request.SetRuntime(Aws::Lambda::Model::Runtime::python3_8);
191+
request.SetRuntime(Aws::Lambda::Model::Runtime::python3_9);
192192
#endif
193193
request.SetRole(roleArn);
194194
request.SetHandler(LAMBDA_HANDLER_NAME);

gov2/lambda/actions/functions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (wrapper FunctionWrapper) CreateFunction(ctx context.Context, functionName
6262
Role: iamRoleArn,
6363
Handler: aws.String(handlerName),
6464
Publish: true,
65-
Runtime: types.RuntimePython38,
65+
Runtime: types.RuntimePython39,
6666
})
6767
if err != nil {
6868
var resConflict *types.ResourceConflictException

python/cross_service/apigateway_covid-19_tracker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tutorials in the
2424
- You must have an AWS account, and have your default credentials and AWS Region
2525
configured as described in the [AWS Tools and SDKs Shared Configuration and
2626
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
27-
- Python 3.7 or later
27+
- Python 3.9 or later
2828
- An Amazon S3 bucket
2929

3030
## Cautions

python/cross_service/aurora_rest_lending_library/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and out of the database.
1919
- You must have an AWS account, and have your default credentials and AWS Region
2020
configured as described in the [AWS Tools and SDKs Shared Configuration and
2121
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
22-
- Python 3.7 or later
22+
- Python 3.9 or later
2323

2424
## Cautions
2525

python/cross_service/stepfunctions_messenger/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ integrations.
1818
- You must have an AWS account, and have your default credentials and AWS Region
1919
configured as described in the [AWS Tools and SDKs Shared Configuration and
2020
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
21-
- Python 3.7 or later
21+
- Python 3.9 or later
2222
- Boto3 1.14.47 or later
2323
- PyTest 5.3.5 or later (to run unit tests)
2424

python/example_code/dynamodb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ The tutorial shows you how to set up the following additional resources:
152152
- A VPC from Amazon Virtual Private Cloud (Amazon VPC)
153153
- A DAX cluster set up in your VPC
154154
- An EC2 instance running in your VPC with the following installed:
155-
- Python 3.7 or later
155+
- Python 3.9 or later
156156
- Boto3 1.11.10 or later
157157
- Amazon DAX Client for Python 1.1.7 or later
158158

python/example_code/greengrass/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ and are not intended to be used out of context.
1414
- You must have an AWS account, and have your default credentials and AWS Region
1515
configured as described in the [AWS Tools and SDKs Shared Configuration and
1616
Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
17-
- Python 3.7
17+
- Python 3.9
1818
- GreengrassSdk 1.6.0 or later
1919
- PyTest 5.3.5 or later (to run unit tests)
2020

0 commit comments

Comments
 (0)