From 740860cb81da356a3bb77cccaa6e9c34743d593c Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Fri, 10 May 2024 18:45:08 +0000 Subject: [PATCH] Release v1.53.0 (2024-05-10) === ### Service Client Updates * `service/discovery`: Updates service API * add v2 smoke tests and smithy smokeTests trait for SDK testing * `service/greengrassv2`: Updates service API and documentation * `service/sagemaker`: Updates service API * Introduced support for G6 instance types on Sagemaker Notebook Instances and on SageMaker Studio for JupyterLab and CodeEditor applications. * `service/sso-oidc`: Updates service API, documentation, and examples ### SDK Features * `service/honeycode`: Remove Honeycode * This change removes the Honeycode service, which has been deprecated. --- CHANGELOG.md | 15 + CHANGELOG_PENDING.md | 2 - aws/endpoints/defaults.go | 3 + aws/version.go | 2 +- models/apis/discovery/2015-11-01/api-2.json | 1 + models/apis/discovery/2015-11-01/smoke-2.json | 16 + .../apis/greengrassv2/2020-11-30/api-2.json | 26 + .../apis/greengrassv2/2020-11-30/docs-2.json | 18 +- .../2020-11-30/endpoint-rule-set-1.json | 508 ++++++++---------- .../2020-11-30/endpoint-tests-1.json | 148 ++--- models/apis/sagemaker/2017-07-24/api-2.json | 18 +- models/apis/sso-oidc/2019-06-10/api-2.json | 39 +- models/apis/sso-oidc/2019-06-10/docs-2.json | 43 +- .../apis/sso-oidc/2019-06-10/examples-1.json | 9 + models/endpoints/endpoints.json | 1 + service/greengrassv2/api.go | 83 ++- service/sagemaker/api.go | 64 +++ service/ssooidc/api.go | 162 +++++- service/ssooidc/errors.go | 8 + service/ssooidc/examples_test.go | 17 +- 20 files changed, 806 insertions(+), 377 deletions(-) create mode 100644 models/apis/discovery/2015-11-01/smoke-2.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b1fb89a625..63ad040518f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +Release v1.53.0 (2024-05-10) +=== + +### Service Client Updates +* `service/discovery`: Updates service API + * add v2 smoke tests and smithy smokeTests trait for SDK testing +* `service/greengrassv2`: Updates service API and documentation +* `service/sagemaker`: Updates service API + * Introduced support for G6 instance types on Sagemaker Notebook Instances and on SageMaker Studio for JupyterLab and CodeEditor applications. +* `service/sso-oidc`: Updates service API, documentation, and examples + +### SDK Features +* `service/honeycode`: Remove Honeycode + * This change removes the Honeycode service, which has been deprecated. + Release v1.52.6 (2024-05-09) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 0712f46a2e5..8a1927a39ca 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,6 +1,4 @@ ### SDK Features -* `service/honeycode`: Remove Honeycode - * This change removes the Honeycode service, which has been deprecated. ### SDK Enhancements diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 0b94fe7fe45..356c17b0a59 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -19334,6 +19334,9 @@ var awsPartition = partition{ endpointKey{ Region: "ca-central-1", }: endpoint{}, + endpointKey{ + Region: "ca-west-1", + }: endpoint{}, endpointKey{ Region: "eu-central-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 47a7a4b7ca2..7cbd0a0b4d3 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.52.6" +const SDKVersion = "1.53.0" diff --git a/models/apis/discovery/2015-11-01/api-2.json b/models/apis/discovery/2015-11-01/api-2.json index f831c57921f..a3d68873726 100644 --- a/models/apis/discovery/2015-11-01/api-2.json +++ b/models/apis/discovery/2015-11-01/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"discovery", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceFullName":"AWS Application Discovery Service", "serviceId":"Application Discovery Service", "signatureVersion":"v4", diff --git a/models/apis/discovery/2015-11-01/smoke-2.json b/models/apis/discovery/2015-11-01/smoke-2.json new file mode 100644 index 00000000000..eb0d8b7772f --- /dev/null +++ b/models/apis/discovery/2015-11-01/smoke-2.json @@ -0,0 +1,16 @@ +{ + "version": 2, + "testCases": [ + { + "id": "DescribeAgentsSuccess", + "operationName": "DescribeAgents", + "input": {}, + "expectation": { + "success": {} + }, + "config": { + "region": "us-west-2" + } + } + ] +} diff --git a/models/apis/greengrassv2/2020-11-30/api-2.json b/models/apis/greengrassv2/2020-11-30/api-2.json index 0c4157f79ee..18e08485534 100644 --- a/models/apis/greengrassv2/2020-11-30/api-2.json +++ b/models/apis/greengrassv2/2020-11-30/api-2.json @@ -4,6 +4,7 @@ "apiVersion":"2020-11-30", "endpointPrefix":"greengrass", "protocol":"rest-json", + "protocols":["rest-json"], "serviceAbbreviation":"AWS GreengrassV2", "serviceFullName":"AWS IoT Greengrass V2", "serviceId":"GreengrassV2", @@ -687,6 +688,7 @@ }, "ComponentDeploymentSpecification":{ "type":"structure", + "required":["componentVersion"], "members":{ "componentVersion":{"shape":"ComponentVersionString"}, "configurationUpdate":{"shape":"ComponentConfigurationUpdate"}, @@ -1212,6 +1214,16 @@ "shape":"NonEmptyString", "location":"uri", "locationName":"artifactName" + }, + "s3EndpointType":{ + "shape":"S3EndpointType", + "location":"querystring", + "locationName":"s3EndpointType" + }, + "iotEndpointType":{ + "shape":"IotEndpointType", + "location":"header", + "locationName":"x-amz-iot-endpoint-type" } } }, @@ -1506,6 +1518,13 @@ "max":128, "min":1 }, + "IotEndpointType":{ + "type":"string", + "enum":[ + "fips", + "standard" + ] + }, "IsLatestForTarget":{"type":"boolean"}, "IsRoot":{"type":"boolean"}, "LambdaContainerParams":{ @@ -2004,6 +2023,13 @@ "exception":true }, "RetryAfterSeconds":{"type":"integer"}, + "S3EndpointType":{ + "type":"string", + "enum":[ + "REGIONAL", + "GLOBAL" + ] + }, "ServiceQuotaExceededException":{ "type":"structure", "required":[ diff --git a/models/apis/greengrassv2/2020-11-30/docs-2.json b/models/apis/greengrassv2/2020-11-30/docs-2.json index f1b20aa1ad0..188f42d2496 100644 --- a/models/apis/greengrassv2/2020-11-30/docs-2.json +++ b/models/apis/greengrassv2/2020-11-30/docs-2.json @@ -6,7 +6,7 @@ "BatchAssociateClientDeviceWithCoreDevice": "

