From 4f721592ce88fa1c55c99f17769ef891d77ee55c Mon Sep 17 00:00:00 2001 From: AWS SDK For Ruby Date: Mon, 23 Dec 2024 19:19:05 +0000 Subject: [PATCH] Updated API models and rebuilt service gems. --- .../2020-10-30/endpoint-rule-set-1.json | 275 ++-------- .../2020-10-30/endpoint-tests-1.json | 293 +--------- apis/ecr/2015-09-21/docs-2.json | 18 +- apis/eks/2017-11-01/api-2.json | 93 ++++ apis/eks/2017-11-01/docs-2.json | 56 +- apis/eks/2017-11-01/paginators-1.json | 6 + apis/glue/2017-03-31/api-2.json | 3 +- apis/glue/2017-03-31/docs-2.json | 7 +- gems/aws-partitions/CHANGELOG.md | 5 + gems/aws-partitions/VERSION | 2 +- gems/aws-partitions/partitions.json | 519 +++++++++++++++--- gems/aws-sdk-ecr/CHANGELOG.md | 5 + gems/aws-sdk-ecr/VERSION | 2 +- gems/aws-sdk-ecr/lib/aws-sdk-ecr.rb | 2 +- gems/aws-sdk-ecr/lib/aws-sdk-ecr/client.rb | 20 +- gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb | 24 +- gems/aws-sdk-ecrpublic/CHANGELOG.md | 5 + gems/aws-sdk-ecrpublic/VERSION | 2 +- .../lib/aws-sdk-ecrpublic.rb | 2 +- .../lib/aws-sdk-ecrpublic/client.rb | 2 +- .../aws-sdk-ecrpublic/endpoint_parameters.rb | 25 +- .../aws-sdk-ecrpublic/endpoint_provider.rb | 36 +- .../spec/endpoint_provider_spec.rb | 313 +---------- gems/aws-sdk-eks/CHANGELOG.md | 5 + gems/aws-sdk-eks/VERSION | 2 +- gems/aws-sdk-eks/lib/aws-sdk-eks.rb | 2 +- gems/aws-sdk-eks/lib/aws-sdk-eks/client.rb | 67 ++- .../aws-sdk-eks/lib/aws-sdk-eks/client_api.rb | 49 ++ gems/aws-sdk-eks/lib/aws-sdk-eks/types.rb | 122 +++- gems/aws-sdk-eks/sig/client.rbs | 17 + gems/aws-sdk-eks/sig/types.rbs | 30 + gems/aws-sdk-glue/CHANGELOG.md | 5 + gems/aws-sdk-glue/VERSION | 2 +- gems/aws-sdk-glue/lib/aws-sdk-glue.rb | 2 +- gems/aws-sdk-glue/lib/aws-sdk-glue/client.rb | 32 +- .../lib/aws-sdk-glue/client_api.rb | 1 + gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb | 51 +- gems/aws-sdk-glue/sig/client.rbs | 3 +- gems/aws-sdk-glue/sig/types.rbs | 1 + 39 files changed, 1135 insertions(+), 971 deletions(-) diff --git a/apis/ecr-public/2020-10-30/endpoint-rule-set-1.json b/apis/ecr-public/2020-10-30/endpoint-rule-set-1.json index a3c2e8ec892..32e8d26a884 100644 --- a/apis/ecr-public/2020-10-30/endpoint-rule-set-1.json +++ b/apis/ecr-public/2020-10-30/endpoint-rule-set-1.json @@ -7,13 +7,6 @@ "documentation": "The AWS region used to dispatch the request.", "type": "String" }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, @@ -21,11 +14,12 @@ "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "Boolean" }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" } }, "rules": [ @@ -35,12 +29,20 @@ "fn": "isSet", "argv": [ { - "ref": "Endpoint" + "ref": "Region" } ] + }, + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -54,7 +56,7 @@ ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "error": "ECR Public does not support FIPS", "type": "error" }, { @@ -69,246 +71,57 @@ ] } ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true ] } ], - "type": "tree", "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] + "endpoint": { + "url": "https://ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ] + "type": "tree" }, { "conditions": [], - "endpoint": { - "url": "https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "Dualstack is enabled but this partition does not support dualstack", + "type": "error" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } ] } \ No newline at end of file diff --git a/apis/ecr-public/2020-10-30/endpoint-tests-1.json b/apis/ecr-public/2020-10-30/endpoint-tests-1.json index a5d16d9e714..54a8c84adad 100644 --- a/apis/ecr-public/2020-10-30/endpoint-tests-1.json +++ b/apis/ecr-public/2020-10-30/endpoint-tests-1.json @@ -1,312 +1,69 @@ { "testCases": [ { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "Valid with dualstack and FIPS disabled. i.e, IPv4 Only stack with no FIPS, with special prefix", "expect": { "endpoint": { "url": "https://api.ecr-public.us-east-1.amazonaws.com" } }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://api.ecr-public.us-isob-east-1.sc2s.sgov.gov" + "operationInputs": [ + { + "builtInParams": { + "AWS::Region": "us-east-1" + }, + "operationName": "DescribeRegistries" } - }, + ], "params": { - "Region": "us-isob-east-1", + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": false + "Region": "us-east-1" } }, { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "documentation": "Valid with dualstack enabled", "expect": { "endpoint": { - "url": "https://example.com" + "url": "https://ecr-public.us-east-1.api.aws" } }, "params": { - "Region": "us-east-1", + "UseDualStack": true, "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" + "Region": "us-east-1" } }, { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "documentation": "Invalid with FIPS set, dualstack disabled", "expect": { - "endpoint": { - "url": "https://example.com" - } + "error": "ECR Public does not support FIPS" }, "params": { - "UseFIPS": false, "UseDualStack": false, - "Endpoint": "https://example.com" + "UseFIPS": true, + "Region": "us-east-1" } }, { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "documentation": "Invalid with both dualstack and FIPS enabled", "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + "error": "ECR Public does not support FIPS" }, "params": { - "Region": "us-east-1", + "UseDualStack": true, "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" + "Region": "us-east-1" } }, { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "documentation": "Invalid with DualStack enabled and partition does not support Dualstack", "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + "error": "Dualstack is enabled but this partition does not support dualstack" }, "params": { - "Region": "us-east-1", - "UseFIPS": false, "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" + "Region": "us-isob-east-1" } } ], diff --git a/apis/ecr/2015-09-21/docs-2.json b/apis/ecr/2015-09-21/docs-2.json index 8a79362c667..adc2a2ef0a6 100644 --- a/apis/ecr/2015-09-21/docs-2.json +++ b/apis/ecr/2015-09-21/docs-2.json @@ -23,7 +23,7 @@ "DescribeRegistry": "

Describes the settings for a registry. The replication configuration for a repository can be created or updated with the PutReplicationConfiguration API action.

", "DescribeRepositories": "

Describes image repositories in a registry.

", "DescribeRepositoryCreationTemplates": "

Returns details about the repository creation templates in a registry. The prefixes request parameter can be used to return the details for a specific repository creation template.

", - "GetAccountSetting": "

Retrieves the basic scan type version name.

", + "GetAccountSetting": "

Retrieves the account setting value for the specified setting name.

", "GetAuthorizationToken": "

Retrieves an authorization token. An authorization token represents your IAM authentication credentials and can be used to access any Amazon ECR registry that your IAM principal has access to. The authorization token is valid for 12 hours.

The authorizationToken returned is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The CLI offers an get-login-password command that simplifies the login process. For more information, see Registry authentication in the Amazon Elastic Container Registry User Guide.

", "GetDownloadUrlForLayer": "

Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can only get URLs for image layers that are referenced in an image.

When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer that is not already cached.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "GetLifecyclePolicy": "

Retrieves the lifecycle policy for the specified repository.

", @@ -34,7 +34,7 @@ "InitiateLayerUpload": "

Notifies Amazon ECR that you intend to upload an image layer.

When an image is pushed, the InitiateLayerUpload API is called once per image layer that has not already been uploaded. Whether or not an image layer has been uploaded is determined by the BatchCheckLayerAvailability API action.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "ListImages": "

Lists all the image IDs for the specified repository.

You can filter images based on whether or not they are tagged by using the tagStatus filter and specifying either TAGGED, UNTAGGED or ANY. For example, you can filter your results to return only UNTAGGED images and then pipe that result to a BatchDeleteImage operation to delete them. Or, you can filter your results to return only TAGGED images to list all of the tags in your repository.

", "ListTagsForResource": "

List the tags for an Amazon ECR resource.

", - "PutAccountSetting": "

Allows you to change the basic scan type version by setting the name parameter to either CLAIR to AWS_NATIVE.

", + "PutAccountSetting": "

Allows you to change the basic scan type version or registry policy scope.

", "PutImage": "

Creates or updates the image manifest and tags associated with an image.

When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags associated with the image.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "PutImageScanningConfiguration": "

The PutImageScanningConfiguration API is being deprecated, in favor of specifying the image scanning configuration at the registry level. For more information, see PutRegistryScanningConfiguration.

Updates the image scanning configuration for the specified repository.

", "PutImageTagMutability": "

Updates the image tag mutability settings for the specified repository. For more information, see Image tag mutability in the Amazon Elastic Container Registry User Guide.

", @@ -56,18 +56,18 @@ "AccountSettingName": { "base": null, "refs": { - "GetAccountSettingRequest$name": "

Basic scan type version name.

", - "GetAccountSettingResponse$name": "

Retrieves the basic scan type version name.

", - "GetAccountSettingResponse$value": "

Retrieves the value that specifies what basic scan type is being used: AWS_NATIVE or CLAIR.

", - "PutAccountSettingRequest$name": "

Basic scan type version name.

", - "PutAccountSettingResponse$name": "

Retrieves the the basic scan type version name.

" + "GetAccountSettingRequest$name": "

The name of the account setting, such as BASIC_SCAN_TYPE_VERSION or REGISTRY_POLICY_SCOPE.

", + "GetAccountSettingResponse$name": "

Retrieves the name of the account setting.

", + "GetAccountSettingResponse$value": "

The setting value for the setting name. The following are valid values for the basic scan type being used: AWS_NATIVE or CLAIR. The following are valid values for the registry policy scope being used: V1 or V2.

", + "PutAccountSettingRequest$name": "

The name of the account setting, such as BASIC_SCAN_TYPE_VERSION or REGISTRY_POLICY_SCOPE.

", + "PutAccountSettingResponse$name": "

