From 77f1f40a3cac8e545acc6f9ecdbc931a81ef57ec Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Mon, 23 Jan 2023 19:19:51 +0000 Subject: [PATCH] Regenerated Clients --- .../77e2a9d171c4465e90e5c99711d07cb6.json | 8 + .../bc2cbd489db741069ce4a15f84c1a223.json | 8 + .../internal/endpoints/endpoints.go | 3 + service/acm/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../appconfig/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + service/docdb/internal/endpoints/endpoints.go | 3 + .../dynamodb/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + service/ebs/internal/endpoints/endpoints.go | 3 + service/ec2/internal/endpoints/endpoints.go | 3 + service/ecr/internal/endpoints/endpoints.go | 8 + service/ecs/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + service/emr/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + service/fsx/internal/endpoints/endpoints.go | 3 + .../kinesis/internal/endpoints/endpoints.go | 3 + service/kms/internal/endpoints/endpoints.go | 9 + service/lambda/api_op_CreateAlias.go | 4 +- service/lambda/api_op_CreateFunction.go | 3 + service/lambda/api_op_DeleteAlias.go | 2 +- service/lambda/api_op_GetAlias.go | 4 +- .../lambda/api_op_GetFunctionConfiguration.go | 3 + .../api_op_GetRuntimeManagementConfig.go | 147 ++++++ service/lambda/api_op_ListAliases.go | 2 +- service/lambda/api_op_ListFunctions.go | 3 +- service/lambda/api_op_PublishVersion.go | 3 + .../api_op_PutRuntimeManagementConfig.go | 181 +++++++ service/lambda/api_op_UpdateAlias.go | 4 +- service/lambda/api_op_UpdateFunctionCode.go | 3 + .../api_op_UpdateFunctionConfiguration.go | 3 + service/lambda/deserializers.go | 474 ++++++++++++++++++ service/lambda/generated.json | 2 + .../lambda/internal/endpoints/endpoints.go | 9 + service/lambda/serializers.go | 152 ++++++ service/lambda/types/enums.go | 20 + service/lambda/types/errors.go | 8 +- service/lambda/types/types.go | 31 +- service/lambda/validators.go | 81 +++ .../internal/endpoints/endpoints.go | 3 + .../neptune/internal/endpoints/endpoints.go | 3 + service/oam/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + service/pi/internal/endpoints/endpoints.go | 3 + service/rbin/internal/endpoints/endpoints.go | 3 + service/rds/internal/endpoints/endpoints.go | 3 + .../redshift/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 5 + .../internal/endpoints/endpoints.go | 12 + .../internal/endpoints/endpoints.go | 3 + service/s3/internal/endpoints/endpoints.go | 9 + .../internal/endpoints/s3/endpoints.go | 9 + service/sagemaker/types/enums.go | 2 + service/sagemaker/types/types.go | 4 +- .../internal/endpoints/endpoints.go | 3 + service/sfn/internal/endpoints/endpoints.go | 3 + service/sns/internal/endpoints/endpoints.go | 3 + service/sqs/internal/endpoints/endpoints.go | 3 + service/ssm/internal/endpoints/endpoints.go | 3 + service/sts/internal/endpoints/endpoints.go | 3 + service/swf/internal/endpoints/endpoints.go | 3 + .../internal/endpoints/endpoints.go | 3 + service/xray/internal/endpoints/endpoints.go | 3 + 80 files changed, 1344 insertions(+), 16 deletions(-) create mode 100644 .changelog/77e2a9d171c4465e90e5c99711d07cb6.json create mode 100644 .changelog/bc2cbd489db741069ce4a15f84c1a223.json create mode 100644 service/lambda/api_op_GetRuntimeManagementConfig.go create mode 100644 service/lambda/api_op_PutRuntimeManagementConfig.go diff --git a/.changelog/77e2a9d171c4465e90e5c99711d07cb6.json b/.changelog/77e2a9d171c4465e90e5c99711d07cb6.json new file mode 100644 index 00000000000..c9c433ddd67 --- /dev/null +++ b/.changelog/77e2a9d171c4465e90e5c99711d07cb6.json @@ -0,0 +1,8 @@ +{ + "id": "77e2a9d1-71c4-465e-90e5-c99711d07cb6", + "type": "feature", + "description": "Amazon SageMaker Inference now supports P4de instance types.", + "modules": [ + "service/sagemaker" + ] +} \ No newline at end of file diff --git a/.changelog/bc2cbd489db741069ce4a15f84c1a223.json b/.changelog/bc2cbd489db741069ce4a15f84c1a223.json new file mode 100644 index 00000000000..277c6c76b33 --- /dev/null +++ b/.changelog/bc2cbd489db741069ce4a15f84c1a223.json @@ -0,0 +1,8 @@ +{ + "id": "bc2cbd48-9db7-4106-9ce4-a15f84c1a223", + "type": "feature", + "description": "Release Lambda RuntimeManagementConfig, enabling customers to better manage runtime updates to their Lambda functions. This release adds two new APIs, GetRuntimeManagementConfig and PutRuntimeManagementConfig, as well as support on existing Create/Get/Update function APIs.", + "modules": [ + "service/lambda" + ] +} \ No newline at end of file diff --git a/service/accessanalyzer/internal/endpoints/endpoints.go b/service/accessanalyzer/internal/endpoints/endpoints.go index 7deb0dc70a8..6b2a50d63d8 100644 --- a/service/accessanalyzer/internal/endpoints/endpoints.go +++ b/service/accessanalyzer/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/acm/internal/endpoints/endpoints.go b/service/acm/internal/endpoints/endpoints.go index 4974be90a3f..583d90898b8 100644 --- a/service/acm/internal/endpoints/endpoints.go +++ b/service/acm/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/apigateway/internal/endpoints/endpoints.go b/service/apigateway/internal/endpoints/endpoints.go index 38482861bfe..3fe9a371aab 100644 --- a/service/apigateway/internal/endpoints/endpoints.go +++ b/service/apigateway/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/apigatewayv2/internal/endpoints/endpoints.go b/service/apigatewayv2/internal/endpoints/endpoints.go index 54d4d381c67..f99d7556d69 100644 --- a/service/apigatewayv2/internal/endpoints/endpoints.go +++ b/service/apigatewayv2/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/appconfig/internal/endpoints/endpoints.go b/service/appconfig/internal/endpoints/endpoints.go index 6d153d56d82..6c0c5be0a55 100644 --- a/service/appconfig/internal/endpoints/endpoints.go +++ b/service/appconfig/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/applicationautoscaling/internal/endpoints/endpoints.go b/service/applicationautoscaling/internal/endpoints/endpoints.go index 4314f9008db..196b275ea21 100644 --- a/service/applicationautoscaling/internal/endpoints/endpoints.go +++ b/service/applicationautoscaling/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/autoscaling/internal/endpoints/endpoints.go b/service/autoscaling/internal/endpoints/endpoints.go index 2bda3f0bb24..8b8a1d54dc1 100644 --- a/service/autoscaling/internal/endpoints/endpoints.go +++ b/service/autoscaling/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/cloudcontrol/internal/endpoints/endpoints.go b/service/cloudcontrol/internal/endpoints/endpoints.go index 8845e2a6027..3920ac659bf 100644 --- a/service/cloudcontrol/internal/endpoints/endpoints.go +++ b/service/cloudcontrol/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/cloudformation/internal/endpoints/endpoints.go b/service/cloudformation/internal/endpoints/endpoints.go index fd31e055fa8..06030dd4e30 100644 --- a/service/cloudformation/internal/endpoints/endpoints.go +++ b/service/cloudformation/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/cloudtrail/internal/endpoints/endpoints.go b/service/cloudtrail/internal/endpoints/endpoints.go index 0527ee8019b..1e782e1c062 100644 --- a/service/cloudtrail/internal/endpoints/endpoints.go +++ b/service/cloudtrail/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/cloudwatch/internal/endpoints/endpoints.go b/service/cloudwatch/internal/endpoints/endpoints.go index 7d15687488a..f7426500d2d 100644 --- a/service/cloudwatch/internal/endpoints/endpoints.go +++ b/service/cloudwatch/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/cloudwatchevents/internal/endpoints/endpoints.go b/service/cloudwatchevents/internal/endpoints/endpoints.go index 567698c5dd2..8732c9ff7e5 100644 --- a/service/cloudwatchevents/internal/endpoints/endpoints.go +++ b/service/cloudwatchevents/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/cloudwatchlogs/internal/endpoints/endpoints.go b/service/cloudwatchlogs/internal/endpoints/endpoints.go index 30d6c0055c0..91ab36400c0 100644 --- a/service/cloudwatchlogs/internal/endpoints/endpoints.go +++ b/service/cloudwatchlogs/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/codedeploy/internal/endpoints/endpoints.go b/service/codedeploy/internal/endpoints/endpoints.go index efd4db202a6..16184d15284 100644 --- a/service/codedeploy/internal/endpoints/endpoints.go +++ b/service/codedeploy/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/configservice/internal/endpoints/endpoints.go b/service/configservice/internal/endpoints/endpoints.go index 21e7e77e837..912cf2450d8 100644 --- a/service/configservice/internal/endpoints/endpoints.go +++ b/service/configservice/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/databasemigrationservice/internal/endpoints/endpoints.go b/service/databasemigrationservice/internal/endpoints/endpoints.go index b52c57757e3..da7bf19e1c0 100644 --- a/service/databasemigrationservice/internal/endpoints/endpoints.go +++ b/service/databasemigrationservice/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/directconnect/internal/endpoints/endpoints.go b/service/directconnect/internal/endpoints/endpoints.go index eae68626d9e..e2f4dba4600 100644 --- a/service/directconnect/internal/endpoints/endpoints.go +++ b/service/directconnect/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/docdb/internal/endpoints/endpoints.go b/service/docdb/internal/endpoints/endpoints.go index 41eb2d261c3..37d334977bb 100644 --- a/service/docdb/internal/endpoints/endpoints.go +++ b/service/docdb/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/dynamodb/internal/endpoints/endpoints.go b/service/dynamodb/internal/endpoints/endpoints.go index db2d641ab40..e8b66b80bdb 100644 --- a/service/dynamodb/internal/endpoints/endpoints.go +++ b/service/dynamodb/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/dynamodbstreams/internal/endpoints/endpoints.go b/service/dynamodbstreams/internal/endpoints/endpoints.go index 23c71a04603..15b65116e67 100644 --- a/service/dynamodbstreams/internal/endpoints/endpoints.go +++ b/service/dynamodbstreams/internal/endpoints/endpoints.go @@ -177,6 +177,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/ebs/internal/endpoints/endpoints.go b/service/ebs/internal/endpoints/endpoints.go index 54465d4164a..99b8f80029b 100644 --- a/service/ebs/internal/endpoints/endpoints.go +++ b/service/ebs/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/ec2/internal/endpoints/endpoints.go b/service/ec2/internal/endpoints/endpoints.go index c655cb8872a..8b9308e736f 100644 --- a/service/ec2/internal/endpoints/endpoints.go +++ b/service/ec2/internal/endpoints/endpoints.go @@ -171,6 +171,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/ecr/internal/endpoints/endpoints.go b/service/ecr/internal/endpoints/endpoints.go index 962da77e5ee..53aaf4cf23b 100644 --- a/service/ecr/internal/endpoints/endpoints.go +++ b/service/ecr/internal/endpoints/endpoints.go @@ -215,6 +215,14 @@ var defaultPartitions = endpoints.Partitions{ Region: "ap-southeast-3", }, }, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{ + Hostname: "api.ecr.ap-southeast-4.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-southeast-4", + }, + }, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{ diff --git a/service/ecs/internal/endpoints/endpoints.go b/service/ecs/internal/endpoints/endpoints.go index 339615da8bf..ceaf129e8c4 100644 --- a/service/ecs/internal/endpoints/endpoints.go +++ b/service/ecs/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/elasticache/internal/endpoints/endpoints.go b/service/elasticache/internal/endpoints/endpoints.go index cfebdf642d2..2a3948419ed 100644 --- a/service/elasticache/internal/endpoints/endpoints.go +++ b/service/elasticache/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/elasticloadbalancing/internal/endpoints/endpoints.go b/service/elasticloadbalancing/internal/endpoints/endpoints.go index 6bb0f72b4e7..191be6bec07 100644 --- a/service/elasticloadbalancing/internal/endpoints/endpoints.go +++ b/service/elasticloadbalancing/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/elasticloadbalancingv2/internal/endpoints/endpoints.go b/service/elasticloadbalancingv2/internal/endpoints/endpoints.go index 12f4d6c2df2..58ae30885f0 100644 --- a/service/elasticloadbalancingv2/internal/endpoints/endpoints.go +++ b/service/elasticloadbalancingv2/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/elasticsearchservice/internal/endpoints/endpoints.go b/service/elasticsearchservice/internal/endpoints/endpoints.go index 0e870384a1f..63d659f305a 100644 --- a/service/elasticsearchservice/internal/endpoints/endpoints.go +++ b/service/elasticsearchservice/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/emr/internal/endpoints/endpoints.go b/service/emr/internal/endpoints/endpoints.go index 0567254c43f..e6949d56b63 100644 --- a/service/emr/internal/endpoints/endpoints.go +++ b/service/emr/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/eventbridge/internal/endpoints/endpoints.go b/service/eventbridge/internal/endpoints/endpoints.go index f0462970a1f..f29cfe9a12e 100644 --- a/service/eventbridge/internal/endpoints/endpoints.go +++ b/service/eventbridge/internal/endpoints/endpoints.go @@ -167,6 +167,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/fsx/internal/endpoints/endpoints.go b/service/fsx/internal/endpoints/endpoints.go index e9a6e24c170..d825ac090e9 100644 --- a/service/fsx/internal/endpoints/endpoints.go +++ b/service/fsx/internal/endpoints/endpoints.go @@ -279,6 +279,9 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "me-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "me-south-1", }: endpoints.Endpoint{}, diff --git a/service/kinesis/internal/endpoints/endpoints.go b/service/kinesis/internal/endpoints/endpoints.go index e53a4886fa5..80b0d88bd02 100644 --- a/service/kinesis/internal/endpoints/endpoints.go +++ b/service/kinesis/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/kms/internal/endpoints/endpoints.go b/service/kms/internal/endpoints/endpoints.go index 538d1ba2f98..ce9932df0f3 100644 --- a/service/kms/internal/endpoints/endpoints.go +++ b/service/kms/internal/endpoints/endpoints.go @@ -324,6 +324,15 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "kms-fips.ap-southeast-4.amazonaws.com", + }, endpoints.EndpointKey{ Region: "ap-southeast-4-fips", }: endpoints.Endpoint{ diff --git a/service/lambda/api_op_CreateAlias.go b/service/lambda/api_op_CreateAlias.go index 6abb8e1b692..736287b9f1c 100644 --- a/service/lambda/api_op_CreateAlias.go +++ b/service/lambda/api_op_CreateAlias.go @@ -12,7 +12,7 @@ import ( ) // Creates an alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) for a +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) for a // Lambda function version. Use aliases to provide clients with a function // identifier that you can update to invoke a different version. You can also map // an alias to split invocation requests between two versions. Use the @@ -74,7 +74,7 @@ type CreateAliasInput struct { } // Provides configuration information about a Lambda function alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). type CreateAliasOutput struct { // The Amazon Resource Name (ARN) of the alias. diff --git a/service/lambda/api_op_CreateFunction.go b/service/lambda/api_op_CreateFunction.go index fb41b3ad84f..b1bd3b92fab 100644 --- a/service/lambda/api_op_CreateFunction.go +++ b/service/lambda/api_op_CreateFunction.go @@ -290,6 +290,9 @@ type CreateFunctionOutput struct { // The runtime environment for the Lambda function. Runtime types.Runtime + // The ARN of the runtime and any errors that occured. + RuntimeVersionConfig *types.RuntimeVersionConfig + // The ARN of the signing job. SigningJobArn *string diff --git a/service/lambda/api_op_DeleteAlias.go b/service/lambda/api_op_DeleteAlias.go index 34f0e0e0098..f5acb77be31 100644 --- a/service/lambda/api_op_DeleteAlias.go +++ b/service/lambda/api_op_DeleteAlias.go @@ -11,7 +11,7 @@ import ( ) // Deletes a Lambda function alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). func (c *Client) DeleteAlias(ctx context.Context, params *DeleteAliasInput, optFns ...func(*Options)) (*DeleteAliasOutput, error) { if params == nil { params = &DeleteAliasInput{} diff --git a/service/lambda/api_op_GetAlias.go b/service/lambda/api_op_GetAlias.go index 52c1cb1a698..87dedefc156 100644 --- a/service/lambda/api_op_GetAlias.go +++ b/service/lambda/api_op_GetAlias.go @@ -12,7 +12,7 @@ import ( ) // Returns details about a Lambda function alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). func (c *Client) GetAlias(ctx context.Context, params *GetAliasInput, optFns ...func(*Options)) (*GetAliasOutput, error) { if params == nil { params = &GetAliasInput{} @@ -56,7 +56,7 @@ type GetAliasInput struct { } // Provides configuration information about a Lambda function alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). type GetAliasOutput struct { // The Amazon Resource Name (ARN) of the alias. diff --git a/service/lambda/api_op_GetFunctionConfiguration.go b/service/lambda/api_op_GetFunctionConfiguration.go index 7a8d95ada99..cca2dd8ba31 100644 --- a/service/lambda/api_op_GetFunctionConfiguration.go +++ b/service/lambda/api_op_GetFunctionConfiguration.go @@ -148,6 +148,9 @@ type GetFunctionConfigurationOutput struct { // The runtime environment for the Lambda function. Runtime types.Runtime + // The ARN of the runtime and any errors that occured. + RuntimeVersionConfig *types.RuntimeVersionConfig + // The ARN of the signing job. SigningJobArn *string diff --git a/service/lambda/api_op_GetRuntimeManagementConfig.go b/service/lambda/api_op_GetRuntimeManagementConfig.go new file mode 100644 index 00000000000..0140b57303d --- /dev/null +++ b/service/lambda/api_op_GetRuntimeManagementConfig.go @@ -0,0 +1,147 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lambda + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lambda/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves the runtime management configuration for a function's version. If the +// runtime update mode is Manual, this includes the ARN of the runtime version and +// the runtime update mode. If the runtime update mode is Auto or Function update, +// this includes the runtime update mode and null is returned for the ARN. For more +// information, see Runtime updates +// (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). +func (c *Client) GetRuntimeManagementConfig(ctx context.Context, params *GetRuntimeManagementConfigInput, optFns ...func(*Options)) (*GetRuntimeManagementConfigOutput, error) { + if params == nil { + params = &GetRuntimeManagementConfigInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetRuntimeManagementConfig", params, optFns, c.addOperationGetRuntimeManagementConfigMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetRuntimeManagementConfigOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetRuntimeManagementConfigInput struct { + + // The name of the Lambda function. Name formats + // + // * Function name – my-function. + // + // * + // Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * + // Partial ARN – 123456789012:function:my-function. + // + // The length constraint applies + // only to the full ARN. If you specify only the function name, it is limited to 64 + // characters in length. + // + // This member is required. + FunctionName *string + + // Specify a version of the function. This can be $LATEST or a published version + // number. If no value is specified, the configuration for the $LATEST version is + // returned. + Qualifier *string + + noSmithyDocumentSerde +} + +type GetRuntimeManagementConfigOutput struct { + + // The ARN of the runtime the function is configured to use. If the runtime update + // mode is Manual, the ARN is returned, otherwise null is returned. + RuntimeVersionArn *string + + // The current runtime update mode of the function. + UpdateRuntimeOn types.UpdateRuntimeOn + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetRuntimeManagementConfigMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpGetRuntimeManagementConfig{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpGetRuntimeManagementConfig{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetRuntimeManagementConfigValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetRuntimeManagementConfig(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetRuntimeManagementConfig(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lambda", + OperationName: "GetRuntimeManagementConfig", + } +} diff --git a/service/lambda/api_op_ListAliases.go b/service/lambda/api_op_ListAliases.go index 700e81ca834..be4726d6bf2 100644 --- a/service/lambda/api_op_ListAliases.go +++ b/service/lambda/api_op_ListAliases.go @@ -13,7 +13,7 @@ import ( ) // Returns a list of aliases -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html) for a +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) for a // Lambda function. func (c *Client) ListAliases(ctx context.Context, params *ListAliasesInput, optFns ...func(*Options)) (*ListAliasesOutput, error) { if params == nil { diff --git a/service/lambda/api_op_ListFunctions.go b/service/lambda/api_op_ListFunctions.go index 9c8382e54e6..78527e8e19e 100644 --- a/service/lambda/api_op_ListFunctions.go +++ b/service/lambda/api_op_ListFunctions.go @@ -18,7 +18,8 @@ import ( // version. The ListFunctions operation returns a subset of the // FunctionConfiguration fields. To get the additional fields (State, // StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, -// LastUpdateStatusReasonCode) for a function or version, use GetFunction. +// LastUpdateStatusReasonCode, RuntimeVersionConfig) for a function or version, use +// GetFunction. func (c *Client) ListFunctions(ctx context.Context, params *ListFunctionsInput, optFns ...func(*Options)) (*ListFunctionsOutput, error) { if params == nil { params = &ListFunctionsInput{} diff --git a/service/lambda/api_op_PublishVersion.go b/service/lambda/api_op_PublishVersion.go index b05fb6251ec..c6aff82c394 100644 --- a/service/lambda/api_op_PublishVersion.go +++ b/service/lambda/api_op_PublishVersion.go @@ -157,6 +157,9 @@ type PublishVersionOutput struct { // The runtime environment for the Lambda function. Runtime types.Runtime + // The ARN of the runtime and any errors that occured. + RuntimeVersionConfig *types.RuntimeVersionConfig + // The ARN of the signing job. SigningJobArn *string diff --git a/service/lambda/api_op_PutRuntimeManagementConfig.go b/service/lambda/api_op_PutRuntimeManagementConfig.go new file mode 100644 index 00000000000..58071b85305 --- /dev/null +++ b/service/lambda/api_op_PutRuntimeManagementConfig.go @@ -0,0 +1,181 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package lambda + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/lambda/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Sets the runtime management configuration for a function's version. For more +// information, see Runtime updates +// (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html). +func (c *Client) PutRuntimeManagementConfig(ctx context.Context, params *PutRuntimeManagementConfigInput, optFns ...func(*Options)) (*PutRuntimeManagementConfigOutput, error) { + if params == nil { + params = &PutRuntimeManagementConfigInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutRuntimeManagementConfig", params, optFns, c.addOperationPutRuntimeManagementConfigMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutRuntimeManagementConfigOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutRuntimeManagementConfigInput struct { + + // The name of the Lambda function. Name formats + // + // * Function name – my-function. + // + // * + // Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * + // Partial ARN – 123456789012:function:my-function. + // + // The length constraint applies + // only to the full ARN. If you specify only the function name, it is limited to 64 + // characters in length. + // + // This member is required. + FunctionName *string + + // Specify the runtime update mode. + // + // * Auto (default) - Automatically update to the + // most recent and secure runtime version using a Two-phase runtime version rollout + // (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase). + // This is the best choice for most customers to ensure they always benefit from + // runtime updates. + // + // * Function update - Lambda updates the runtime of your + // function to the most recent and secure runtime version when you update your + // function. This approach synchronizes runtime updates with function deployments, + // giving you control over when runtime updates are applied and allowing you to + // detect and mitigate rare runtime update incompatibilities early. When using this + // setting, you need to regularly update your functions to keep their runtime + // up-to-date. + // + // * Manual - You specify a runtime version in your function + // configuration. The function will use this runtime version indefinitely. In the + // rare case where a new runtime version is incompatible with an existing function, + // this allows you to roll back your function to an earlier runtime version. For + // more information, see Roll back a runtime version + // (https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback). + // + // This member is required. + UpdateRuntimeOn types.UpdateRuntimeOn + + // Specify a version of the function. This can be $LATEST or a published version + // number. If no value is specified, the configuration for the $LATEST version is + // returned. + Qualifier *string + + // The ARN of the runtime version you want the function to use. This is only + // required if you're using the Manual runtime update mode. + RuntimeVersionArn *string + + noSmithyDocumentSerde +} + +type PutRuntimeManagementConfigOutput struct { + + // The ARN of the function + // + // This member is required. + FunctionArn *string + + // The runtime update mode. + // + // This member is required. + UpdateRuntimeOn types.UpdateRuntimeOn + + // The ARN of the runtime the function is configured to use. If the runtime update + // mode is manual, the ARN is returned, otherwise null is returned. + RuntimeVersionArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutRuntimeManagementConfigMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsRestjson1_serializeOpPutRuntimeManagementConfig{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutRuntimeManagementConfig{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpPutRuntimeManagementConfigValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutRuntimeManagementConfig(options.Region), middleware.Before); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opPutRuntimeManagementConfig(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "lambda", + OperationName: "PutRuntimeManagementConfig", + } +} diff --git a/service/lambda/api_op_UpdateAlias.go b/service/lambda/api_op_UpdateAlias.go index d5114135bc2..2be1f8f3dfd 100644 --- a/service/lambda/api_op_UpdateAlias.go +++ b/service/lambda/api_op_UpdateAlias.go @@ -12,7 +12,7 @@ import ( ) // Updates the configuration of a Lambda function alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). func (c *Client) UpdateAlias(ctx context.Context, params *UpdateAliasInput, optFns ...func(*Options)) (*UpdateAliasOutput, error) { if params == nil { params = &UpdateAliasInput{} @@ -71,7 +71,7 @@ type UpdateAliasInput struct { } // Provides configuration information about a Lambda function alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). type UpdateAliasOutput struct { // The Amazon Resource Name (ARN) of the alias. diff --git a/service/lambda/api_op_UpdateFunctionCode.go b/service/lambda/api_op_UpdateFunctionCode.go index 8be5678dbe3..566b8f02ee7 100644 --- a/service/lambda/api_op_UpdateFunctionCode.go +++ b/service/lambda/api_op_UpdateFunctionCode.go @@ -191,6 +191,9 @@ type UpdateFunctionCodeOutput struct { // The runtime environment for the Lambda function. Runtime types.Runtime + // The ARN of the runtime and any errors that occured. + RuntimeVersionConfig *types.RuntimeVersionConfig + // The ARN of the signing job. SigningJobArn *string diff --git a/service/lambda/api_op_UpdateFunctionConfiguration.go b/service/lambda/api_op_UpdateFunctionConfiguration.go index 20e9b9b536c..28db56a611d 100644 --- a/service/lambda/api_op_UpdateFunctionConfiguration.go +++ b/service/lambda/api_op_UpdateFunctionConfiguration.go @@ -230,6 +230,9 @@ type UpdateFunctionConfigurationOutput struct { // The runtime environment for the Lambda function. Runtime types.Runtime + // The ARN of the runtime and any errors that occured. + RuntimeVersionConfig *types.RuntimeVersionConfig + // The ARN of the signing job. SigningJobArn *string diff --git a/service/lambda/deserializers.go b/service/lambda/deserializers.go index 05154569d1a..437e2912b39 100644 --- a/service/lambda/deserializers.go +++ b/service/lambda/deserializers.go @@ -1461,6 +1461,11 @@ func awsRestjson1_deserializeOpDocumentCreateFunctionOutput(v **CreateFunctionOu sv.Runtime = types.Runtime(jtv) } + case "RuntimeVersionConfig": + if err := awsRestjson1_deserializeDocumentRuntimeVersionConfig(&sv.RuntimeVersionConfig, value); err != nil { + return err + } + case "SigningJobArn": if value != nil { jtv, ok := value.(string) @@ -4755,6 +4760,11 @@ func awsRestjson1_deserializeOpDocumentGetFunctionConfigurationOutput(v **GetFun sv.Runtime = types.Runtime(jtv) } + case "RuntimeVersionConfig": + if err := awsRestjson1_deserializeDocumentRuntimeVersionConfig(&sv.RuntimeVersionConfig, value); err != nil { + return err + } + case "SigningJobArn": if value != nil { jtv, ok := value.(string) @@ -6260,6 +6270,175 @@ func awsRestjson1_deserializeOpDocumentGetProvisionedConcurrencyConfigOutput(v * return nil } +type awsRestjson1_deserializeOpGetRuntimeManagementConfig struct { +} + +func (*awsRestjson1_deserializeOpGetRuntimeManagementConfig) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpGetRuntimeManagementConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorGetRuntimeManagementConfig(response, &metadata) + } + output := &GetRuntimeManagementConfigOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentGetRuntimeManagementConfigOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorGetRuntimeManagementConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceException", errorCode): + return awsRestjson1_deserializeErrorServiceException(response, errorBody) + + case strings.EqualFold("TooManyRequestsException", errorCode): + return awsRestjson1_deserializeErrorTooManyRequestsException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentGetRuntimeManagementConfigOutput(v **GetRuntimeManagementConfigOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetRuntimeManagementConfigOutput + if *v == nil { + sv = &GetRuntimeManagementConfigOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "RuntimeVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuntimeVersionArn to be of type string, got %T instead", value) + } + sv.RuntimeVersionArn = ptr.String(jtv) + } + + case "UpdateRuntimeOn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UpdateRuntimeOn to be of type string, got %T instead", value) + } + sv.UpdateRuntimeOn = types.UpdateRuntimeOn(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpInvoke struct { } @@ -9123,6 +9302,11 @@ func awsRestjson1_deserializeOpDocumentPublishVersionOutput(v **PublishVersionOu sv.Runtime = types.Runtime(jtv) } + case "RuntimeVersionConfig": + if err := awsRestjson1_deserializeDocumentRuntimeVersionConfig(&sv.RuntimeVersionConfig, value); err != nil { + return err + } + case "SigningJobArn": if value != nil { jtv, ok := value.(string) @@ -9986,6 +10170,187 @@ func awsRestjson1_deserializeOpDocumentPutProvisionedConcurrencyConfigOutput(v * return nil } +type awsRestjson1_deserializeOpPutRuntimeManagementConfig struct { +} + +func (*awsRestjson1_deserializeOpPutRuntimeManagementConfig) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutRuntimeManagementConfig) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorPutRuntimeManagementConfig(response, &metadata) + } + output := &PutRuntimeManagementConfigOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentPutRuntimeManagementConfigOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutRuntimeManagementConfig(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + code := response.Header.Get("X-Amzn-ErrorType") + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + code, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(code) != 0 { + errorCode = restjson.SanitizeErrorCode(code) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InvalidParameterValueException", errorCode): + return awsRestjson1_deserializeErrorInvalidParameterValueException(response, errorBody) + + case strings.EqualFold("ResourceConflictException", errorCode): + return awsRestjson1_deserializeErrorResourceConflictException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceException", errorCode): + return awsRestjson1_deserializeErrorServiceException(response, errorBody) + + case strings.EqualFold("TooManyRequestsException", errorCode): + return awsRestjson1_deserializeErrorTooManyRequestsException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentPutRuntimeManagementConfigOutput(v **PutRuntimeManagementConfigOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutRuntimeManagementConfigOutput + if *v == nil { + sv = &PutRuntimeManagementConfigOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FunctionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FunctionArn to be of type string, got %T instead", value) + } + sv.FunctionArn = ptr.String(jtv) + } + + case "RuntimeVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuntimeVersionArn to be of type string, got %T instead", value) + } + sv.RuntimeVersionArn = ptr.String(jtv) + } + + case "UpdateRuntimeOn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UpdateRuntimeOn to be of type string, got %T instead", value) + } + sv.UpdateRuntimeOn = types.UpdateRuntimeOn(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpRemoveLayerVersionPermission struct { } @@ -11495,6 +11860,11 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionCodeOutput(v **UpdateFuncti sv.Runtime = types.Runtime(jtv) } + case "RuntimeVersionConfig": + if err := awsRestjson1_deserializeDocumentRuntimeVersionConfig(&sv.RuntimeVersionConfig, value); err != nil { + return err + } + case "SigningJobArn": if value != nil { jtv, ok := value.(string) @@ -11939,6 +12309,11 @@ func awsRestjson1_deserializeOpDocumentUpdateFunctionConfigurationOutput(v **Upd sv.Runtime = types.Runtime(jtv) } + case "RuntimeVersionConfig": + if err := awsRestjson1_deserializeDocumentRuntimeVersionConfig(&sv.RuntimeVersionConfig, value); err != nil { + return err + } + case "SigningJobArn": if value != nil { jtv, ok := value.(string) @@ -16361,6 +16736,11 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon sv.Runtime = types.Runtime(jtv) } + case "RuntimeVersionConfig": + if err := awsRestjson1_deserializeDocumentRuntimeVersionConfig(&sv.RuntimeVersionConfig, value); err != nil { + return err + } + case "SigningJobArn": if value != nil { jtv, ok := value.(string) @@ -18518,6 +18898,100 @@ func awsRestjson1_deserializeDocumentResourceNotReadyException(v **types.Resourc return nil } +func awsRestjson1_deserializeDocumentRuntimeVersionConfig(v **types.RuntimeVersionConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RuntimeVersionConfig + if *v == nil { + sv = &types.RuntimeVersionConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Error": + if err := awsRestjson1_deserializeDocumentRuntimeVersionError(&sv.Error, value); err != nil { + return err + } + + case "RuntimeVersionArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuntimeVersionArn to be of type string, got %T instead", value) + } + sv.RuntimeVersionArn = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentRuntimeVersionError(v **types.RuntimeVersionError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RuntimeVersionError + if *v == nil { + sv = &types.RuntimeVersionError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ErrorCode = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SensitiveString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentScalingConfig(v **types.ScalingConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/lambda/generated.json b/service/lambda/generated.json index c50bf7ece5c..7dc65b29a40 100644 --- a/service/lambda/generated.json +++ b/service/lambda/generated.json @@ -41,6 +41,7 @@ "api_op_GetLayerVersionPolicy.go", "api_op_GetPolicy.go", "api_op_GetProvisionedConcurrencyConfig.go", + "api_op_GetRuntimeManagementConfig.go", "api_op_Invoke.go", "api_op_InvokeAsync.go", "api_op_ListAliases.go", @@ -61,6 +62,7 @@ "api_op_PutFunctionConcurrency.go", "api_op_PutFunctionEventInvokeConfig.go", "api_op_PutProvisionedConcurrencyConfig.go", + "api_op_PutRuntimeManagementConfig.go", "api_op_RemoveLayerVersionPermission.go", "api_op_RemovePermission.go", "api_op_TagResource.go", diff --git a/service/lambda/internal/endpoints/endpoints.go b/service/lambda/internal/endpoints/endpoints.go index ba8f3680af1..4f69d4b4656 100644 --- a/service/lambda/internal/endpoints/endpoints.go +++ b/service/lambda/internal/endpoints/endpoints.go @@ -225,6 +225,15 @@ var defaultPartitions = endpoints.Partitions{ }: { Hostname: "lambda.ap-southeast-3.api.aws", }, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + Variant: endpoints.DualStackVariant, + }: { + Hostname: "lambda.ap-southeast-4.api.aws", + }, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/lambda/serializers.go b/service/lambda/serializers.go index 1ada5cca0ca..adf6b7eec6a 100644 --- a/service/lambda/serializers.go +++ b/service/lambda/serializers.go @@ -2422,6 +2422,68 @@ func awsRestjson1_serializeOpHttpBindingsGetProvisionedConcurrencyConfigInput(v return nil } +type awsRestjson1_serializeOpGetRuntimeManagementConfig struct { +} + +func (*awsRestjson1_serializeOpGetRuntimeManagementConfig) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpGetRuntimeManagementConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetRuntimeManagementConfigInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-07-20/functions/{FunctionName}/runtime-management-config") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsGetRuntimeManagementConfigInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsGetRuntimeManagementConfigInput(v *GetRuntimeManagementConfigInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.FunctionName == nil || len(*v.FunctionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} + } + if v.FunctionName != nil { + if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { + return err + } + } + + if v.Qualifier != nil { + encoder.SetQuery("Qualifier").String(*v.Qualifier) + } + + return nil +} + type awsRestjson1_serializeOpInvoke struct { } @@ -3907,6 +3969,96 @@ func awsRestjson1_serializeOpDocumentPutProvisionedConcurrencyConfigInput(v *Put return nil } +type awsRestjson1_serializeOpPutRuntimeManagementConfig struct { +} + +func (*awsRestjson1_serializeOpPutRuntimeManagementConfig) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPutRuntimeManagementConfig) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PutRuntimeManagementConfigInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/2021-07-20/functions/{FunctionName}/runtime-management-config") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsPutRuntimeManagementConfigInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentPutRuntimeManagementConfigInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPutRuntimeManagementConfigInput(v *PutRuntimeManagementConfigInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.FunctionName == nil || len(*v.FunctionName) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member FunctionName must not be empty")} + } + if v.FunctionName != nil { + if err := encoder.SetURI("FunctionName").String(*v.FunctionName); err != nil { + return err + } + } + + if v.Qualifier != nil { + encoder.SetQuery("Qualifier").String(*v.Qualifier) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPutRuntimeManagementConfigInput(v *PutRuntimeManagementConfigInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.RuntimeVersionArn != nil { + ok := object.Key("RuntimeVersionArn") + ok.String(*v.RuntimeVersionArn) + } + + if len(v.UpdateRuntimeOn) > 0 { + ok := object.Key("UpdateRuntimeOn") + ok.String(string(v.UpdateRuntimeOn)) + } + + return nil +} + type awsRestjson1_serializeOpRemoveLayerVersionPermission struct { } diff --git a/service/lambda/types/enums.go b/service/lambda/types/enums.go index ad7bfeb344c..885d141aa1f 100644 --- a/service/lambda/types/enums.go +++ b/service/lambda/types/enums.go @@ -540,3 +540,23 @@ func (TracingMode) Values() []TracingMode { "PassThrough", } } + +type UpdateRuntimeOn string + +// Enum values for UpdateRuntimeOn +const ( + UpdateRuntimeOnAuto UpdateRuntimeOn = "Auto" + UpdateRuntimeOnManual UpdateRuntimeOn = "Manual" + UpdateRuntimeOnFunctionUpdate UpdateRuntimeOn = "FunctionUpdate" +) + +// Values returns all known values for UpdateRuntimeOn. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (UpdateRuntimeOn) Values() []UpdateRuntimeOn { + return []UpdateRuntimeOn{ + "Auto", + "Manual", + "FunctionUpdate", + } +} diff --git a/service/lambda/types/errors.go b/service/lambda/types/errors.go index ad9e87dfed2..a5f906e7b94 100644 --- a/service/lambda/types/errors.go +++ b/service/lambda/types/errors.go @@ -907,8 +907,9 @@ func (e *ServiceException) ErrorCode() string { } func (e *ServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } -// The runtime restore hook encountered an error. For more information, check the -// Amazon CloudWatch logs. +// The afterRestore()runtime hook +// (https://docs.aws.amazon.com/lambda/latest/dg/snapstart-runtime-hooks.html) +// encountered an error. For more information, check the Amazon CloudWatch logs. type SnapStartException struct { Message *string @@ -967,8 +968,7 @@ func (e *SnapStartNotReadyException) ErrorCode() string { } func (e *SnapStartNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The runtime restore hook failed to complete within the timeout limit (2 -// seconds). +// Lambda couldn't restore the snapshot within the timeout limit. type SnapStartTimeoutException struct { Message *string diff --git a/service/lambda/types/types.go b/service/lambda/types/types.go index 0c3eb5a96c3..4c2aa68a556 100644 --- a/service/lambda/types/types.go +++ b/service/lambda/types/types.go @@ -47,7 +47,7 @@ type AccountUsage struct { } // Provides configuration information about a Lambda function alias -// (https://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// (https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html). type AliasConfiguration struct { // The Amazon Resource Name (ARN) of the alias. @@ -578,6 +578,9 @@ type FunctionConfiguration struct { // The runtime environment for the Lambda function. Runtime Runtime + // The ARN of the runtime and any errors that occured. + RuntimeVersionConfig *RuntimeVersionConfig + // The ARN of the signing job. SigningJobArn *string @@ -890,6 +893,32 @@ type ProvisionedConcurrencyConfigListItem struct { noSmithyDocumentSerde } +// The ARN of the runtime and any errors that occured. +type RuntimeVersionConfig struct { + + // Error response when Lambda is unable to retrieve the runtime version for a + // function. + Error *RuntimeVersionError + + // The ARN of the runtime version you want the function to use. + RuntimeVersionArn *string + + noSmithyDocumentSerde +} + +// Any error returned when the runtime version information for the function could +// not be retrieved. +type RuntimeVersionError struct { + + // The error code. + ErrorCode *string + + // The error message. + Message *string + + noSmithyDocumentSerde +} + // (Amazon SQS only) The scaling configuration for the event source. To remove the // configuration, pass an empty value. type ScalingConfig struct { diff --git a/service/lambda/validators.go b/service/lambda/validators.go index edac6424234..bb34f55fc40 100644 --- a/service/lambda/validators.go +++ b/service/lambda/validators.go @@ -630,6 +630,26 @@ func (m *validateOpGetProvisionedConcurrencyConfig) HandleInitialize(ctx context return next.HandleInitialize(ctx, in) } +type validateOpGetRuntimeManagementConfig struct { +} + +func (*validateOpGetRuntimeManagementConfig) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetRuntimeManagementConfig) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetRuntimeManagementConfigInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetRuntimeManagementConfigInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpInvokeAsync struct { } @@ -950,6 +970,26 @@ func (m *validateOpPutProvisionedConcurrencyConfig) HandleInitialize(ctx context return next.HandleInitialize(ctx, in) } +type validateOpPutRuntimeManagementConfig struct { +} + +func (*validateOpPutRuntimeManagementConfig) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutRuntimeManagementConfig) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutRuntimeManagementConfigInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutRuntimeManagementConfigInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpRemoveLayerVersionPermission struct { } @@ -1294,6 +1334,10 @@ func addOpGetProvisionedConcurrencyConfigValidationMiddleware(stack *middleware. return stack.Initialize.Add(&validateOpGetProvisionedConcurrencyConfig{}, middleware.After) } +func addOpGetRuntimeManagementConfigValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetRuntimeManagementConfig{}, middleware.After) +} + func addOpInvokeAsyncValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpInvokeAsync{}, middleware.After) } @@ -1358,6 +1402,10 @@ func addOpPutProvisionedConcurrencyConfigValidationMiddleware(stack *middleware. return stack.Initialize.Add(&validateOpPutProvisionedConcurrencyConfig{}, middleware.After) } +func addOpPutRuntimeManagementConfigValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutRuntimeManagementConfig{}, middleware.After) +} + func addOpRemoveLayerVersionPermissionValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpRemoveLayerVersionPermission{}, middleware.After) } @@ -1991,6 +2039,21 @@ func validateOpGetProvisionedConcurrencyConfigInput(v *GetProvisionedConcurrency } } +func validateOpGetRuntimeManagementConfigInput(v *GetRuntimeManagementConfigInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetRuntimeManagementConfigInput"} + if v.FunctionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("FunctionName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpInvokeAsyncInput(v *InvokeAsyncInput) error { if v == nil { return nil @@ -2249,6 +2312,24 @@ func validateOpPutProvisionedConcurrencyConfigInput(v *PutProvisionedConcurrency } } +func validateOpPutRuntimeManagementConfigInput(v *PutRuntimeManagementConfigInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutRuntimeManagementConfigInput"} + if v.FunctionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("FunctionName")) + } + if len(v.UpdateRuntimeOn) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("UpdateRuntimeOn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpRemoveLayerVersionPermissionInput(v *RemoveLayerVersionPermissionInput) error { if v == nil { return nil diff --git a/service/marketplacemetering/internal/endpoints/endpoints.go b/service/marketplacemetering/internal/endpoints/endpoints.go index f6fb1657952..53af3eee333 100644 --- a/service/marketplacemetering/internal/endpoints/endpoints.go +++ b/service/marketplacemetering/internal/endpoints/endpoints.go @@ -177,6 +177,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/neptune/internal/endpoints/endpoints.go b/service/neptune/internal/endpoints/endpoints.go index 7d64b016bdb..1cb8260a2d4 100644 --- a/service/neptune/internal/endpoints/endpoints.go +++ b/service/neptune/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/oam/internal/endpoints/endpoints.go b/service/oam/internal/endpoints/endpoints.go index 51f68b33815..e61580c4f9c 100644 --- a/service/oam/internal/endpoints/endpoints.go +++ b/service/oam/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/opensearch/internal/endpoints/endpoints.go b/service/opensearch/internal/endpoints/endpoints.go index ddd8248263e..c3a4d6b399d 100644 --- a/service/opensearch/internal/endpoints/endpoints.go +++ b/service/opensearch/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/pi/internal/endpoints/endpoints.go b/service/pi/internal/endpoints/endpoints.go index 95961cddf24..ca57aa86d10 100644 --- a/service/pi/internal/endpoints/endpoints.go +++ b/service/pi/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/rbin/internal/endpoints/endpoints.go b/service/rbin/internal/endpoints/endpoints.go index 8de6ab554f8..19c1a4b1d39 100644 --- a/service/rbin/internal/endpoints/endpoints.go +++ b/service/rbin/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/rds/internal/endpoints/endpoints.go b/service/rds/internal/endpoints/endpoints.go index f8d32adfc97..431c80241eb 100644 --- a/service/rds/internal/endpoints/endpoints.go +++ b/service/rds/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/redshift/internal/endpoints/endpoints.go b/service/redshift/internal/endpoints/endpoints.go index 6c8e31b27a9..0e29816ea7c 100644 --- a/service/redshift/internal/endpoints/endpoints.go +++ b/service/redshift/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/resourceexplorer2/internal/endpoints/endpoints.go b/service/resourceexplorer2/internal/endpoints/endpoints.go index 1269b643610..a7438399cf5 100644 --- a/service/resourceexplorer2/internal/endpoints/endpoints.go +++ b/service/resourceexplorer2/internal/endpoints/endpoints.go @@ -180,6 +180,11 @@ var defaultPartitions = endpoints.Partitions{ }: endpoints.Endpoint{ Hostname: "resource-explorer-2.ap-southeast-2.api.aws", }, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{ + Hostname: "resource-explorer-2.ap-southeast-4.api.aws", + }, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{ diff --git a/service/resourcegroups/internal/endpoints/endpoints.go b/service/resourcegroups/internal/endpoints/endpoints.go index 486261b5418..f4f72183d7c 100644 --- a/service/resourcegroups/internal/endpoints/endpoints.go +++ b/service/resourcegroups/internal/endpoints/endpoints.go @@ -153,6 +153,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-south-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-south-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-1", }: endpoints.Endpoint{}, @@ -162,18 +165,27 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-central-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-north-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-south-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-south-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{}, diff --git a/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go b/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go index 93e615e429a..1bd6a55fa28 100644 --- a/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go +++ b/service/resourcegroupstaggingapi/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/s3/internal/endpoints/endpoints.go b/service/s3/internal/endpoints/endpoints.go index 5fca8c1d429..dc0215c99be 100644 --- a/service/s3/internal/endpoints/endpoints.go +++ b/service/s3/internal/endpoints/endpoints.go @@ -239,6 +239,15 @@ var defaultPartitions = endpoints.Partitions{ }: { Hostname: "s3.dualstack.ap-southeast-3.amazonaws.com", }, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + Variant: endpoints.DualStackVariant, + }: { + Hostname: "s3.dualstack.ap-southeast-4.amazonaws.com", + }, endpoints.EndpointKey{ Region: "aws-global", }: endpoints.Endpoint{ diff --git a/service/s3control/internal/endpoints/s3/endpoints.go b/service/s3control/internal/endpoints/s3/endpoints.go index 7417d31dab5..3225ffff83d 100644 --- a/service/s3control/internal/endpoints/s3/endpoints.go +++ b/service/s3control/internal/endpoints/s3/endpoints.go @@ -237,6 +237,15 @@ var defaultPartitions = endpoints.Partitions{ }: { Hostname: "s3.dualstack.ap-southeast-3.amazonaws.com", }, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + Variant: endpoints.DualStackVariant, + }: { + Hostname: "s3.dualstack.ap-southeast-4.amazonaws.com", + }, endpoints.EndpointKey{ Region: "aws-global", }: endpoints.Endpoint{ diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index 894525b192a..4e3b288a0e9 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -3966,6 +3966,7 @@ const ( ProductionVariantInstanceTypeMlR6gd8xlarge ProductionVariantInstanceType = "ml.r6gd.8xlarge" ProductionVariantInstanceTypeMlR6gd12xlarge ProductionVariantInstanceType = "ml.r6gd.12xlarge" ProductionVariantInstanceTypeMlR6gd16xlarge ProductionVariantInstanceType = "ml.r6gd.16xlarge" + ProductionVariantInstanceTypeMlP4de24xlarge ProductionVariantInstanceType = "ml.p4de.24xlarge" ) // Values returns all known values for ProductionVariantInstanceType. Note that @@ -4114,6 +4115,7 @@ func (ProductionVariantInstanceType) Values() []ProductionVariantInstanceType { "ml.r6gd.8xlarge", "ml.r6gd.12xlarge", "ml.r6gd.16xlarge", + "ml.p4de.24xlarge", } } diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index 2bea2e05926..edf4f111df5 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -4207,7 +4207,7 @@ type Endpoint struct { ProductionVariants []ProductionVariantSummary // A list of the shadow variants hosted on the endpoint. Each shadow variant is a - // model in shadow mode with production traffic replicated from the proudction + // model in shadow mode with production traffic replicated from the production // variant. ShadowProductionVariants []ProductionVariantSummary @@ -11898,7 +11898,7 @@ type ProductionVariant struct { ServerlessConfig *ProductionVariantServerlessConfig // The size, in GB, of the ML storage volume attached to individual inference - // instance associated with the production variant. Currenly only Amazon EBS gp2 + // instance associated with the production variant. Currently only Amazon EBS gp2 // storage volumes are supported. VolumeSizeInGB *int32 diff --git a/service/secretsmanager/internal/endpoints/endpoints.go b/service/secretsmanager/internal/endpoints/endpoints.go index 4f93ebd8aad..dd8fed1cf2e 100644 --- a/service/secretsmanager/internal/endpoints/endpoints.go +++ b/service/secretsmanager/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/sfn/internal/endpoints/endpoints.go b/service/sfn/internal/endpoints/endpoints.go index dfe3a6628ae..76960638522 100644 --- a/service/sfn/internal/endpoints/endpoints.go +++ b/service/sfn/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/sns/internal/endpoints/endpoints.go b/service/sns/internal/endpoints/endpoints.go index b0e88ca57f4..0f64e31bf82 100644 --- a/service/sns/internal/endpoints/endpoints.go +++ b/service/sns/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/sqs/internal/endpoints/endpoints.go b/service/sqs/internal/endpoints/endpoints.go index 6a540000184..50d051cc5d1 100644 --- a/service/sqs/internal/endpoints/endpoints.go +++ b/service/sqs/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/ssm/internal/endpoints/endpoints.go b/service/ssm/internal/endpoints/endpoints.go index 548e11e91d0..991a89e4145 100644 --- a/service/ssm/internal/endpoints/endpoints.go +++ b/service/ssm/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/sts/internal/endpoints/endpoints.go b/service/sts/internal/endpoints/endpoints.go index ce9acedcd36..1f99a0209c8 100644 --- a/service/sts/internal/endpoints/endpoints.go +++ b/service/sts/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "aws-global", }: endpoints.Endpoint{ diff --git a/service/swf/internal/endpoints/endpoints.go b/service/swf/internal/endpoints/endpoints.go index 14ab9f757d2..536364b1605 100644 --- a/service/swf/internal/endpoints/endpoints.go +++ b/service/swf/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/synthetics/internal/endpoints/endpoints.go b/service/synthetics/internal/endpoints/endpoints.go index 892e59aeb4e..36946989721 100644 --- a/service/synthetics/internal/endpoints/endpoints.go +++ b/service/synthetics/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/xray/internal/endpoints/endpoints.go b/service/xray/internal/endpoints/endpoints.go index ef9e6b6a7c7..ce0b6e7b67c 100644 --- a/service/xray/internal/endpoints/endpoints.go +++ b/service/xray/internal/endpoints/endpoints.go @@ -165,6 +165,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-4", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{},