Associates a list of client devices with a core device. Use this API operation to specify which client devices can discover a core device through cloud discovery. With cloud discovery, client devices connect to IoT Greengrass to retrieve associated core devices' connectivity information and certificates. For more information, see Configure cloud discovery in the IoT Greengrass V2 Developer Guide.

Client devices are local IoT devices that connect to and communicate with an IoT Greengrass core device over MQTT. You can connect client devices to a core device to sync MQTT messages and data to Amazon Web Services IoT Core and interact with client devices in Greengrass components. For more information, see Interact with local IoT devices in the IoT Greengrass V2 Developer Guide.

", "BatchDisassociateClientDeviceFromCoreDevice": "

Disassociates a list of client devices from a core device. After you disassociate a client device from a core device, the client device won't be able to use cloud discovery to retrieve the core device's connectivity information and certificates.

", "CancelDeployment": "

Cancels a deployment. This operation cancels the deployment for devices that haven't yet received it. If a device already received the deployment, this operation doesn't change anything for that device.

", - "CreateComponentVersion": "

Creates a component. Components are software that run on Greengrass core devices. After you develop and test a component on your core device, you can use this operation to upload your component to IoT Greengrass. Then, you can deploy the component to other core devices.

You can use this operation to do the following:

", + "CreateComponentVersion": "

Creates a component. Components are software that run on Greengrass core devices. After you develop and test a component on your core device, you can use this operation to upload your component to IoT Greengrass. Then, you can deploy the component to other core devices.

You can use this operation to do the following:

", "CreateDeployment": "

Creates a continuous deployment for a target, which is a Greengrass core device or group of core devices. When you add a new core device to a group of core devices that has a deployment, IoT Greengrass deploys that group's deployment to the new device.

You can define one deployment for each target. When you create a new deployment for a target that has an existing deployment, you replace the previous deployment. IoT Greengrass applies the new deployment to the target devices.

Every deployment has a revision number that indicates how many deployment revisions you define for a target. Use this operation to create a new revision of an existing deployment.

For more information, see the Create deployments in the IoT Greengrass V2 Developer Guide.

", "DeleteComponent": "

Deletes a version of a component from IoT Greengrass.

This operation deletes the component's recipe and artifacts. As a result, deployments that refer to this component version will fail. If you have deployments that use this component version, you can remove the component from the deployment or update the deployment to use a valid version.

", "DeleteCoreDevice": "

Deletes a Greengrass core device, which is an IoT thing. This operation removes the core device from the list of core devices. This operation doesn't delete the IoT thing. For more information about how to delete the IoT thing, see DeleteThing in the IoT API Reference.

", @@ -400,7 +400,7 @@ "ListComponentVersionsRequest$maxResults": "

The maximum number of results to be returned per paginated request.

", "ListComponentsRequest$maxResults": "

The maximum number of results to be returned per paginated request.

", "ListCoreDevicesRequest$maxResults": "

The maximum number of results to be returned per paginated request.

", - "ListDeploymentsRequest$maxResults": "

The maximum number of results to be returned per paginated request.

", + "ListDeploymentsRequest$maxResults": "

The maximum number of results to be returned per paginated request.

Default: 50

", "ListEffectiveDeploymentsRequest$maxResults": "

The maximum number of results to be returned per paginated request.

", "ListInstalledComponentsRequest$maxResults": "

The maximum number of results to be returned per paginated request.

" } @@ -852,6 +852,12 @@ "ListClientDevicesAssociatedWithCoreDeviceRequest$coreDeviceThingName": "

The name of the core device. This is also the name of the IoT thing.

" } }, + "IotEndpointType": { + "base": null, + "refs": { + "GetComponentVersionArtifactRequest$iotEndpointType": "

Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint. Specify fips if you want the returned Amazon S3 pre-signed URL to point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default is standard.

" + } + }, "IsLatestForTarget": { "base": null, "refs": { @@ -1112,7 +1118,7 @@ "GetDeploymentRequest$deploymentId": "

The ID of the deployment.

", "GetDeploymentResponse$revisionId": "

The revision number of the deployment.

", "GetDeploymentResponse$deploymentId": "

The ID of the deployment.

", - "InstalledComponent$lastInstallationSource": "

The most recent deployment source that brought the component to the Greengrass core device. For a thing group deployment or thing deployment, the source will be the The ID of the deployment. and for local deployments it will be LOCAL.

Any deployment will attempt to reinstall currently broken components on the device, which will update the last installation source.

", + "InstalledComponent$lastInstallationSource": "

The most recent deployment source that brought the component to the Greengrass core device. For a thing group deployment or thing deployment, the source will be the ID of the last deployment that contained the component. For local deployments it will be LOCAL.

Any deployment will attempt to reinstall currently broken components on the device, which will update the last installation source.

", "LambdaEnvironmentVariables$key": null, "LambdaFunctionRecipeSource$lambdaArn": "

The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like $LATEST.

", "PlatformAttributesMap$key": null, @@ -1229,6 +1235,12 @@ "ThrottlingException$retryAfterSeconds": "

The amount of time to wait before you retry the request.

" } }, + "S3EndpointType": { + "base": null, + "refs": { + "GetComponentVersionArtifactRequest$s3EndpointType": "

Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.

All Amazon Web Services Regions except US East (N. Virginia) use REGIONAL in all cases. In the US East (N. Virginia) Region the default is GLOBAL, but you can change it to REGIONAL with this parameter.

" + } + }, "ServiceQuotaExceededException": { "base": "

Your request exceeds a service quota. For example, you might have the maximum number of components that you can create.