Retrieves the name of the account setting.

" } }, "AccountSettingValue": { "base": null, "refs": { - "PutAccountSettingRequest$value": "

Setting value that determines what basic scan type is being used: AWS_NATIVE or CLAIR.

", - "PutAccountSettingResponse$value": "

Retrieves the basic scan type value, either AWS_NATIVE or -.

" + "PutAccountSettingRequest$value": "

Setting value that is specified. The following are valid values for the basic scan type being used: AWS_NATIVE or CLAIR. The following are valid values for the registry policy scope being used: V1 or V2.

", + "PutAccountSettingResponse$value": "

Retrieves the value of the specified account setting.

" } }, "Arch": { diff --git a/apis/eks/2017-11-01/api-2.json b/apis/eks/2017-11-01/api-2.json index 89e321f829e..70b05ad2266 100644 --- a/apis/eks/2017-11-01/api-2.json +++ b/apis/eks/2017-11-01/api-2.json @@ -382,6 +382,20 @@ {"shape":"ServiceUnavailableException"} ] }, + "DescribeClusterVersions":{ + "name":"DescribeClusterVersions", + "http":{ + "method":"GET", + "requestUri":"/cluster-versions" + }, + "input":{"shape":"DescribeClusterVersionsRequest"}, + "output":{"shape":"DescribeClusterVersionsResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidRequestException"} + ] + }, "DescribeEksAnywhereSubscription":{ "name":"DescribeEksAnywhereSubscription", "http":{ @@ -1381,6 +1395,32 @@ "PENDING" ] }, + "ClusterVersionInformation":{ + "type":"structure", + "members":{ + "clusterVersion":{"shape":"String"}, + "clusterType":{"shape":"String"}, + "defaultPlatformVersion":{"shape":"String"}, + "defaultVersion":{"shape":"Boolean"}, + "releaseDate":{"shape":"Timestamp"}, + "endOfStandardSupportDate":{"shape":"Timestamp"}, + "endOfExtendedSupportDate":{"shape":"Timestamp"}, + "status":{"shape":"ClusterVersionStatus"}, + "kubernetesPatchVersion":{"shape":"String"} + } + }, + "ClusterVersionList":{ + "type":"list", + "member":{"shape":"ClusterVersionInformation"} + }, + "ClusterVersionStatus":{ + "type":"string", + "enum":[ + "unsupported", + "standard-support", + "extended-support" + ] + }, "Compatibilities":{ "type":"list", "member":{"shape":"Compatibility"} @@ -2029,6 +2069,59 @@ "cluster":{"shape":"Cluster"} } }, + "DescribeClusterVersionMaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "DescribeClusterVersionsRequest":{ + "type":"structure", + "members":{ + "clusterType":{ + "shape":"String", + "location":"querystring", + "locationName":"clusterType" + }, + "maxResults":{ + "shape":"DescribeClusterVersionMaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"nextToken" + }, + "defaultOnly":{ + "shape":"BoxedBoolean", + "location":"querystring", + "locationName":"defaultOnly" + }, + "includeAll":{ + "shape":"BoxedBoolean", + "location":"querystring", + "locationName":"includeAll" + }, + "clusterVersions":{ + "shape":"StringList", + "location":"querystring", + "locationName":"clusterVersions" + }, + "status":{ + "shape":"ClusterVersionStatus", + "location":"querystring", + "locationName":"status" + } + } + }, + "DescribeClusterVersionsResponse":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"String"}, + "clusterVersions":{"shape":"ClusterVersionList"} + } + }, "DescribeEksAnywhereSubscriptionRequest":{ "type":"structure", "required":["id"], diff --git a/apis/eks/2017-11-01/docs-2.json b/apis/eks/2017-11-01/docs-2.json index f62fb41c91e..3d302e765d7 100644 --- a/apis/eks/2017-11-01/docs-2.json +++ b/apis/eks/2017-11-01/docs-2.json @@ -25,6 +25,7 @@ "DescribeAddonConfiguration": "

Returns configuration options.

", "DescribeAddonVersions": "

Describes the versions for an add-on.

Information such as the Kubernetes versions that you can use the add-on with, the owner, publisher, and the type of the add-on are returned.

", "DescribeCluster": "

Describes an Amazon EKS cluster.

The API server endpoint and certificate authority data returned by this operation are required for kubelet and kubectl to communicate with your Kubernetes API server. For more information, see Creating or updating a kubeconfig file for an Amazon EKS cluster.

The API server endpoint and certificate authority data aren't available until the cluster reaches the ACTIVE state.

", + "DescribeClusterVersions": "

Lists available Kubernetes versions for Amazon EKS clusters.

", "DescribeEksAnywhereSubscription": "

Returns descriptive information about a subscription.

", "DescribeFargateProfile": "

Describes an Fargate profile.

", "DescribeIdentityProviderConfig": "

Describes an identity provider configuration.

", @@ -126,7 +127,7 @@ } }, "AddonCompatibilityDetail": { - "base": "

The summary information about the Amazon EKS add-on compatibility for the next Kubernetes version for an insight check in the UPGRADE_READINESS category.

", + "base": "

Contains compatibility information for an Amazon EKS add-on.

", "refs": { "AddonCompatibilityDetails$member": null } @@ -134,7 +135,7 @@ "AddonCompatibilityDetails": { "base": null, "refs": { - "InsightCategorySpecificSummary$addonCompatibilityDetails": "

A list of AddonCompatibilityDetail objects for Amazon EKS add-ons.

" + "InsightCategorySpecificSummary$addonCompatibilityDetails": "

A list of AddonCompatibilityDetail objects for Amazon EKS add-ons.

" } }, "AddonHealth": { @@ -296,6 +297,7 @@ "refs": { "AddonVersionInfo$requiresConfiguration": "

Whether the add-on requires configuration.

", "AddonVersionInfo$requiresIamPermissions": "

Indicates if the Addon requires IAM Permissions to operate, such as networking permissions.

", + "ClusterVersionInformation$defaultVersion": "

Indicates if this is a default version.

", "Compatibility$defaultVersion": "

The supported default version.

", "CreateEksAnywhereSubscriptionRequest$autoRenew": "

A boolean indicating whether the subscription auto renews at the end of the term.

", "DeleteAddonRequest$preserve": "

Specifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on. If an IAM account is associated with the add-on, it isn't removed.

", @@ -315,6 +317,8 @@ "ComputeConfigResponse$enabled": "

Indicates if the compute capability is enabled on your EKS Auto Mode cluster. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your Amazon Web Services account.

", "CreateAccessConfigRequest$bootstrapClusterCreatorAdminPermissions": "

Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time. The default value is true.

", "CreateClusterRequest$bootstrapSelfManagedAddons": "

If you set this value to False when creating a cluster, the default networking add-ons will not be installed.

The default networking addons include vpc-cni, coredns, and kube-proxy.

Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.

", + "DescribeClusterVersionsRequest$defaultOnly": "

Filter to show only default versions.

", + "DescribeClusterVersionsRequest$includeAll": "

Include all available versions in the response.

", "ElasticLoadBalancing$enabled": "

Indicates if the load balancing capability is enabled on your EKS Auto Mode cluster. If the load balancing capability is enabled, EKS Auto Mode will create and delete load balancers in your Amazon Web Services account.

", "LogSetup$enabled": "

If a log type is enabled, that log type exports its control plane logs to CloudWatch Logs. If a log type isn't enabled, that log type doesn't export its control plane logs. Each individual log type can be enabled or disabled independently.

", "NodeRepairConfig$enabled": "

Specifies whether to enable node auto repair for the node group. Node auto repair is disabled by default.

", @@ -434,6 +438,25 @@ "Cluster$status": "

The current status of the cluster.

" } }, + "ClusterVersionInformation": { + "base": "

Contains details about a specific EKS cluster version.

", + "refs": { + "ClusterVersionList$member": null + } + }, + "ClusterVersionList": { + "base": null, + "refs": { + "DescribeClusterVersionsResponse$clusterVersions": "

List of cluster version information objects.

" + } + }, + "ClusterVersionStatus": { + "base": null, + "refs": { + "ClusterVersionInformation$status": "

Current status of this cluster version.

", + "DescribeClusterVersionsRequest$status": "

Filter versions by their current status.

" + } + }, "Compatibilities": { "base": null, "refs": { @@ -713,6 +736,22 @@ "refs": { } }, + "DescribeClusterVersionMaxResults": { + "base": null, + "refs": { + "DescribeClusterVersionsRequest$maxResults": "

Maximum number of results to return.

" + } + }, + "DescribeClusterVersionsRequest": { + "base": null, + "refs": { + } + }, + "DescribeClusterVersionsResponse": { + "base": null, + "refs": { + } + }, "DescribeEksAnywhereSubscriptionRequest": { "base": null, "refs": { @@ -1648,6 +1687,10 @@ "Cluster$platformVersion": "

The platform version of your Amazon EKS cluster. For more information about clusters deployed on the Amazon Web Services Cloud, see Platform versions in the Amazon EKS User Guide . For more information about local clusters deployed on an Outpost, see Amazon EKS local cluster platform versions in the Amazon EKS User Guide .

", "Cluster$id": "

The ID of your local Amazon EKS cluster on an Amazon Web Services Outpost. This property isn't available for an Amazon EKS cluster on the Amazon Web Services cloud.

", "ClusterIssue$message": "

A description of the issue.

", + "ClusterVersionInformation$clusterVersion": "

The Kubernetes version for the cluster.

", + "ClusterVersionInformation$clusterType": "

The type of cluster this version is for.

", + "ClusterVersionInformation$defaultPlatformVersion": "

Default platform version for this Kubernetes version.

", + "ClusterVersionInformation$kubernetesPatchVersion": "

The patch version of Kubernetes for this cluster version.

", "Compatibility$clusterVersion": "

The supported Kubernetes version of the cluster.

", "ComputeConfigRequest$nodeRoleArn": "

The ARN of the IAM Role EKS will assign to EC2 Managed Instances in your EKS Auto Mode cluster. This value cannot be changed after the compute capability of EKS Auto Mode is enabled. For more information, see the IAM Reference in the EKS User Guide.

", "ComputeConfigResponse$nodeRoleArn": "

The ARN of the IAM Role EKS will assign to EC2 Managed Instances in your EKS Auto Mode cluster.

", @@ -1715,6 +1758,9 @@ "DescribeAddonVersionsRequest$addonName": "

The name of the add-on. The name must match one of the names returned by ListAddons .

", "DescribeAddonVersionsResponse$nextToken": "

The nextToken value to include in a future DescribeAddonVersions request. When the results of a DescribeAddonVersions request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.

This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.

", "DescribeClusterRequest$name": "

The name of your cluster.

", + "DescribeClusterVersionsRequest$clusterType": "

The type of cluster to filter versions by.

", + "DescribeClusterVersionsRequest$nextToken": "

Pagination token for the next set of results.

", + "DescribeClusterVersionsResponse$nextToken": "

Pagination token for the next set of results.

", "DescribeEksAnywhereSubscriptionRequest$id": "

The ID of the subscription.

", "DescribeFargateProfileRequest$clusterName": "

The name of your cluster.

", "DescribeFargateProfileRequest$fargateProfileName": "

The name of the Fargate profile to describe.

", @@ -1932,7 +1978,7 @@ "AccessEntry$kubernetesGroups": "

A name that you've specified in a Kubernetes RoleBinding or ClusterRoleBinding object so that Kubernetes authorizes the principalARN access to cluster objects.

", "AccessScope$namespaces": "

A Kubernetes namespace that an access policy is scoped to. A value is required if you specified namespace for Type.

", "Addon$podIdentityAssociations": "

An array of Pod Identity Assocations owned by the Addon. Each EKS Pod Identity association maps a role to a service account in a namespace in the cluster.

For more information, see Attach an IAM Role to an Amazon EKS add-on using Pod Identity in the EKS User Guide.

", - "AddonCompatibilityDetail$compatibleVersions": "

The list of compatible Amazon EKS add-on versions for the next Kubernetes version.

", + "AddonCompatibilityDetail$compatibleVersions": "

A list of compatible add-on versions.

", "AddonIssue$resourceIds": "

The resource IDs of the issue.

", "AddonPodIdentityConfiguration$recommendedManagedPolicies": "

A suggested IAM Policy for the addon.

", "AddonVersionInfo$architecture": "

The architectures that the version supports.

", @@ -1948,6 +1994,7 @@ "DescribeAddonVersionsRequest$types": "

The type of the add-on. For valid types, don't specify a value for this property.

", "DescribeAddonVersionsRequest$publishers": "

The publisher of the add-on. For valid publishers, don't specify a value for this property.

", "DescribeAddonVersionsRequest$owners": "

The owner of the add-on. For valid owners, don't specify a value for this property.

", + "DescribeClusterVersionsRequest$clusterVersions": "

List of specific cluster versions to describe.

", "EksAnywhereSubscription$licenseArns": "

Amazon Web Services License Manager ARN associated with the subscription.

", "EncryptionConfig$resources": "

Specifies the resources to be encrypted. The only supported value is secrets.

", "ErrorDetail$resourceIds": "

An optional field that contains the resource IDs associated with the error.

", @@ -2062,6 +2109,9 @@ "AssociatedAccessPolicy$modifiedAt": "

The Unix epoch timestamp for the last modification to the object.

", "ClientStat$lastRequestTime": "

The timestamp of the last request seen from the Kubernetes client.

", "Cluster$createdAt": "

The Unix epoch timestamp at object creation.

", + "ClusterVersionInformation$releaseDate": "

The release date of this cluster version.

", + "ClusterVersionInformation$endOfStandardSupportDate": "

Date when standard support ends for this version.

", + "ClusterVersionInformation$endOfExtendedSupportDate": "

Date when extended support ends for this version.

", "ConnectorConfigResponse$activationExpiry": "

The expiration time of the connected cluster. The cluster's YAML file must be applied through the native provider.

", "EksAnywhereSubscription$createdAt": "

The Unix timestamp in seconds for when the subscription was created.

", "EksAnywhereSubscription$effectiveDate": "

The Unix timestamp in seconds for when the subscription is effective.

", diff --git a/apis/eks/2017-11-01/paginators-1.json b/apis/eks/2017-11-01/paginators-1.json index c207f174fb5..4a8b4406103 100644 --- a/apis/eks/2017-11-01/paginators-1.json +++ b/apis/eks/2017-11-01/paginators-1.json @@ -6,6 +6,12 @@ "output_token": "nextToken", "result_key": "addons" }, + "DescribeClusterVersions": { + "input_token": "nextToken", + "limit_key": "maxResults", + "output_token": "nextToken", + "result_key": "clusterVersions" + }, "ListAccessEntries": { "input_token": "nextToken", "limit_key": "maxResults", diff --git a/apis/glue/2017-03-31/api-2.json b/apis/glue/2017-03-31/api-2.json index 98088b21980..834380d93dc 100644 --- a/apis/glue/2017-03-31/api-2.json +++ b/apis/glue/2017-03-31/api-2.json @@ -9054,7 +9054,8 @@ "ParentCatalogId":{"shape":"CatalogIdString"}, "NextToken":{"shape":"Token"}, "MaxResults":{"shape":"PageSize"}, - "Recursive":{"shape":"Boolean"} + "Recursive":{"shape":"Boolean"}, + "IncludeRoot":{"shape":"NullableBoolean"} } }, "GetCatalogsResponse":{ diff --git a/apis/glue/2017-03-31/docs-2.json b/apis/glue/2017-03-31/docs-2.json index 6c4b5f6829d..fce8e934105 100644 --- a/apis/glue/2017-03-31/docs-2.json +++ b/apis/glue/2017-03-31/docs-2.json @@ -1003,7 +1003,7 @@ "CrawlerMetrics$StillEstimating": "

True if the crawler is still estimating how long it will take to complete this run.

", "DataLakeAccessProperties$DataLakeAccess": "

Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog from any non-Redshift engine, such as Amazon Athena, Amazon EMR, or Glue ETL.

", "DataLakeAccessPropertiesOutput$DataLakeAccess": "

Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog.

", - "GetCatalogsRequest$Recursive": "

When specified as true, iterates through the account and returns all catalog resources (including top-level resources and child resources)

", + "GetCatalogsRequest$Recursive": "

Whether to list all catalogs across the catalog hierarchy, starting from the ParentCatalogId. Defaults to false . When true, all catalog objects in the ParentCatalogID hierarchy are enumerated in the response.

", "GetConnectionRequest$HidePassword": "

Allows you to retrieve the connection metadata without returning the password. For instance, the Glue console uses this flag to retrieve the connection, and does not display the password. Set this parameter when the caller might not have permission to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties.

", "GetConnectionsRequest$HidePassword": "

Allows you to retrieve the connection metadata without returning the password. For instance, the Glue console uses this flag to retrieve the connection, and does not display the password. Set this parameter when the caller might not have permission to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties.

", "GetUnfilteredPartitionMetadataResponse$IsRegisteredWithLakeFormation": "

A Boolean value that indicates whether the partition location is registered with Lake Formation.

", @@ -7565,6 +7565,7 @@ "FindMatchesParameters$EnforceProvidedLabels": "

The value to switch on or off to force the output to match the provided labels from users. If the value is True, the find matches transform forces the output to match the provided labels. The results override the normal conflation results. If the value is False, the find matches transform does not ensure all the labels provided are respected, and the results rely on the trained model.

Note that setting this value to true may increase the conflation execution time.

", "GetBlueprintRequest$IncludeBlueprint": "

Specifies whether or not to include the blueprint in the response.

", "GetBlueprintRequest$IncludeParameterSpec": "

Specifies whether or not to include the parameter specification.

", + "GetCatalogsRequest$IncludeRoot": "

Whether to list the default catalog in the account and region in the response. Defaults to false. When true and ParentCatalogId = NULL | Amazon Web Services Account ID, all catalogs and the default catalog are enumerated in the response.

When the ParentCatalogId is not equal to null, and this attribute is passed as false or true, an InvalidInputException is thrown.

", "GetWorkflowRequest$IncludeGraph": "

Specifies whether to include a graph when returning the workflow resource metadata.

", "GetWorkflowRunRequest$IncludeGraph": "

Specifies whether to include the workflow graph in response or not.

", "GetWorkflowRunsRequest$IncludeGraph": "

Specifies whether to include the workflow graph in response or not.

", @@ -10352,12 +10353,12 @@ "GetDataQualityRulesetEvaluationRunResponse$Timeout": "

The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

", "GetMLTransformResponse$Timeout": "

The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

", "Job$Timeout": "

The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours) for batch jobs.

Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.

", - "JobRun$Timeout": "

The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.

", + "JobRun$Timeout": "

The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

When the value is left blank, the timeout is defaulted to 2880 minutes.

Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

", "JobUpdate$Timeout": "

The job timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours) for batch jobs.

Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.

", "MLTransform$Timeout": "

The timeout in minutes of the machine learning transform.

", "StartDataQualityRuleRecommendationRunRequest$Timeout": "

The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

", "StartDataQualityRulesetEvaluationRunRequest$Timeout": "

The timeout for a run in minutes. This is the maximum time that a run can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

", - "StartJobRunRequest$Timeout": "

The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.

", + "StartJobRunRequest$Timeout": "

The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

When the value is left blank, the timeout is defaulted to 2880 minutes.

Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

", "UpdateMLTransformRequest$Timeout": "

The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

" } }, diff --git a/gems/aws-partitions/CHANGELOG.md b/gems/aws-partitions/CHANGELOG.md index 0eae233752c..5c575033ade 100644 --- a/gems/aws-partitions/CHANGELOG.md +++ b/gems/aws-partitions/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.1028.0 (2024-12-23) +------------------ + +* Feature - Updated the partitions source data the determines the AWS service regions and endpoints. + 1.1027.0 (2024-12-20) ------------------ diff --git a/gems/aws-partitions/VERSION b/gems/aws-partitions/VERSION index 1cb47e53ec0..0a9fab74e03 100644 --- a/gems/aws-partitions/VERSION +++ b/gems/aws-partitions/VERSION @@ -1 +1 @@ -1.1027.0 +1.1028.0 diff --git a/gems/aws-partitions/partitions.json b/gems/aws-partitions/partitions.json index 7e028eab88d..05a0eda4e26 100644 --- a/gems/aws-partitions/partitions.json +++ b/gems/aws-partitions/partitions.json @@ -10402,28 +10402,138 @@ }, "glue" : { "endpoints" : { - "af-south-1" : { }, - "ap-east-1" : { }, - "ap-northeast-1" : { }, - "ap-northeast-2" : { }, - "ap-northeast-3" : { }, - "ap-south-1" : { }, - "ap-south-2" : { }, - "ap-southeast-1" : { }, - "ap-southeast-2" : { }, - "ap-southeast-3" : { }, - "ap-southeast-4" : { }, - "ap-southeast-5" : { }, - "ca-central-1" : { }, - "ca-west-1" : { }, - "eu-central-1" : { }, - "eu-central-2" : { }, - "eu-north-1" : { }, - "eu-south-1" : { }, - "eu-south-2" : { }, - "eu-west-1" : { }, - "eu-west-2" : { }, - "eu-west-3" : { }, + "af-south-1" : { + "variants" : [ { + "hostname" : "glue.af-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-east-1" : { + "variants" : [ { + "hostname" : "glue.ap-east-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-1" : { + "variants" : [ { + "hostname" : "glue.ap-northeast-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-2" : { + "variants" : [ { + "hostname" : "glue.ap-northeast-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-3" : { + "variants" : [ { + "hostname" : "glue.ap-northeast-3.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-south-1" : { + "variants" : [ { + "hostname" : "glue.ap-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-south-2" : { + "variants" : [ { + "hostname" : "glue.ap-south-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-1" : { + "variants" : [ { + "hostname" : "glue.ap-southeast-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-2" : { + "variants" : [ { + "hostname" : "glue.ap-southeast-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-3" : { + "variants" : [ { + "hostname" : "glue.ap-southeast-3.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-4" : { + "variants" : [ { + "hostname" : "glue.ap-southeast-4.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-5" : { + "variants" : [ { + "hostname" : "glue.ap-southeast-5.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ca-central-1" : { + "variants" : [ { + "hostname" : "glue.ca-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ca-west-1" : { + "variants" : [ { + "hostname" : "glue.ca-west-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-central-1" : { + "variants" : [ { + "hostname" : "glue.eu-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-central-2" : { + "variants" : [ { + "hostname" : "glue.eu-central-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-north-1" : { + "variants" : [ { + "hostname" : "glue.eu-north-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-south-1" : { + "variants" : [ { + "hostname" : "glue.eu-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-south-2" : { + "variants" : [ { + "hostname" : "glue.eu-south-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-1" : { + "variants" : [ { + "hostname" : "glue.eu-west-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-2" : { + "variants" : [ { + "hostname" : "glue.eu-west-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-3" : { + "variants" : [ { + "hostname" : "glue.eu-west-3.api.aws", + "tags" : [ "dualstack" ] + } ] + }, "fips-us-east-1" : { "credentialScope" : { "region" : "us-east-1" @@ -10452,32 +10562,76 @@ "deprecated" : true, "hostname" : "glue-fips.us-west-2.amazonaws.com" }, - "il-central-1" : { }, - "me-central-1" : { }, - "me-south-1" : { }, - "sa-east-1" : { }, + "il-central-1" : { + "variants" : [ { + "hostname" : "glue.il-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "me-central-1" : { + "variants" : [ { + "hostname" : "glue.me-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "me-south-1" : { + "variants" : [ { + "hostname" : "glue.me-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "sa-east-1" : { + "variants" : [ { + "hostname" : "glue.sa-east-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, "us-east-1" : { "variants" : [ { "hostname" : "glue-fips.us-east-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "glue-fips.us-east-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "glue.us-east-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-east-2" : { "variants" : [ { "hostname" : "glue-fips.us-east-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "glue-fips.us-east-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "glue.us-east-2.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-1" : { "variants" : [ { "hostname" : "glue-fips.us-west-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "glue-fips.us-west-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "glue.us-west-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-2" : { "variants" : [ { "hostname" : "glue-fips.us-west-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "glue-fips.us-west-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "glue.us-west-2.api.aws", + "tags" : [ "dualstack" ] } ] } } @@ -13991,21 +14145,96 @@ }, "macie2" : { "endpoints" : { - "af-south-1" : { }, - "ap-east-1" : { }, - "ap-northeast-1" : { }, - "ap-northeast-2" : { }, - "ap-northeast-3" : { }, - "ap-south-1" : { }, - "ap-southeast-1" : { }, - "ap-southeast-2" : { }, - "ca-central-1" : { }, - "eu-central-1" : { }, - "eu-north-1" : { }, - "eu-south-1" : { }, - "eu-west-1" : { }, - "eu-west-2" : { }, - "eu-west-3" : { }, + "af-south-1" : { + "variants" : [ { + "hostname" : "macie2.af-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-east-1" : { + "variants" : [ { + "hostname" : "macie2.ap-east-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-1" : { + "variants" : [ { + "hostname" : "macie2.ap-northeast-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-2" : { + "variants" : [ { + "hostname" : "macie2.ap-northeast-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-3" : { + "variants" : [ { + "hostname" : "macie2.ap-northeast-3.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-south-1" : { + "variants" : [ { + "hostname" : "macie2.ap-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-1" : { + "variants" : [ { + "hostname" : "macie2.ap-southeast-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-2" : { + "variants" : [ { + "hostname" : "macie2.ap-southeast-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ca-central-1" : { + "variants" : [ { + "hostname" : "macie2.ca-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-central-1" : { + "variants" : [ { + "hostname" : "macie2.eu-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-north-1" : { + "variants" : [ { + "hostname" : "macie2.eu-north-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-south-1" : { + "variants" : [ { + "hostname" : "macie2.eu-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-1" : { + "variants" : [ { + "hostname" : "macie2.eu-west-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-2" : { + "variants" : [ { + "hostname" : "macie2.eu-west-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-3" : { + "variants" : [ { + "hostname" : "macie2.eu-west-3.api.aws", + "tags" : [ "dualstack" ] + } ] + }, "fips-us-east-1" : { "credentialScope" : { "region" : "us-east-1" @@ -14034,31 +14263,70 @@ "deprecated" : true, "hostname" : "macie2-fips.us-west-2.amazonaws.com" }, - "il-central-1" : { }, - "me-south-1" : { }, - "sa-east-1" : { }, + "il-central-1" : { + "variants" : [ { + "hostname" : "macie2.il-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "me-south-1" : { + "variants" : [ { + "hostname" : "macie2.me-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "sa-east-1" : { + "variants" : [ { + "hostname" : "macie2.sa-east-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, "us-east-1" : { "variants" : [ { "hostname" : "macie2-fips.us-east-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "macie2-fips.us-east-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "macie2.us-east-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-east-2" : { "variants" : [ { "hostname" : "macie2-fips.us-east-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "macie2-fips.us-east-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "macie2.us-east-2.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-1" : { "variants" : [ { "hostname" : "macie2-fips.us-west-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "macie2-fips.us-west-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "macie2.us-west-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-2" : { "variants" : [ { "hostname" : "macie2-fips.us-west-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "macie2-fips.us-west-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "macie2.us-west-2.api.aws", + "tags" : [ "dualstack" ] } ] } } @@ -14149,25 +14417,96 @@ }, "mediaconvert" : { "endpoints" : { - "af-south-1" : { }, - "ap-northeast-1" : { }, - "ap-northeast-2" : { }, - "ap-northeast-3" : { }, - "ap-south-1" : { }, - "ap-southeast-1" : { }, - "ap-southeast-2" : { }, - "ap-southeast-4" : { }, + "af-south-1" : { + "variants" : [ { + "hostname" : "mediaconvert.af-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-1" : { + "variants" : [ { + "hostname" : "mediaconvert.ap-northeast-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-2" : { + "variants" : [ { + "hostname" : "mediaconvert.ap-northeast-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-northeast-3" : { + "variants" : [ { + "hostname" : "mediaconvert.ap-northeast-3.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-south-1" : { + "variants" : [ { + "hostname" : "mediaconvert.ap-south-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-1" : { + "variants" : [ { + "hostname" : "mediaconvert.ap-southeast-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-2" : { + "variants" : [ { + "hostname" : "mediaconvert.ap-southeast-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "ap-southeast-4" : { + "variants" : [ { + "hostname" : "mediaconvert.ap-southeast-4.api.aws", + "tags" : [ "dualstack" ] + } ] + }, "ca-central-1" : { "variants" : [ { "hostname" : "mediaconvert-fips.ca-central-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "mediaconvert-fips.ca-central-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "mediaconvert.ca-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-central-1" : { + "variants" : [ { + "hostname" : "mediaconvert.eu-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-north-1" : { + "variants" : [ { + "hostname" : "mediaconvert.eu-north-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-1" : { + "variants" : [ { + "hostname" : "mediaconvert.eu-west-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-2" : { + "variants" : [ { + "hostname" : "mediaconvert.eu-west-2.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "eu-west-3" : { + "variants" : [ { + "hostname" : "mediaconvert.eu-west-3.api.aws", + "tags" : [ "dualstack" ] } ] }, - "eu-central-1" : { }, - "eu-north-1" : { }, - "eu-west-1" : { }, - "eu-west-2" : { }, - "eu-west-3" : { }, "fips-ca-central-1" : { "credentialScope" : { "region" : "ca-central-1" @@ -14203,30 +14542,64 @@ "deprecated" : true, "hostname" : "mediaconvert-fips.us-west-2.amazonaws.com" }, - "me-central-1" : { }, - "sa-east-1" : { }, + "me-central-1" : { + "variants" : [ { + "hostname" : "mediaconvert.me-central-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, + "sa-east-1" : { + "variants" : [ { + "hostname" : "mediaconvert.sa-east-1.api.aws", + "tags" : [ "dualstack" ] + } ] + }, "us-east-1" : { "variants" : [ { "hostname" : "mediaconvert-fips.us-east-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "mediaconvert-fips.us-east-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "mediaconvert.us-east-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-east-2" : { "variants" : [ { "hostname" : "mediaconvert-fips.us-east-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "mediaconvert-fips.us-east-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "mediaconvert.us-east-2.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-1" : { "variants" : [ { "hostname" : "mediaconvert-fips.us-west-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "mediaconvert-fips.us-west-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "mediaconvert.us-west-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-2" : { "variants" : [ { "hostname" : "mediaconvert-fips.us-west-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "mediaconvert-fips.us-west-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "mediaconvert.us-west-2.api.aws", + "tags" : [ "dualstack" ] } ] } } @@ -25211,8 +25584,18 @@ }, "glue" : { "endpoints" : { - "cn-north-1" : { }, - "cn-northwest-1" : { } + "cn-north-1" : { + "variants" : [ { + "hostname" : "glue.cn-north-1.api.amazonwebservices.com.cn", + "tags" : [ "dualstack" ] + } ] + }, + "cn-northwest-1" : { + "variants" : [ { + "hostname" : "glue.cn-northwest-1.api.amazonwebservices.com.cn", + "tags" : [ "dualstack" ] + } ] + } } }, "greengrass" : { @@ -25446,10 +25829,10 @@ "mediaconvert" : { "endpoints" : { "cn-northwest-1" : { - "credentialScope" : { - "region" : "cn-northwest-1" - }, - "hostname" : "mediaconvert.cn-northwest-1.amazonaws.com.cn" + "variants" : [ { + "hostname" : "mediaconvert.cn-northwest-1.api.amazonwebservices.com.cn", + "tags" : [ "dualstack" ] + } ] } } }, @@ -29265,6 +29648,12 @@ "variants" : [ { "hostname" : "mediaconvert.us-gov-west-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "mediaconvert.us-gov-west-1.api.aws", + "tags" : [ "dualstack" ] + }, { + "hostname" : "mediaconvert.us-gov-west-1.api.aws", + "tags" : [ "dualstack", "fips" ] } ] } } diff --git a/gems/aws-sdk-ecr/CHANGELOG.md b/gems/aws-sdk-ecr/CHANGELOG.md index 7ba118c9dd1..887a7bca3f5 100644 --- a/gems/aws-sdk-ecr/CHANGELOG.md +++ b/gems/aws-sdk-ecr/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.89.0 (2024-12-23) +------------------ + +* Feature - Documentation update for ECR GetAccountSetting and PutAccountSetting APIs. + 1.88.0 (2024-10-18) ------------------ diff --git a/gems/aws-sdk-ecr/VERSION b/gems/aws-sdk-ecr/VERSION index 59be592144c..636ea711ad9 100644 --- a/gems/aws-sdk-ecr/VERSION +++ b/gems/aws-sdk-ecr/VERSION @@ -1 +1 @@ -1.88.0 +1.89.0 diff --git a/gems/aws-sdk-ecr/lib/aws-sdk-ecr.rb b/gems/aws-sdk-ecr/lib/aws-sdk-ecr.rb index 5327711057b..562afef8047 100644 --- a/gems/aws-sdk-ecr/lib/aws-sdk-ecr.rb +++ b/gems/aws-sdk-ecr/lib/aws-sdk-ecr.rb @@ -55,7 +55,7 @@ module Plugins autoload :EndpointProvider, 'aws-sdk-ecr/endpoint_provider' autoload :Endpoints, 'aws-sdk-ecr/endpoints' - GEM_VERSION = '1.88.0' + GEM_VERSION = '1.89.0' end diff --git a/gems/aws-sdk-ecr/lib/aws-sdk-ecr/client.rb b/gems/aws-sdk-ecr/lib/aws-sdk-ecr/client.rb index bc608c196df..31fff0cc683 100644 --- a/gems/aws-sdk-ecr/lib/aws-sdk-ecr/client.rb +++ b/gems/aws-sdk-ecr/lib/aws-sdk-ecr/client.rb @@ -2102,10 +2102,11 @@ def describe_repository_creation_templates(params = {}, options = {}) req.send_request(options) end - # Retrieves the basic scan type version name. + # Retrieves the account setting value for the specified setting name. # # @option params [required, String] :name - # Basic scan type version name. + # The name of the account setting, such as `BASIC_SCAN_TYPE_VERSION` or + # `REGISTRY_POLICY_SCOPE`. # # @return [Types::GetAccountSettingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # @@ -2668,15 +2669,18 @@ def list_tags_for_resource(params = {}, options = {}) req.send_request(options) end - # Allows you to change the basic scan type version by setting the `name` - # parameter to either `CLAIR` to `AWS_NATIVE`. + # Allows you to change the basic scan type version or registry policy + # scope. # # @option params [required, String] :name - # Basic scan type version name. + # The name of the account setting, such as `BASIC_SCAN_TYPE_VERSION` or + # `REGISTRY_POLICY_SCOPE`. # # @option params [required, String] :value - # Setting value that determines what basic scan type is being used: - # `AWS_NATIVE` or `CLAIR`. + # Setting value that is specified. The following are valid values for + # the basic scan type being used: `AWS_NATIVE` or `CLAIR`. The following + # are valid values for the registry policy scope being used: `V1` or + # `V2`. # # @return [Types::PutAccountSettingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # @@ -3673,7 +3677,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-ecr' - context[:gem_version] = '1.88.0' + context[:gem_version] = '1.89.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb b/gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb index 2097d103f71..ecbd775dccf 100644 --- a/gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb +++ b/gems/aws-sdk-ecr/lib/aws-sdk-ecr/types.rb @@ -1613,7 +1613,8 @@ class EnhancedImageScanFinding < Struct.new( end # @!attribute [rw] name - # Basic scan type version name. + # The name of the account setting, such as `BASIC_SCAN_TYPE_VERSION` + # or `REGISTRY_POLICY_SCOPE`. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAccountSettingRequest AWS API Documentation @@ -1625,12 +1626,14 @@ class GetAccountSettingRequest < Struct.new( end # @!attribute [rw] name - # Retrieves the basic scan type version name. + # Retrieves the name of the account setting. # @return [String] # # @!attribute [rw] value - # Retrieves the value that specifies what basic scan type is being - # used: `AWS_NATIVE` or `CLAIR`. + # The setting value for the setting name. The following are valid + # values for the basic scan type being used: `AWS_NATIVE` or `CLAIR`. + # The following are valid values for the registry policy scope being + # used: `V1` or `V2`. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAccountSettingResponse AWS API Documentation @@ -2978,12 +2981,15 @@ class PullThroughCacheRuleNotFoundException < Struct.new( end # @!attribute [rw] name - # Basic scan type version name. + # The name of the account setting, such as `BASIC_SCAN_TYPE_VERSION` + # or `REGISTRY_POLICY_SCOPE`. # @return [String] # # @!attribute [rw] value - # Setting value that determines what basic scan type is being used: - # `AWS_NATIVE` or `CLAIR`. + # Setting value that is specified. The following are valid values for + # the basic scan type being used: `AWS_NATIVE` or `CLAIR`. The + # following are valid values for the registry policy scope being used: + # `V1` or `V2`. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutAccountSettingRequest AWS API Documentation @@ -2996,11 +3002,11 @@ class PutAccountSettingRequest < Struct.new( end # @!attribute [rw] name - # Retrieves the the basic scan type version name. + # Retrieves the name of the account setting. # @return [String] # # @!attribute [rw] value - # Retrieves the basic scan type value, either `AWS_NATIVE` or `-`. + # Retrieves the value of the specified account setting. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutAccountSettingResponse AWS API Documentation diff --git a/gems/aws-sdk-ecrpublic/CHANGELOG.md b/gems/aws-sdk-ecrpublic/CHANGELOG.md index 69c8c4c0043..36629f176eb 100644 --- a/gems/aws-sdk-ecrpublic/CHANGELOG.md +++ b/gems/aws-sdk-ecrpublic/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.41.0 (2024-12-23) +------------------ + +* Feature - Add support for Dualstack endpoints + 1.40.0 (2024-10-18) ------------------ diff --git a/gems/aws-sdk-ecrpublic/VERSION b/gems/aws-sdk-ecrpublic/VERSION index 32b7211cb61..7d47e599800 100644 --- a/gems/aws-sdk-ecrpublic/VERSION +++ b/gems/aws-sdk-ecrpublic/VERSION @@ -1 +1 @@ -1.40.0 +1.41.0 diff --git a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic.rb b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic.rb index 8085d4c6d57..0f0ebbe7f93 100644 --- a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic.rb +++ b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic.rb @@ -54,7 +54,7 @@ module Plugins autoload :EndpointProvider, 'aws-sdk-ecrpublic/endpoint_provider' autoload :Endpoints, 'aws-sdk-ecrpublic/endpoints' - GEM_VERSION = '1.40.0' + GEM_VERSION = '1.41.0' end diff --git a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb index b49adb5df5c..782cc19da59 100644 --- a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb +++ b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/client.rb @@ -1667,7 +1667,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-ecrpublic' - context[:gem_version] = '1.40.0' + context[:gem_version] = '1.41.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_parameters.rb b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_parameters.rb index 4f7d35253a8..2236d9550f1 100644 --- a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_parameters.rb +++ b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_parameters.rb @@ -15,26 +15,20 @@ module Aws::ECRPublic # # @return [String] # - # @!attribute use_dual_stack - # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error. - # - # @return [Boolean] - # # @!attribute use_fips # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error. # # @return [Boolean] # - # @!attribute endpoint - # Override the endpoint used to send this request + # @!attribute use_dual_stack + # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error. # - # @return [String] + # @return [Boolean] # EndpointParameters = Struct.new( :region, - :use_dual_stack, :use_fips, - :endpoint, + :use_dual_stack, ) do include Aws::Structure @@ -42,27 +36,24 @@ module Aws::ECRPublic class << self PARAM_MAP = { 'Region' => :region, - 'UseDualStack' => :use_dual_stack, 'UseFIPS' => :use_fips, - 'Endpoint' => :endpoint, + 'UseDualStack' => :use_dual_stack, }.freeze end def initialize(options = {}) self[:region] = options[:region] - self[:use_dual_stack] = options[:use_dual_stack] - self[:use_dual_stack] = false if self[:use_dual_stack].nil? self[:use_fips] = options[:use_fips] self[:use_fips] = false if self[:use_fips].nil? - self[:endpoint] = options[:endpoint] + self[:use_dual_stack] = options[:use_dual_stack] + self[:use_dual_stack] = false if self[:use_dual_stack].nil? end def self.create(config, options={}) new({ region: config.region, - use_dual_stack: config.use_dualstack_endpoint, use_fips: config.use_fips_endpoint, - endpoint: (config.endpoint.to_s unless config.regional_endpoint), + use_dual_stack: config.use_dualstack_endpoint, }.merge(options)) end end diff --git a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_provider.rb b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_provider.rb index b46c27273d2..9b10a742d3b 100644 --- a/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_provider.rb +++ b/gems/aws-sdk-ecrpublic/lib/aws-sdk-ecrpublic/endpoint_provider.rb @@ -11,42 +11,20 @@ module Aws::ECRPublic class EndpointProvider def resolve_endpoint(parameters) region = parameters.region - use_dual_stack = parameters.use_dual_stack use_fips = parameters.use_fips - endpoint = parameters.endpoint - if Aws::Endpoints::Matchers.set?(endpoint) + use_dual_stack = parameters.use_dual_stack + if Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) - raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported" + raise ArgumentError, "ECR Public does not support FIPS" end if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported" - end - return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {}) - end - if Aws::Endpoints::Matchers.set?(region) - if (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) - return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "FIPS is enabled but this partition does not support FIPS" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "DualStack is enabled but this partition does not support DualStack" + if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) + return Aws::Endpoints::Endpoint.new(url: "https://ecr-public.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) end - return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) + raise ArgumentError, "Dualstack is enabled but this partition does not support dualstack" end + return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) end - raise ArgumentError, "Invalid Configuration: Missing Region" raise ArgumentError, 'No endpoint could be resolved' end diff --git a/gems/aws-sdk-ecrpublic/spec/endpoint_provider_spec.rb b/gems/aws-sdk-ecrpublic/spec/endpoint_provider_spec.rb index 9ed18227753..cd456f7335e 100644 --- a/gems/aws-sdk-ecrpublic/spec/endpoint_provider_spec.rb +++ b/gems/aws-sdk-ecrpublic/spec/endpoint_provider_spec.rb @@ -14,303 +14,40 @@ module Aws::ECRPublic describe EndpointProvider do subject { Aws::ECRPublic::EndpointProvider.new } - context "For region us-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.us-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.us-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public.us-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS disabled and DualStack disabled" do + context "Valid with dualstack and FIPS disabled. i.e, IPv4 Only stack with no FIPS, with special prefix" do let(:expected) do {"endpoint"=>{"url"=>"https://api.ecr-public.us-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.cn-north-1.api.amazonwebservices.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.cn-north-1.amazonaws.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public.cn-north-1.api.amazonwebservices.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public.cn-north-1.amazonaws.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.us-gov-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.us-gov-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public.us-gov-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public.us-gov-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-iso-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-iso-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.us-iso-east-1.c2s.ic.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>false}) + params = EndpointParameters.new(**{:use_dual_stack=>false, :use_fips=>false, :region=>"us-east-1"}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) end - end - context "For region us-iso-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"error"=>"DualStack is enabled but this partition does not support DualStack"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-iso-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public.us-iso-east-1.c2s.ic.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-isob-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-isob-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public-fips.us-isob-east-1.sc2s.sgov.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-isob-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"error"=>"DualStack is enabled but this partition does not support DualStack"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-isob-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://api.ecr-public.us-isob-east-1.sc2s.sgov.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For custom endpoint with region set and fips disabled and dualstack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) + it 'produces the correct output from the client when calling describe_registries' do + client = Client.new( + region: 'us-east-1', + stub_responses: true + ) + resp = client.describe_registries( + ) + expected_uri = URI.parse(expected['endpoint']['url']) + expect(resp.context.http_request.endpoint.to_s).to include(expected_uri.host) + expect(resp.context.http_request.endpoint.to_s).to include(expected_uri.scheme) + expect(resp.context.http_request.endpoint.to_s).to include(expected_uri.path) end end - context "For custom endpoint with region not set and fips disabled and dualstack disabled" do + context "Valid with dualstack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} + {"endpoint"=>{"url"=>"https://ecr-public.us-east-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) + params = EndpointParameters.new(**{:use_dual_stack=>true, :use_fips=>false, :region=>"us-east-1"}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -318,39 +55,39 @@ module Aws::ECRPublic end end - context "For custom endpoint with fips enabled and dualstack disabled" do + context "Invalid with FIPS set, dualstack disabled" do let(:expected) do - {"error"=>"Invalid Configuration: FIPS and custom endpoint are not supported"} + {"error"=>"ECR Public does not support FIPS"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false, :endpoint=>"https://example.com"}) + params = EndpointParameters.new(**{:use_dual_stack=>false, :use_fips=>true, :region=>"us-east-1"}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) end end - context "For custom endpoint with fips disabled and dualstack enabled" do + context "Invalid with both dualstack and FIPS enabled" do let(:expected) do - {"error"=>"Invalid Configuration: Dualstack and custom endpoint are not supported"} + {"error"=>"ECR Public does not support FIPS"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true, :endpoint=>"https://example.com"}) + params = EndpointParameters.new(**{:use_dual_stack=>true, :use_fips=>true, :region=>"us-east-1"}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) end end - context "Missing region" do + context "Invalid with DualStack enabled and partition does not support Dualstack" do let(:expected) do - {"error"=>"Invalid Configuration: Missing Region"} + {"error"=>"Dualstack is enabled but this partition does not support dualstack"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{}) + params = EndpointParameters.new(**{:use_dual_stack=>true, :region=>"us-isob-east-1"}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) diff --git a/gems/aws-sdk-eks/CHANGELOG.md b/gems/aws-sdk-eks/CHANGELOG.md index 4074ef679d6..6b80fd6c864 100644 --- a/gems/aws-sdk-eks/CHANGELOG.md +++ b/gems/aws-sdk-eks/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.125.0 (2024-12-23) +------------------ + +* Feature - This release adds support for DescribeClusterVersions API that provides important information about Kubernetes versions along with end of support dates + 1.124.0 (2024-12-20) ------------------ diff --git a/gems/aws-sdk-eks/VERSION b/gems/aws-sdk-eks/VERSION index 370a6d8fbb8..202b149137f 100644 --- a/gems/aws-sdk-eks/VERSION +++ b/gems/aws-sdk-eks/VERSION @@ -1 +1 @@ -1.124.0 +1.125.0 diff --git a/gems/aws-sdk-eks/lib/aws-sdk-eks.rb b/gems/aws-sdk-eks/lib/aws-sdk-eks.rb index 0c3282e393a..369926a5af1 100644 --- a/gems/aws-sdk-eks/lib/aws-sdk-eks.rb +++ b/gems/aws-sdk-eks/lib/aws-sdk-eks.rb @@ -55,7 +55,7 @@ module Plugins autoload :EndpointProvider, 'aws-sdk-eks/endpoint_provider' autoload :Endpoints, 'aws-sdk-eks/endpoints' - GEM_VERSION = '1.124.0' + GEM_VERSION = '1.125.0' end diff --git a/gems/aws-sdk-eks/lib/aws-sdk-eks/client.rb b/gems/aws-sdk-eks/lib/aws-sdk-eks/client.rb index 49da7a7d14d..5be9d1a2b65 100644 --- a/gems/aws-sdk-eks/lib/aws-sdk-eks/client.rb +++ b/gems/aws-sdk-eks/lib/aws-sdk-eks/client.rb @@ -2970,6 +2970,71 @@ def describe_cluster(params = {}, options = {}) req.send_request(options) end + # Lists available Kubernetes versions for Amazon EKS clusters. + # + # @option params [String] :cluster_type + # The type of cluster to filter versions by. + # + # @option params [Integer] :max_results + # Maximum number of results to return. + # + # @option params [String] :next_token + # Pagination token for the next set of results. + # + # @option params [Boolean] :default_only + # Filter to show only default versions. + # + # @option params [Boolean] :include_all + # Include all available versions in the response. + # + # @option params [Array] :cluster_versions + # List of specific cluster versions to describe. + # + # @option params [String] :status + # Filter versions by their current status. + # + # @return [Types::DescribeClusterVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::DescribeClusterVersionsResponse#next_token #next_token} => String + # * {Types::DescribeClusterVersionsResponse#cluster_versions #cluster_versions} => Array<Types::ClusterVersionInformation> + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.describe_cluster_versions({ + # cluster_type: "String", + # max_results: 1, + # next_token: "String", + # default_only: false, + # include_all: false, + # cluster_versions: ["String"], + # status: "unsupported", # accepts unsupported, standard-support, extended-support + # }) + # + # @example Response structure + # + # resp.next_token #=> String + # resp.cluster_versions #=> Array + # resp.cluster_versions[0].cluster_version #=> String + # resp.cluster_versions[0].cluster_type #=> String + # resp.cluster_versions[0].default_platform_version #=> String + # resp.cluster_versions[0].default_version #=> Boolean + # resp.cluster_versions[0].release_date #=> Time + # resp.cluster_versions[0].end_of_standard_support_date #=> Time + # resp.cluster_versions[0].end_of_extended_support_date #=> Time + # resp.cluster_versions[0].status #=> String, one of "unsupported", "standard-support", "extended-support" + # resp.cluster_versions[0].kubernetes_patch_version #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeClusterVersions AWS API Documentation + # + # @overload describe_cluster_versions(params = {}) + # @param [Hash] params ({}) + def describe_cluster_versions(params = {}, options = {}) + req = build_request(:describe_cluster_versions, params) + req.send_request(options) + end + # Returns descriptive information about a subscription. # # @option params [required, String] :id @@ -5352,7 +5417,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-eks' - context[:gem_version] = '1.124.0' + context[:gem_version] = '1.125.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-eks/lib/aws-sdk-eks/client_api.rb b/gems/aws-sdk-eks/lib/aws-sdk-eks/client_api.rb index fe3b0b7d647..ee84e3996ae 100644 --- a/gems/aws-sdk-eks/lib/aws-sdk-eks/client_api.rb +++ b/gems/aws-sdk-eks/lib/aws-sdk-eks/client_api.rb @@ -70,6 +70,9 @@ module ClientApi ClusterIssueList = Shapes::ListShape.new(name: 'ClusterIssueList') ClusterName = Shapes::StringShape.new(name: 'ClusterName') ClusterStatus = Shapes::StringShape.new(name: 'ClusterStatus') + ClusterVersionInformation = Shapes::StructureShape.new(name: 'ClusterVersionInformation') + ClusterVersionList = Shapes::ListShape.new(name: 'ClusterVersionList') + ClusterVersionStatus = Shapes::StringShape.new(name: 'ClusterVersionStatus') Compatibilities = Shapes::ListShape.new(name: 'Compatibilities') Compatibility = Shapes::StructureShape.new(name: 'Compatibility') ComputeConfigRequest = Shapes::StructureShape.new(name: 'ComputeConfigRequest') @@ -123,6 +126,9 @@ module ClientApi DescribeAddonVersionsResponse = Shapes::StructureShape.new(name: 'DescribeAddonVersionsResponse') DescribeClusterRequest = Shapes::StructureShape.new(name: 'DescribeClusterRequest') DescribeClusterResponse = Shapes::StructureShape.new(name: 'DescribeClusterResponse') + DescribeClusterVersionMaxResults = Shapes::IntegerShape.new(name: 'DescribeClusterVersionMaxResults') + DescribeClusterVersionsRequest = Shapes::StructureShape.new(name: 'DescribeClusterVersionsRequest') + DescribeClusterVersionsResponse = Shapes::StructureShape.new(name: 'DescribeClusterVersionsResponse') DescribeEksAnywhereSubscriptionRequest = Shapes::StructureShape.new(name: 'DescribeEksAnywhereSubscriptionRequest') DescribeEksAnywhereSubscriptionResponse = Shapes::StructureShape.new(name: 'DescribeEksAnywhereSubscriptionResponse') DescribeFargateProfileRequest = Shapes::StructureShape.new(name: 'DescribeFargateProfileRequest') @@ -531,6 +537,19 @@ module ClientApi ClusterIssueList.member = Shapes::ShapeRef.new(shape: ClusterIssue) + ClusterVersionInformation.add_member(:cluster_version, Shapes::ShapeRef.new(shape: String, location_name: "clusterVersion")) + ClusterVersionInformation.add_member(:cluster_type, Shapes::ShapeRef.new(shape: String, location_name: "clusterType")) + ClusterVersionInformation.add_member(:default_platform_version, Shapes::ShapeRef.new(shape: String, location_name: "defaultPlatformVersion")) + ClusterVersionInformation.add_member(:default_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "defaultVersion")) + ClusterVersionInformation.add_member(:release_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "releaseDate")) + ClusterVersionInformation.add_member(:end_of_standard_support_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endOfStandardSupportDate")) + ClusterVersionInformation.add_member(:end_of_extended_support_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endOfExtendedSupportDate")) + ClusterVersionInformation.add_member(:status, Shapes::ShapeRef.new(shape: ClusterVersionStatus, location_name: "status")) + ClusterVersionInformation.add_member(:kubernetes_patch_version, Shapes::ShapeRef.new(shape: String, location_name: "kubernetesPatchVersion")) + ClusterVersionInformation.struct_class = Types::ClusterVersionInformation + + ClusterVersionList.member = Shapes::ShapeRef.new(shape: ClusterVersionInformation) + Compatibilities.member = Shapes::ShapeRef.new(shape: Compatibility) Compatibility.add_member(:cluster_version, Shapes::ShapeRef.new(shape: String, location_name: "clusterVersion")) @@ -781,6 +800,19 @@ module ClientApi DescribeClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster")) DescribeClusterResponse.struct_class = Types::DescribeClusterResponse + DescribeClusterVersionsRequest.add_member(:cluster_type, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "clusterType")) + DescribeClusterVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeClusterVersionMaxResults, location: "querystring", location_name: "maxResults")) + DescribeClusterVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken")) + DescribeClusterVersionsRequest.add_member(:default_only, Shapes::ShapeRef.new(shape: BoxedBoolean, location: "querystring", location_name: "defaultOnly")) + DescribeClusterVersionsRequest.add_member(:include_all, Shapes::ShapeRef.new(shape: BoxedBoolean, location: "querystring", location_name: "includeAll")) + DescribeClusterVersionsRequest.add_member(:cluster_versions, Shapes::ShapeRef.new(shape: StringList, location: "querystring", location_name: "clusterVersions")) + DescribeClusterVersionsRequest.add_member(:status, Shapes::ShapeRef.new(shape: ClusterVersionStatus, location: "querystring", location_name: "status")) + DescribeClusterVersionsRequest.struct_class = Types::DescribeClusterVersionsRequest + + DescribeClusterVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken")) + DescribeClusterVersionsResponse.add_member(:cluster_versions, Shapes::ShapeRef.new(shape: ClusterVersionList, location_name: "clusterVersions")) + DescribeClusterVersionsResponse.struct_class = Types::DescribeClusterVersionsResponse + DescribeEksAnywhereSubscriptionRequest.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "id")) DescribeEksAnywhereSubscriptionRequest.struct_class = Types::DescribeEksAnywhereSubscriptionRequest @@ -1838,6 +1870,23 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException) end) + api.add_operation(:describe_cluster_versions, Seahorse::Model::Operation.new.tap do |o| + o.name = "DescribeClusterVersions" + o.http_method = "GET" + o.http_request_uri = "/cluster-versions" + o.input = Shapes::ShapeRef.new(shape: DescribeClusterVersionsRequest) + o.output = Shapes::ShapeRef.new(shape: DescribeClusterVersionsResponse) + o.errors << Shapes::ShapeRef.new(shape: ServerException) + o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException) + o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_token" => "next_token" + } + ) + end) + api.add_operation(:describe_eks_anywhere_subscription, Seahorse::Model::Operation.new.tap do |o| o.name = "DescribeEksAnywhereSubscription" o.http_method = "GET" diff --git a/gems/aws-sdk-eks/lib/aws-sdk-eks/types.rb b/gems/aws-sdk-eks/lib/aws-sdk-eks/types.rb index cb5ef873380..eeab11a4a9b 100644 --- a/gems/aws-sdk-eks/lib/aws-sdk-eks/types.rb +++ b/gems/aws-sdk-eks/lib/aws-sdk-eks/types.rb @@ -286,17 +286,14 @@ class Addon < Struct.new( include Aws::Structure end - # The summary information about the Amazon EKS add-on compatibility for - # the next Kubernetes version for an insight check in the - # `UPGRADE_READINESS` category. + # Contains compatibility information for an Amazon EKS add-on. # # @!attribute [rw] name # The name of the Amazon EKS add-on. # @return [String] # # @!attribute [rw] compatible_versions - # The list of compatible Amazon EKS add-on versions for the next - # Kubernetes version. + # A list of compatible add-on versions. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/AddonCompatibilityDetail AWS API Documentation @@ -1019,6 +1016,60 @@ class ClusterIssue < Struct.new( include Aws::Structure end + # Contains details about a specific EKS cluster version. + # + # @!attribute [rw] cluster_version + # The Kubernetes version for the cluster. + # @return [String] + # + # @!attribute [rw] cluster_type + # The type of cluster this version is for. + # @return [String] + # + # @!attribute [rw] default_platform_version + # Default platform version for this Kubernetes version. + # @return [String] + # + # @!attribute [rw] default_version + # Indicates if this is a default version. + # @return [Boolean] + # + # @!attribute [rw] release_date + # The release date of this cluster version. + # @return [Time] + # + # @!attribute [rw] end_of_standard_support_date + # Date when standard support ends for this version. + # @return [Time] + # + # @!attribute [rw] end_of_extended_support_date + # Date when extended support ends for this version. + # @return [Time] + # + # @!attribute [rw] status + # Current status of this cluster version. + # @return [String] + # + # @!attribute [rw] kubernetes_patch_version + # The patch version of Kubernetes for this cluster version. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ClusterVersionInformation AWS API Documentation + # + class ClusterVersionInformation < Struct.new( + :cluster_version, + :cluster_type, + :default_platform_version, + :default_version, + :release_date, + :end_of_standard_support_date, + :end_of_extended_support_date, + :status, + :kubernetes_patch_version) + SENSITIVE = [] + include Aws::Structure + end + # Compatibility information. # # @!attribute [rw] cluster_version @@ -2692,6 +2743,65 @@ class DescribeClusterResponse < Struct.new( include Aws::Structure end + # @!attribute [rw] cluster_type + # The type of cluster to filter versions by. + # @return [String] + # + # @!attribute [rw] max_results + # Maximum number of results to return. + # @return [Integer] + # + # @!attribute [rw] next_token + # Pagination token for the next set of results. + # @return [String] + # + # @!attribute [rw] default_only + # Filter to show only default versions. + # @return [Boolean] + # + # @!attribute [rw] include_all + # Include all available versions in the response. + # @return [Boolean] + # + # @!attribute [rw] cluster_versions + # List of specific cluster versions to describe. + # @return [Array] + # + # @!attribute [rw] status + # Filter versions by their current status. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeClusterVersionsRequest AWS API Documentation + # + class DescribeClusterVersionsRequest < Struct.new( + :cluster_type, + :max_results, + :next_token, + :default_only, + :include_all, + :cluster_versions, + :status) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] next_token + # Pagination token for the next set of results. + # @return [String] + # + # @!attribute [rw] cluster_versions + # List of cluster version information objects. + # @return [Array] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeClusterVersionsResponse AWS API Documentation + # + class DescribeClusterVersionsResponse < Struct.new( + :next_token, + :cluster_versions) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] id # The ID of the subscription. # @return [String] @@ -3440,7 +3550,7 @@ class Insight < Struct.new( # @return [Array] # # @!attribute [rw] addon_compatibility_details - # A list of `AddonCompatibilityDetail` objects for Amazon EKS add-ons. + # A list of AddonCompatibilityDetail objects for Amazon EKS add-ons. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/InsightCategorySpecificSummary AWS API Documentation diff --git a/gems/aws-sdk-eks/sig/client.rbs b/gems/aws-sdk-eks/sig/client.rbs index a05adcae1ff..25203299bb5 100644 --- a/gems/aws-sdk-eks/sig/client.rbs +++ b/gems/aws-sdk-eks/sig/client.rbs @@ -511,6 +511,23 @@ module Aws ) -> _DescribeClusterResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeClusterResponseSuccess + interface _DescribeClusterVersionsResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::DescribeClusterVersionsResponse] + def next_token: () -> ::String + def cluster_versions: () -> ::Array[Types::ClusterVersionInformation] + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EKS/Client.html#describe_cluster_versions-instance_method + def describe_cluster_versions: ( + ?cluster_type: ::String, + ?max_results: ::Integer, + ?next_token: ::String, + ?default_only: bool, + ?include_all: bool, + ?cluster_versions: Array[::String], + ?status: ("unsupported" | "standard-support" | "extended-support") + ) -> _DescribeClusterVersionsResponseSuccess + | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeClusterVersionsResponseSuccess + interface _DescribeEksAnywhereSubscriptionResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DescribeEksAnywhereSubscriptionResponse] def subscription: () -> Types::EksAnywhereSubscription diff --git a/gems/aws-sdk-eks/sig/types.rbs b/gems/aws-sdk-eks/sig/types.rbs index e37ededf32d..e02212acc3c 100644 --- a/gems/aws-sdk-eks/sig/types.rbs +++ b/gems/aws-sdk-eks/sig/types.rbs @@ -240,6 +240,19 @@ module Aws::EKS SENSITIVE: [] end + class ClusterVersionInformation + attr_accessor cluster_version: ::String + attr_accessor cluster_type: ::String + attr_accessor default_platform_version: ::String + attr_accessor default_version: bool + attr_accessor release_date: ::Time + attr_accessor end_of_standard_support_date: ::Time + attr_accessor end_of_extended_support_date: ::Time + attr_accessor status: ("unsupported" | "standard-support" | "extended-support") + attr_accessor kubernetes_patch_version: ::String + SENSITIVE: [] + end + class Compatibility attr_accessor cluster_version: ::String attr_accessor platform_versions: ::Array[::String] @@ -583,6 +596,23 @@ module Aws::EKS SENSITIVE: [] end + class DescribeClusterVersionsRequest + attr_accessor cluster_type: ::String + attr_accessor max_results: ::Integer + attr_accessor next_token: ::String + attr_accessor default_only: bool + attr_accessor include_all: bool + attr_accessor cluster_versions: ::Array[::String] + attr_accessor status: ("unsupported" | "standard-support" | "extended-support") + SENSITIVE: [] + end + + class DescribeClusterVersionsResponse + attr_accessor next_token: ::String + attr_accessor cluster_versions: ::Array[Types::ClusterVersionInformation] + SENSITIVE: [] + end + class DescribeEksAnywhereSubscriptionRequest attr_accessor id: ::String SENSITIVE: [] diff --git a/gems/aws-sdk-glue/CHANGELOG.md b/gems/aws-sdk-glue/CHANGELOG.md index cfdc904e8a3..a1dabf0994e 100644 --- a/gems/aws-sdk-glue/CHANGELOG.md +++ b/gems/aws-sdk-glue/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.206.0 (2024-12-23) +------------------ + +* Feature - Add IncludeRoot parameters to GetCatalogs API to return root catalog. + 1.205.0 (2024-12-12) ------------------ diff --git a/gems/aws-sdk-glue/VERSION b/gems/aws-sdk-glue/VERSION index 2492aaba5b2..71987f737e3 100644 --- a/gems/aws-sdk-glue/VERSION +++ b/gems/aws-sdk-glue/VERSION @@ -1 +1 @@ -1.205.0 +1.206.0 diff --git a/gems/aws-sdk-glue/lib/aws-sdk-glue.rb b/gems/aws-sdk-glue/lib/aws-sdk-glue.rb index 7316c3b3654..07e891cefcc 100644 --- a/gems/aws-sdk-glue/lib/aws-sdk-glue.rb +++ b/gems/aws-sdk-glue/lib/aws-sdk-glue.rb @@ -54,7 +54,7 @@ module Plugins autoload :EndpointProvider, 'aws-sdk-glue/endpoint_provider' autoload :Endpoints, 'aws-sdk-glue/endpoints' - GEM_VERSION = '1.205.0' + GEM_VERSION = '1.206.0' end diff --git a/gems/aws-sdk-glue/lib/aws-sdk-glue/client.rb b/gems/aws-sdk-glue/lib/aws-sdk-glue/client.rb index c25191f1d2d..063e97a693a 100644 --- a/gems/aws-sdk-glue/lib/aws-sdk-glue/client.rb +++ b/gems/aws-sdk-glue/lib/aws-sdk-glue/client.rb @@ -7182,8 +7182,19 @@ def get_catalog_import_status(params = {}, options = {}) # The maximum number of catalogs to return in one response. # # @option params [Boolean] :recursive - # When specified as true, iterates through the account and returns all - # catalog resources (including top-level resources and child resources) + # Whether to list all catalogs across the catalog hierarchy, starting + # from the `ParentCatalogId`. Defaults to `false` . When `true`, all + # catalog objects in the `ParentCatalogID` hierarchy are enumerated in + # the response. + # + # @option params [Boolean] :include_root + # Whether to list the default catalog in the account and region in the + # response. Defaults to `false`. When `true` and `ParentCatalogId = NULL + # | Amazon Web Services Account ID`, all catalogs and the default + # catalog are enumerated in the response. + # + # When the `ParentCatalogId` is not equal to null, and this attribute is + # passed as `false` or `true`, an `InvalidInputException` is thrown. # # @return [Types::GetCatalogsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # @@ -7197,6 +7208,7 @@ def get_catalog_import_status(params = {}, options = {}) # next_token: "Token", # max_results: 1, # recursive: false, + # include_root: false, # }) # # @example Response structure @@ -17366,11 +17378,15 @@ def start_import_labels_task_run(params = {}, options = {}) # run can consume resources before it is terminated and enters `TIMEOUT` # status. This value overrides the timeout value set in the parent job. # - # Streaming jobs must have timeout values less than 7 days or 10080 - # minutes. When the value is left blank, the job will be restarted after - # 7 days based if you have not setup a maintenance window. If you have - # setup maintenance window, it will be restarted during the maintenance - # window after 7 days. + # Jobs must have timeout values less than 7 days or 10080 minutes. + # Otherwise, the jobs will throw an exception. + # + # When the value is left blank, the timeout is defaulted to 2880 + # minutes. + # + # Any existing Glue jobs that had a timeout value greater than 7 days + # will be defaulted to 7 days. For instance if you have specified a + # timeout of 20 days for a batch job, it will be stopped on the 7th day. # # @option params [Float] :max_capacity # For Glue version 1.0 or earlier jobs, using the standard worker type, @@ -20032,7 +20048,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-glue' - context[:gem_version] = '1.205.0' + context[:gem_version] = '1.206.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-glue/lib/aws-sdk-glue/client_api.rb b/gems/aws-sdk-glue/lib/aws-sdk-glue/client_api.rb index 5921bc0b700..28a49517c7c 100644 --- a/gems/aws-sdk-glue/lib/aws-sdk-glue/client_api.rb +++ b/gems/aws-sdk-glue/lib/aws-sdk-glue/client_api.rb @@ -3801,6 +3801,7 @@ module ClientApi GetCatalogsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken")) GetCatalogsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults")) GetCatalogsRequest.add_member(:recursive, Shapes::ShapeRef.new(shape: Boolean, location_name: "Recursive")) + GetCatalogsRequest.add_member(:include_root, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "IncludeRoot")) GetCatalogsRequest.struct_class = Types::GetCatalogsRequest GetCatalogsResponse.add_member(:catalog_list, Shapes::ShapeRef.new(shape: CatalogList, required: true, location_name: "CatalogList")) diff --git a/gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb b/gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb index 096366e71cf..7ddd3fc7738 100644 --- a/gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb +++ b/gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb @@ -11111,9 +11111,21 @@ class GetCatalogResponse < Struct.new( # @return [Integer] # # @!attribute [rw] recursive - # When specified as true, iterates through the account and returns all - # catalog resources (including top-level resources and child - # resources) + # Whether to list all catalogs across the catalog hierarchy, starting + # from the `ParentCatalogId`. Defaults to `false` . When `true`, all + # catalog objects in the `ParentCatalogID` hierarchy are enumerated in + # the response. + # @return [Boolean] + # + # @!attribute [rw] include_root + # Whether to list the default catalog in the account and region in the + # response. Defaults to `false`. When `true` and `ParentCatalogId = + # NULL | Amazon Web Services Account ID`, all catalogs and the default + # catalog are enumerated in the response. + # + # When the `ParentCatalogId` is not equal to null, and this attribute + # is passed as `false` or `true`, an `InvalidInputException` is + # thrown. # @return [Boolean] # # @see http://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetCatalogsRequest AWS API Documentation @@ -11122,7 +11134,8 @@ class GetCatalogsRequest < Struct.new( :parent_catalog_id, :next_token, :max_results, - :recursive) + :recursive, + :include_root) SENSITIVE = [] include Aws::Structure end @@ -16616,11 +16629,16 @@ class JobNodeDetails < Struct.new( # `TIMEOUT` status. This value overrides the timeout value set in the # parent job. # - # Streaming jobs must have timeout values less than 7 days or 10080 - # minutes. When the value is left blank, the job will be restarted - # after 7 days based if you have not setup a maintenance window. If - # you have setup maintenance window, it will be restarted during the - # maintenance window after 7 days. + # Jobs must have timeout values less than 7 days or 10080 minutes. + # Otherwise, the jobs will throw an exception. + # + # When the value is left blank, the timeout is defaulted to 2880 + # minutes. + # + # Any existing Glue jobs that had a timeout value greater than 7 days + # will be defaulted to 7 days. For instance if you have specified a + # timeout of 20 days for a batch job, it will be stopped on the 7th + # day. # @return [Integer] # # @!attribute [rw] max_capacity @@ -23977,11 +23995,16 @@ class StartImportLabelsTaskRunResponse < Struct.new( # `TIMEOUT` status. This value overrides the timeout value set in the # parent job. # - # Streaming jobs must have timeout values less than 7 days or 10080 - # minutes. When the value is left blank, the job will be restarted - # after 7 days based if you have not setup a maintenance window. If - # you have setup maintenance window, it will be restarted during the - # maintenance window after 7 days. + # Jobs must have timeout values less than 7 days or 10080 minutes. + # Otherwise, the jobs will throw an exception. + # + # When the value is left blank, the timeout is defaulted to 2880 + # minutes. + # + # Any existing Glue jobs that had a timeout value greater than 7 days + # will be defaulted to 7 days. For instance if you have specified a + # timeout of 20 days for a batch job, it will be stopped on the 7th + # day. # @return [Integer] # # @!attribute [rw] max_capacity diff --git a/gems/aws-sdk-glue/sig/client.rbs b/gems/aws-sdk-glue/sig/client.rbs index 0a0ef99f3b4..ad9ee4395b2 100644 --- a/gems/aws-sdk-glue/sig/client.rbs +++ b/gems/aws-sdk-glue/sig/client.rbs @@ -3165,7 +3165,8 @@ module Aws ?parent_catalog_id: ::String, ?next_token: ::String, ?max_results: ::Integer, - ?recursive: bool + ?recursive: bool, + ?include_root: bool ) -> _GetCatalogsResponseSuccess | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCatalogsResponseSuccess diff --git a/gems/aws-sdk-glue/sig/types.rbs b/gems/aws-sdk-glue/sig/types.rbs index ed47899be35..5c3c8b82f07 100644 --- a/gems/aws-sdk-glue/sig/types.rbs +++ b/gems/aws-sdk-glue/sig/types.rbs @@ -2705,6 +2705,7 @@ module Aws::Glue attr_accessor next_token: ::String attr_accessor max_results: ::Integer attr_accessor recursive: bool + attr_accessor include_root: bool SENSITIVE: [] end