", "refs": { diff --git a/models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json b/models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json index 99169a08f9d..122fe3cb942 100644 --- a/models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json +++ b/models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,309 +57,166 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "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" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsFIPS" ] } ] }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "us-gov-east-1" - ] - } - ], - "endpoint": { - "url": "https://greengrass.us-gov-east-1.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "Region" - }, - "us-gov-west-1" - ] - } - ], - "endpoint": { - "url": "https://greengrass.us-gov-west-1.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "ref": "PartitionResult" }, - { - "conditions": [], - "endpoint": { - "url": "https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "supportsDualStack" ] } ] - }, + } + ], + "rules": [ { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsFIPS" ] - } + }, + true ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], - "type": "tree", + ], "rules": [ { "conditions": [ @@ -370,21 +226,13 @@ { "ref": "Region" }, - "dataplane-us-gov-east-1" + "us-gov-east-1" ] } ], "endpoint": { - "url": "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "greengrass", - "signingRegion": "us-gov-east-1" - } - ] - }, + "url": "https://greengrass.us-gov-east-1.amazonaws.com", + "properties": {}, "headers": {} }, "type": "endpoint" @@ -397,21 +245,13 @@ { "ref": "Region" }, - "dataplane-us-gov-west-1" + "us-gov-west-1" ] } ], "endpoint": { - "url": "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "greengrass", - "signingRegion": "us-gov-west-1" - } - ] - }, + "url": "https://greengrass.us-gov-west-1.amazonaws.com", + "properties": {}, "headers": {} }, "type": "endpoint" @@ -419,24 +259,148 @@ { "conditions": [], "endpoint": { - "url": "https://greengrass.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true ] } - ] + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "dataplane-us-gov-east-1" + ] + } + ], + "endpoint": { + "url": "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "greengrass", + "signingRegion": "us-gov-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "dataplane-us-gov-west-1" + ] + } + ], + "endpoint": { + "url": "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "greengrass", + "signingRegion": "us-gov-west-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://greengrass.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json b/models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json index 7a7a0020ca9..655e135e050 100644 --- a/models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json +++ b/models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json @@ -9,8 +9,8 @@ }, "params": { "Region": "ap-northeast-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -22,8 +22,8 @@ }, "params": { "Region": "ap-northeast-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -35,8 +35,8 @@ }, "params": { "Region": "ap-south-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -48,8 +48,8 @@ }, "params": { "Region": "ap-southeast-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -61,8 +61,8 @@ }, "params": { "Region": "ap-southeast-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -74,8 +74,8 @@ }, "params": { "Region": "ca-central-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -87,8 +87,8 @@ }, "params": { "Region": "eu-central-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -100,8 +100,8 @@ }, "params": { "Region": "eu-west-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -113,8 +113,8 @@ }, "params": { "Region": "eu-west-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -126,8 +126,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -139,8 +139,8 @@ }, "params": { "Region": "us-east-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -152,8 +152,8 @@ }, "params": { "Region": "us-west-2", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -165,8 +165,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -178,8 +178,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -191,8 +191,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -204,8 +204,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -217,8 +217,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -230,8 +230,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -243,8 +243,8 @@ }, "params": { "Region": "cn-north-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -265,8 +265,8 @@ }, "params": { "Region": "dataplane-us-gov-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -287,8 +287,8 @@ }, "params": { "Region": "dataplane-us-gov-west-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -300,8 +300,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -313,8 +313,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -326,8 +326,8 @@ }, "params": { "Region": "us-gov-west-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -339,8 +339,8 @@ }, "params": { "Region": "us-gov-west-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -352,8 +352,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -365,8 +365,8 @@ }, "params": { "Region": "us-gov-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -376,8 +376,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -389,8 +389,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -400,8 +400,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -413,8 +413,8 @@ }, "params": { "Region": "us-iso-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -424,8 +424,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": true, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": true } }, { @@ -437,8 +437,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": false, - "UseFIPS": true + "UseFIPS": true, + "UseDualStack": false } }, { @@ -448,8 +448,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": true, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": true } }, { @@ -461,8 +461,8 @@ }, "params": { "Region": "us-isob-east-1", - "UseDualStack": false, - "UseFIPS": false + "UseFIPS": false, + "UseDualStack": false } }, { @@ -474,8 +474,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -487,8 +487,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -499,8 +499,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -511,8 +511,8 @@ }, "params": { "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Endpoint": "https://example.com" } }, diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index e7b1ec696bb..d2b2c0714e1 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -4024,6 +4024,14 @@ "ml.g5.12xlarge", "ml.g5.24xlarge", "ml.g5.48xlarge", + "ml.g6.xlarge", + "ml.g6.2xlarge", + "ml.g6.4xlarge", + "ml.g6.8xlarge", + "ml.g6.12xlarge", + "ml.g6.16xlarge", + "ml.g6.24xlarge", + "ml.g6.48xlarge", "ml.geospatial.interactive", "ml.p4d.24xlarge", "ml.p4de.24xlarge", @@ -13603,7 +13611,15 @@ "ml.r6id.12xlarge", "ml.r6id.16xlarge", "ml.r6id.24xlarge", - "ml.r6id.32xlarge" + "ml.r6id.32xlarge", + "ml.g6.xlarge", + "ml.g6.2xlarge", + "ml.g6.4xlarge", + "ml.g6.8xlarge", + "ml.g6.12xlarge", + "ml.g6.16xlarge", + "ml.g6.24xlarge", + "ml.g6.48xlarge" ] }, "Integer":{"type":"integer"}, diff --git a/models/apis/sso-oidc/2019-06-10/api-2.json b/models/apis/sso-oidc/2019-06-10/api-2.json index 11028bb5581..c73152c4a0d 100644 --- a/models/apis/sso-oidc/2019-06-10/api-2.json +++ b/models/apis/sso-oidc/2019-06-10/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"oidc", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceAbbreviation":"SSO OIDC", "serviceFullName":"AWS SSO OIDC", "serviceId":"SSO OIDC", @@ -71,7 +72,9 @@ {"shape":"InvalidRequestException"}, {"shape":"InvalidScopeException"}, {"shape":"InvalidClientMetadataException"}, - {"shape":"InternalServerException"} + {"shape":"InternalServerException"}, + {"shape":"InvalidRedirectUriException"}, + {"shape":"UnsupportedGrantTypeException"} ], "authtype":"none" }, @@ -107,6 +110,7 @@ "type":"string", "sensitive":true }, + "ArnType":{"type":"string"}, "Assertion":{ "type":"string", "sensitive":true @@ -128,6 +132,10 @@ "sensitive":true }, "ClientType":{"type":"string"}, + "CodeVerifier":{ + "type":"string", + "sensitive":true + }, "CreateTokenRequest":{ "type":"structure", "required":[ @@ -143,7 +151,8 @@ "code":{"shape":"AuthCode"}, "refreshToken":{"shape":"RefreshToken"}, "scope":{"shape":"Scopes"}, - "redirectUri":{"shape":"URI"} + "redirectUri":{"shape":"URI"}, + "codeVerifier":{"shape":"CodeVerifier"} } }, "CreateTokenResponse":{ @@ -172,7 +181,8 @@ "redirectUri":{"shape":"URI"}, "subjectToken":{"shape":"SubjectToken"}, "subjectTokenType":{"shape":"TokenTypeURI"}, - "requestedTokenType":{"shape":"TokenTypeURI"} + "requestedTokenType":{"shape":"TokenTypeURI"}, + "codeVerifier":{"shape":"CodeVerifier"} } }, "CreateTokenWithIAMResponse":{ @@ -201,6 +211,10 @@ "exception":true }, "GrantType":{"type":"string"}, + "GrantTypes":{ + "type":"list", + "member":{"shape":"GrantType"} + }, "IdToken":{ "type":"string", "sensitive":true @@ -243,6 +257,15 @@ "error":{"httpStatusCode":400}, "exception":true }, + "InvalidRedirectUriException":{ + "type":"structure", + "members":{ + "error":{"shape":"Error"}, + "error_description":{"shape":"ErrorDescription"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "InvalidRequestException":{ "type":"structure", "members":{ @@ -274,6 +297,10 @@ }, "Location":{"type":"string"}, "LongTimeStampType":{"type":"long"}, + "RedirectUris":{ + "type":"list", + "member":{"shape":"URI"} + }, "RefreshToken":{ "type":"string", "sensitive":true @@ -288,7 +315,11 @@ "members":{ "clientName":{"shape":"ClientName"}, "clientType":{"shape":"ClientType"}, - "scopes":{"shape":"Scopes"} + "scopes":{"shape":"Scopes"}, + "redirectUris":{"shape":"RedirectUris"}, + "grantTypes":{"shape":"GrantTypes"}, + "issuerUrl":{"shape":"URI"}, + "entitledApplicationArn":{"shape":"ArnType"} } }, "RegisterClientResponse":{ diff --git a/models/apis/sso-oidc/2019-06-10/docs-2.json b/models/apis/sso-oidc/2019-06-10/docs-2.json index 32f63a79b01..8c864c6dbe9 100644 --- a/models/apis/sso-oidc/2019-06-10/docs-2.json +++ b/models/apis/sso-oidc/2019-06-10/docs-2.json @@ -3,7 +3,7 @@ "service": "

IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI or a native application) to register with IAM Identity Center. The service also enables the client to fetch the user’s access token upon successful authentication and authorization with IAM Identity Center.

IAM Identity Center uses the sso and identitystore API namespaces.

Considerations for Using This Guide

Before you begin using this guide, we recommend that you first review the following important information about how the IAM Identity Center OIDC service works.

For general information about IAM Identity Center, see What is IAM Identity Center? in the IAM Identity Center User Guide.

", "operations": { "CreateToken": "

Creates and returns access and refresh tokens for clients that are authenticated using client secrets. The access token can be used to fetch short-term credentials for the assigned AWS accounts or to access application APIs using bearer authentication.

", - "CreateTokenWithIAM": "

Creates and returns access and refresh tokens for clients and applications that are authenticated using IAM entities. The access token can be used to fetch short-term credentials for the assigned AWS accounts or to access application APIs using bearer authentication.

", + "CreateTokenWithIAM": "

Creates and returns access and refresh tokens for clients and applications that are authenticated using IAM entities. The access token can be used to fetch short-term credentials for the assigned Amazon Web Services accounts or to access application APIs using bearer authentication.

", "RegisterClient": "

Registers a client with IAM Identity Center. This allows clients to initiate device authorization. The output should be persisted for reuse through many authentication requests.

", "StartDeviceAuthorization": "

Initiates device authorization by requesting a pair of verification codes from the authorization service.

" }, @@ -16,8 +16,14 @@ "AccessToken": { "base": null, "refs": { - "CreateTokenResponse$accessToken": "

A bearer token to access AWS accounts and applications assigned to a user.

", - "CreateTokenWithIAMResponse$accessToken": "

A bearer token to access AWS accounts and applications assigned to a user.

" + "CreateTokenResponse$accessToken": "

A bearer token to access Amazon Web Services accounts and applications assigned to a user.

", + "CreateTokenWithIAMResponse$accessToken": "

A bearer token to access Amazon Web Services accounts and applications assigned to a user.

" + } + }, + "ArnType": { + "base": null, + "refs": { + "RegisterClientRequest$entitledApplicationArn": "

This IAM Identity Center application ARN is used to define administrator-managed configuration for public client access to resources. At authorization, the scopes, grants, and redirect URI available to this client will be restricted by this application resource.

" } }, "Assertion": { @@ -67,6 +73,13 @@ "RegisterClientRequest$clientType": "

The type of client. The service supports only public as a client type. Anything other than public will be rejected by the service.

" } }, + "CodeVerifier": { + "base": null, + "refs": { + "CreateTokenRequest$codeVerifier": "

Used only when calling this API for the Authorization Code grant type. This value is generated by the client and presented to validate the original code challenge value the client passed at authorization time.

", + "CreateTokenWithIAMRequest$codeVerifier": "

Used only when calling this API for the Authorization Code grant type. This value is generated by the client and presented to validate the original code challenge value the client passed at authorization time.

" + } + }, "CreateTokenRequest": { "base": null, "refs": { @@ -104,6 +117,7 @@ "InvalidClientException$error": "

Single error code. For this exception the value will be invalid_client.

", "InvalidClientMetadataException$error": "

Single error code. For this exception the value will be invalid_client_metadata.

", "InvalidGrantException$error": "

Single error code. For this exception the value will be invalid_grant.

", + "InvalidRedirectUriException$error": "

Single error code. For this exception the value will be invalid_redirect_uri.

", "InvalidRequestException$error": "

Single error code. For this exception the value will be invalid_request.

", "InvalidRequestRegionException$error": "

Single error code. For this exception the value will be invalid_request.

", "InvalidScopeException$error": "

Single error code. For this exception the value will be invalid_scope.

", @@ -122,6 +136,7 @@ "InvalidClientException$error_description": "

Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.

", "InvalidClientMetadataException$error_description": "

Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.

", "InvalidGrantException$error_description": "

Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.

", + "InvalidRedirectUriException$error_description": "

Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.

", "InvalidRequestException$error_description": "

Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.

", "InvalidRequestRegionException$error_description": "

Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.

", "InvalidScopeException$error_description": "

Human-readable text providing additional information, used to assist the client developer in understanding the error that occurred.

", @@ -147,7 +162,14 @@ "base": null, "refs": { "CreateTokenRequest$grantType": "

Supports the following OAuth grant types: Device Code and Refresh Token. Specify either of the following values, depending on the grant type that you want:

* Device Code - urn:ietf:params:oauth:grant-type:device_code

* Refresh Token - refresh_token

For information about how to obtain the device code, see the StartDeviceAuthorization topic.

", - "CreateTokenWithIAMRequest$grantType": "

Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange. Specify one of the following values, depending on the grant type that you want:

* Authorization Code - authorization_code

* Refresh Token - refresh_token

* JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer

* Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange

" + "CreateTokenWithIAMRequest$grantType": "

Supports the following OAuth grant types: Authorization Code, Refresh Token, JWT Bearer, and Token Exchange. Specify one of the following values, depending on the grant type that you want:

* Authorization Code - authorization_code

* Refresh Token - refresh_token

* JWT Bearer - urn:ietf:params:oauth:grant-type:jwt-bearer

* Token Exchange - urn:ietf:params:oauth:grant-type:token-exchange

", + "GrantTypes$member": null + } + }, + "GrantTypes": { + "base": null, + "refs": { + "RegisterClientRequest$grantTypes": "

The list of OAuth 2.0 grant types that are defined by the client. This list is used to restrict the token granting flows available to the client.

" } }, "IdToken": { @@ -183,6 +205,11 @@ "refs": { } }, + "InvalidRedirectUriException": { + "base": "

Indicates that one or more redirect URI in the request is not supported for this operation.

", + "refs": { + } + }, "InvalidRequestException": { "base": "

Indicates that something is wrong with the input to the request. For example, a required parameter might be missing or out of range.

", "refs": { @@ -211,6 +238,12 @@ "RegisterClientResponse$clientSecretExpiresAt": "

Indicates the time at which the clientId and clientSecret will become invalid.

" } }, + "RedirectUris": { + "base": null, + "refs": { + "RegisterClientRequest$redirectUris": "

The list of redirect URI that are defined by the client. At completion of authorization, this list is used to restrict what locations the user agent can be redirected back to.

" + } + }, "RefreshToken": { "base": null, "refs": { @@ -292,6 +325,8 @@ "refs": { "CreateTokenRequest$redirectUri": "

Used only when calling this API for the Authorization Code grant type. This value specifies the location of the client or application that has registered to receive the authorization code.

", "CreateTokenWithIAMRequest$redirectUri": "

Used only when calling this API for the Authorization Code grant type. This value specifies the location of the client or application that has registered to receive the authorization code.

", + "RedirectUris$member": null, + "RegisterClientRequest$issuerUrl": "

The IAM Identity Center Issuer URL associated with an instance of IAM Identity Center. This value is needed for user access to resources through the client.

", "RegisterClientResponse$authorizationEndpoint": "

An endpoint that the client can use to request authorization.

", "RegisterClientResponse$tokenEndpoint": "

An endpoint that the client can use to create tokens.

", "StartDeviceAuthorizationRequest$startUrl": "

The URL for the Amazon Web Services access portal. For more information, see Using the Amazon Web Services access portal in the IAM Identity Center User Guide.

", diff --git a/models/apis/sso-oidc/2019-06-10/examples-1.json b/models/apis/sso-oidc/2019-06-10/examples-1.json index d9cc3d8ca00..613bfb05960 100644 --- a/models/apis/sso-oidc/2019-06-10/examples-1.json +++ b/models/apis/sso-oidc/2019-06-10/examples-1.json @@ -181,6 +181,15 @@ "input": { "clientName": "My IDE Plugin", "clientType": "public", + "entitledApplicationArn": "arn:aws:sso::ACCOUNTID:application/ssoins-1111111111111111/apl-1111111111111111", + "grantTypes": [ + "authorization_code", + "refresh_token" + ], + "issuerUrl": "https://identitycenter.amazonaws.com/ssoins-1111111111111111", + "redirectUris": [ + "127.0.0.1:PORT/oauth/callback" + ], "scopes": [ "sso:account:access", "codewhisperer:completions" diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 3d786039e43..4f5b138f527 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -11327,6 +11327,7 @@ "ap-southeast-3" : { }, "ap-southeast-4" : { }, "ca-central-1" : { }, + "ca-west-1" : { }, "eu-central-1" : { }, "eu-central-2" : { }, "eu-north-1" : { }, diff --git a/service/greengrassv2/api.go b/service/greengrassv2/api.go index c73d0a53855..65c7e2d03df 100644 --- a/service/greengrassv2/api.go +++ b/service/greengrassv2/api.go @@ -468,13 +468,12 @@ func (c *GreengrassV2) CreateComponentVersionRequest(input *CreateComponentVersi // function that runs on IoT Greengrass. This creates a recipe and artifacts // from the Lambda function's deployment package. You can use this operation // to migrate Lambda functions from IoT Greengrass V1 to IoT Greengrass V2. -// This function only accepts Lambda functions that use the following runtimes: -// Python 2.7 – python2.7 Python 3.7 – python3.7 Python 3.8 – python3.8 -// Python 3.9 – python3.9 Java 8 – java8 Java 11 – java11 Node.js 10 -// – nodejs10.x Node.js 12 – nodejs12.x Node.js 14 – nodejs14.x To -// create a component from a Lambda function, specify lambdaFunction when -// you call this operation. IoT Greengrass currently supports Lambda functions -// on only Linux core devices. +// This function accepts Lambda functions in all supported versions of Python, +// Node.js, and Java runtimes. IoT Greengrass doesn't apply any additional +// restrictions on deprecated Lambda runtime versions. To create a component +// from a Lambda function, specify lambdaFunction when you call this operation. +// IoT Greengrass currently supports Lambda functions on only Linux core +// devices. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4203,7 +4202,9 @@ type ComponentDeploymentSpecification struct { _ struct{} `type:"structure"` // The version of the component. - ComponentVersion *string `locationName:"componentVersion" min:"1" type:"string"` + // + // ComponentVersion is a required field + ComponentVersion *string `locationName:"componentVersion" min:"1" type:"string" required:"true"` // The configuration updates to deploy for the component. You can define reset // updates and merge updates. A reset updates the keys that you specify to the @@ -4244,6 +4245,9 @@ func (s ComponentDeploymentSpecification) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ComponentDeploymentSpecification) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ComponentDeploymentSpecification"} + if s.ComponentVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ComponentVersion")) + } if s.ComponentVersion != nil && len(*s.ComponentVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("ComponentVersion", 1)) } @@ -6337,6 +6341,19 @@ type GetComponentVersionArtifactInput struct { // // ArtifactName is a required field ArtifactName *string `location:"uri" locationName:"artifactName" min:"1" type:"string" required:"true"` + + // Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint. + // Specify fips if you want the returned Amazon S3 pre-signed URL to point to + // an Amazon S3 FIPS endpoint. If you don't specify a value, the default is + // standard. + IotEndpointType *string `location:"header" locationName:"x-amz-iot-endpoint-type" type:"string" enum:"IotEndpointType"` + + // Specifies the endpoint to use when getting Amazon S3 pre-signed URLs. + // + // All Amazon Web Services Regions except US East (N. Virginia) use REGIONAL + // in all cases. In the US East (N. Virginia) Region the default is GLOBAL, + // but you can change it to REGIONAL with this parameter. + S3EndpointType *string `location:"querystring" locationName:"s3EndpointType" type:"string" enum:"S3EndpointType"` } // String returns the string representation. @@ -6391,6 +6408,18 @@ func (s *GetComponentVersionArtifactInput) SetArtifactName(v string) *GetCompone return s } +// SetIotEndpointType sets the IotEndpointType field's value. +func (s *GetComponentVersionArtifactInput) SetIotEndpointType(v string) *GetComponentVersionArtifactInput { + s.IotEndpointType = &v + return s +} + +// SetS3EndpointType sets the S3EndpointType field's value. +func (s *GetComponentVersionArtifactInput) SetS3EndpointType(v string) *GetComponentVersionArtifactInput { + s.S3EndpointType = &v + return s +} + type GetComponentVersionArtifactOutput struct { _ struct{} `type:"structure"` @@ -6946,8 +6975,8 @@ type InstalledComponent struct { // The most recent deployment source that brought the component to the Greengrass // core device. For a thing group deployment or thing deployment, the source - // will be the The ID of the deployment. and for local deployments it will be - // LOCAL. + // will be the ID of the last deployment that contained the component. For local + // deployments it will be LOCAL. // // Any deployment will attempt to reinstall currently broken components on the // device, which will update the last installation source. @@ -8687,6 +8716,8 @@ type ListDeploymentsInput struct { HistoryFilter *string `location:"querystring" locationName:"historyFilter" type:"string" enum:"DeploymentHistoryFilter"` // The maximum number of results to be returned per paginated request. + // + // Default: 50 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token to be used for the next set of paginated results. @@ -10355,6 +10386,22 @@ func IoTJobExecutionFailureType_Values() []string { } } +const ( + // IotEndpointTypeFips is a IotEndpointType enum value + IotEndpointTypeFips = "fips" + + // IotEndpointTypeStandard is a IotEndpointType enum value + IotEndpointTypeStandard = "standard" +) + +// IotEndpointType_Values returns all elements of the IotEndpointType enum +func IotEndpointType_Values() []string { + return []string{ + IotEndpointTypeFips, + IotEndpointTypeStandard, + } +} + const ( // LambdaEventSourceTypePubSub is a LambdaEventSourceType enum value LambdaEventSourceTypePubSub = "PUB_SUB" @@ -10435,6 +10482,22 @@ func RecipeOutputFormat_Values() []string { } } +const ( + // S3EndpointTypeRegional is a S3EndpointType enum value + S3EndpointTypeRegional = "REGIONAL" + + // S3EndpointTypeGlobal is a S3EndpointType enum value + S3EndpointTypeGlobal = "GLOBAL" +) + +// S3EndpointType_Values returns all elements of the S3EndpointType enum +func S3EndpointType_Values() []string { + return []string{ + S3EndpointTypeRegional, + S3EndpointTypeGlobal, + } +} + const ( // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value ValidationExceptionReasonUnknownOperation = "UNKNOWN_OPERATION" diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index e5715c41894..29afb858fc7 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -126356,6 +126356,30 @@ const ( // AppInstanceTypeMlG548xlarge is a AppInstanceType enum value AppInstanceTypeMlG548xlarge = "ml.g5.48xlarge" + // AppInstanceTypeMlG6Xlarge is a AppInstanceType enum value + AppInstanceTypeMlG6Xlarge = "ml.g6.xlarge" + + // AppInstanceTypeMlG62xlarge is a AppInstanceType enum value + AppInstanceTypeMlG62xlarge = "ml.g6.2xlarge" + + // AppInstanceTypeMlG64xlarge is a AppInstanceType enum value + AppInstanceTypeMlG64xlarge = "ml.g6.4xlarge" + + // AppInstanceTypeMlG68xlarge is a AppInstanceType enum value + AppInstanceTypeMlG68xlarge = "ml.g6.8xlarge" + + // AppInstanceTypeMlG612xlarge is a AppInstanceType enum value + AppInstanceTypeMlG612xlarge = "ml.g6.12xlarge" + + // AppInstanceTypeMlG616xlarge is a AppInstanceType enum value + AppInstanceTypeMlG616xlarge = "ml.g6.16xlarge" + + // AppInstanceTypeMlG624xlarge is a AppInstanceType enum value + AppInstanceTypeMlG624xlarge = "ml.g6.24xlarge" + + // AppInstanceTypeMlG648xlarge is a AppInstanceType enum value + AppInstanceTypeMlG648xlarge = "ml.g6.48xlarge" + // AppInstanceTypeMlGeospatialInteractive is a AppInstanceType enum value AppInstanceTypeMlGeospatialInteractive = "ml.geospatial.interactive" @@ -126681,6 +126705,14 @@ func AppInstanceType_Values() []string { AppInstanceTypeMlG512xlarge, AppInstanceTypeMlG524xlarge, AppInstanceTypeMlG548xlarge, + AppInstanceTypeMlG6Xlarge, + AppInstanceTypeMlG62xlarge, + AppInstanceTypeMlG64xlarge, + AppInstanceTypeMlG68xlarge, + AppInstanceTypeMlG612xlarge, + AppInstanceTypeMlG616xlarge, + AppInstanceTypeMlG624xlarge, + AppInstanceTypeMlG648xlarge, AppInstanceTypeMlGeospatialInteractive, AppInstanceTypeMlP4d24xlarge, AppInstanceTypeMlP4de24xlarge, @@ -130143,6 +130175,30 @@ const ( // InstanceTypeMlR6id32xlarge is a InstanceType enum value InstanceTypeMlR6id32xlarge = "ml.r6id.32xlarge" + + // InstanceTypeMlG6Xlarge is a InstanceType enum value + InstanceTypeMlG6Xlarge = "ml.g6.xlarge" + + // InstanceTypeMlG62xlarge is a InstanceType enum value + InstanceTypeMlG62xlarge = "ml.g6.2xlarge" + + // InstanceTypeMlG64xlarge is a InstanceType enum value + InstanceTypeMlG64xlarge = "ml.g6.4xlarge" + + // InstanceTypeMlG68xlarge is a InstanceType enum value + InstanceTypeMlG68xlarge = "ml.g6.8xlarge" + + // InstanceTypeMlG612xlarge is a InstanceType enum value + InstanceTypeMlG612xlarge = "ml.g6.12xlarge" + + // InstanceTypeMlG616xlarge is a InstanceType enum value + InstanceTypeMlG616xlarge = "ml.g6.16xlarge" + + // InstanceTypeMlG624xlarge is a InstanceType enum value + InstanceTypeMlG624xlarge = "ml.g6.24xlarge" + + // InstanceTypeMlG648xlarge is a InstanceType enum value + InstanceTypeMlG648xlarge = "ml.g6.48xlarge" ) // InstanceType_Values returns all elements of the InstanceType enum @@ -130305,6 +130361,14 @@ func InstanceType_Values() []string { InstanceTypeMlR6id16xlarge, InstanceTypeMlR6id24xlarge, InstanceTypeMlR6id32xlarge, + InstanceTypeMlG6Xlarge, + InstanceTypeMlG62xlarge, + InstanceTypeMlG64xlarge, + InstanceTypeMlG68xlarge, + InstanceTypeMlG612xlarge, + InstanceTypeMlG616xlarge, + InstanceTypeMlG624xlarge, + InstanceTypeMlG648xlarge, } } diff --git a/service/ssooidc/api.go b/service/ssooidc/api.go index 04f6c811b63..827bd51942a 100644 --- a/service/ssooidc/api.go +++ b/service/ssooidc/api.go @@ -179,8 +179,8 @@ func (c *SSOOIDC) CreateTokenWithIAMRequest(input *CreateTokenWithIAMInput) (req // // Creates and returns access and refresh tokens for clients and applications // that are authenticated using IAM entities. The access token can be used to -// fetch short-term credentials for the assigned AWS accounts or to access application -// APIs using bearer authentication. +// fetch short-term credentials for the assigned Amazon Web Services accounts +// or to access application APIs using bearer authentication. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -331,6 +331,13 @@ func (c *SSOOIDC) RegisterClientRequest(input *RegisterClientInput) (req *reques // Indicates that an error from the service occurred while trying to process // a request. // +// - InvalidRedirectUriException +// Indicates that one or more redirect URI in the request is not supported for +// this operation. +// +// - UnsupportedGrantTypeException +// Indicates that the grant type in the request is not supported by the service. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClient func (c *SSOOIDC) RegisterClient(input *RegisterClientInput) (*RegisterClientOutput, error) { req, out := c.RegisterClientRequest(input) @@ -619,6 +626,15 @@ type CreateTokenInput struct { // type is currently unsupported for the CreateToken API. Code *string `locationName:"code" type:"string"` + // Used only when calling this API for the Authorization Code grant type. This + // value is generated by the client and presented to validate the original code + // challenge value the client passed at authorization time. + // + // CodeVerifier is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateTokenInput's + // String and GoString methods. + CodeVerifier *string `locationName:"codeVerifier" type:"string" sensitive:"true"` + // Used only when calling this API for the Device Code grant type. This short-term // code is used to identify this authorization request. This comes from the // result of the StartDeviceAuthorization API. @@ -718,6 +734,12 @@ func (s *CreateTokenInput) SetCode(v string) *CreateTokenInput { return s } +// SetCodeVerifier sets the CodeVerifier field's value. +func (s *CreateTokenInput) SetCodeVerifier(v string) *CreateTokenInput { + s.CodeVerifier = &v + return s +} + // SetDeviceCode sets the DeviceCode field's value. func (s *CreateTokenInput) SetDeviceCode(v string) *CreateTokenInput { s.DeviceCode = &v @@ -751,7 +773,8 @@ func (s *CreateTokenInput) SetScope(v []*string) *CreateTokenInput { type CreateTokenOutput struct { _ struct{} `type:"structure"` - // A bearer token to access AWS accounts and applications assigned to a user. + // A bearer token to access Amazon Web Services accounts and applications assigned + // to a user. // // AccessToken is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateTokenOutput's @@ -863,6 +886,15 @@ type CreateTokenWithIAMInput struct { // persisted in the Authorization Code GrantOptions for the application. Code *string `locationName:"code" type:"string"` + // Used only when calling this API for the Authorization Code grant type. This + // value is generated by the client and presented to validate the original code + // challenge value the client passed at authorization time. + // + // CodeVerifier is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateTokenWithIAMInput's + // String and GoString methods. + CodeVerifier *string `locationName:"codeVerifier" type:"string" sensitive:"true"` + // Supports the following OAuth grant types: Authorization Code, Refresh Token, // JWT Bearer, and Token Exchange. Specify one of the following values, depending // on the grant type that you want: @@ -982,6 +1014,12 @@ func (s *CreateTokenWithIAMInput) SetCode(v string) *CreateTokenWithIAMInput { return s } +// SetCodeVerifier sets the CodeVerifier field's value. +func (s *CreateTokenWithIAMInput) SetCodeVerifier(v string) *CreateTokenWithIAMInput { + s.CodeVerifier = &v + return s +} + // SetGrantType sets the GrantType field's value. func (s *CreateTokenWithIAMInput) SetGrantType(v string) *CreateTokenWithIAMInput { s.GrantType = &v @@ -1027,7 +1065,8 @@ func (s *CreateTokenWithIAMInput) SetSubjectTokenType(v string) *CreateTokenWith type CreateTokenWithIAMOutput struct { _ struct{} `type:"structure"` - // A bearer token to access AWS accounts and applications assigned to a user. + // A bearer token to access Amazon Web Services accounts and applications assigned + // to a user. // // AccessToken is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateTokenWithIAMOutput's @@ -1495,6 +1534,78 @@ func (s *InvalidGrantException) RequestID() string { return s.RespMetadata.RequestID } +// Indicates that one or more redirect URI in the request is not supported for +// this operation. +type InvalidRedirectUriException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Single error code. For this exception the value will be invalid_redirect_uri. + Error_ *string `locationName:"error" type:"string"` + + // Human-readable text providing additional information, used to assist the + // client developer in understanding the error that occurred. + Error_description *string `locationName:"error_description" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidRedirectUriException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidRedirectUriException) GoString() string { + return s.String() +} + +func newErrorInvalidRedirectUriException(v protocol.ResponseMetadata) error { + return &InvalidRedirectUriException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidRedirectUriException) Code() string { + return "InvalidRedirectUriException" +} + +// Message returns the exception's message. +func (s *InvalidRedirectUriException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidRedirectUriException) OrigErr() error { + return nil +} + +func (s *InvalidRedirectUriException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidRedirectUriException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidRedirectUriException) RequestID() string { + return s.RespMetadata.RequestID +} + // Indicates that something is wrong with the input to the request. For example, // a required parameter might be missing or out of range. type InvalidRequestException struct { @@ -1731,6 +1842,25 @@ type RegisterClientInput struct { // ClientType is a required field ClientType *string `locationName:"clientType" type:"string" required:"true"` + // This IAM Identity Center application ARN is used to define administrator-managed + // configuration for public client access to resources. At authorization, the + // scopes, grants, and redirect URI available to this client will be restricted + // by this application resource. + EntitledApplicationArn *string `locationName:"entitledApplicationArn" type:"string"` + + // The list of OAuth 2.0 grant types that are defined by the client. This list + // is used to restrict the token granting flows available to the client. + GrantTypes []*string `locationName:"grantTypes" type:"list"` + + // The IAM Identity Center Issuer URL associated with an instance of IAM Identity + // Center. This value is needed for user access to resources through the client. + IssuerUrl *string `locationName:"issuerUrl" type:"string"` + + // The list of redirect URI that are defined by the client. At completion of + // authorization, this list is used to restrict what locations the user agent + // can be redirected back to. + RedirectUris []*string `locationName:"redirectUris" type:"list"` + // The list of scopes that are defined by the client. Upon authorization, this // list is used to restrict permissions when granting an access token. Scopes []*string `locationName:"scopes" type:"list"` @@ -1782,6 +1912,30 @@ func (s *RegisterClientInput) SetClientType(v string) *RegisterClientInput { return s } +// SetEntitledApplicationArn sets the EntitledApplicationArn field's value. +func (s *RegisterClientInput) SetEntitledApplicationArn(v string) *RegisterClientInput { + s.EntitledApplicationArn = &v + return s +} + +// SetGrantTypes sets the GrantTypes field's value. +func (s *RegisterClientInput) SetGrantTypes(v []*string) *RegisterClientInput { + s.GrantTypes = v + return s +} + +// SetIssuerUrl sets the IssuerUrl field's value. +func (s *RegisterClientInput) SetIssuerUrl(v string) *RegisterClientInput { + s.IssuerUrl = &v + return s +} + +// SetRedirectUris sets the RedirectUris field's value. +func (s *RegisterClientInput) SetRedirectUris(v []*string) *RegisterClientInput { + s.RedirectUris = v + return s +} + // SetScopes sets the Scopes field's value. func (s *RegisterClientInput) SetScopes(v []*string) *RegisterClientInput { s.Scopes = v diff --git a/service/ssooidc/errors.go b/service/ssooidc/errors.go index e6242e4928d..cadf4584d27 100644 --- a/service/ssooidc/errors.go +++ b/service/ssooidc/errors.go @@ -57,6 +57,13 @@ const ( // makes a CreateToken request with an invalid grant type. ErrCodeInvalidGrantException = "InvalidGrantException" + // ErrCodeInvalidRedirectUriException for service response error code + // "InvalidRedirectUriException". + // + // Indicates that one or more redirect URI in the request is not supported for + // this operation. + ErrCodeInvalidRedirectUriException = "InvalidRedirectUriException" + // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // @@ -106,6 +113,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InvalidClientException": newErrorInvalidClientException, "InvalidClientMetadataException": newErrorInvalidClientMetadataException, "InvalidGrantException": newErrorInvalidGrantException, + "InvalidRedirectUriException": newErrorInvalidRedirectUriException, "InvalidRequestException": newErrorInvalidRequestException, "InvalidRequestRegionException": newErrorInvalidRequestRegionException, "InvalidScopeException": newErrorInvalidScopeException, diff --git a/service/ssooidc/examples_test.go b/service/ssooidc/examples_test.go index fa851fd8bf1..b9a2b4f953b 100644 --- a/service/ssooidc/examples_test.go +++ b/service/ssooidc/examples_test.go @@ -358,8 +358,17 @@ func ExampleSSOOIDC_CreateTokenWithIAM_shared03() { func ExampleSSOOIDC_RegisterClient_shared00() { svc := ssooidc.New(session.New()) input := &ssooidc.RegisterClientInput{ - ClientName: aws.String("My IDE Plugin"), - ClientType: aws.String("public"), + ClientName: aws.String("My IDE Plugin"), + ClientType: aws.String("public"), + EntitledApplicationArn: aws.String("arn:aws:sso::ACCOUNTID:application/ssoins-1111111111111111/apl-1111111111111111"), + GrantTypes: []*string{ + aws.String("authorization_code"), + aws.String("refresh_token"), + }, + IssuerUrl: aws.String("https://identitycenter.amazonaws.com/ssoins-1111111111111111"), + RedirectUris: []*string{ + aws.String("127.0.0.1:PORT/oauth/callback"), + }, Scopes: []*string{ aws.String("sso:account:access"), aws.String("codewhisperer:completions"), @@ -378,6 +387,10 @@ func ExampleSSOOIDC_RegisterClient_shared00() { fmt.Println(ssooidc.ErrCodeInvalidClientMetadataException, aerr.Error()) case ssooidc.ErrCodeInternalServerException: fmt.Println(ssooidc.ErrCodeInternalServerException, aerr.Error()) + case ssooidc.ErrCodeInvalidRedirectUriException: + fmt.Println(ssooidc.ErrCodeInvalidRedirectUriException, aerr.Error()) + case ssooidc.ErrCodeUnsupportedGrantTypeException: + fmt.Println(ssooidc.ErrCodeUnsupportedGrantTypeException, aerr.Error()) default: fmt.Println(aerr.Error()) }