diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a60e593096..ccfc19b2da3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,74 @@ +# Release (2023-12-04) + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/billingconductor`: [v1.13.0](service/billingconductor/CHANGELOG.md#v1130-2023-12-04) + * **Feature**: This release adds the ability to specify a linked account of the billing group for the custom line item resource. +* `github.com/aws/aws-sdk-go-v2/service/braket`: [v1.24.0](service/braket/CHANGELOG.md#v1240-2023-12-04) + * **Feature**: This release enhances service support to create quantum tasks and hybrid jobs associated with Braket Direct Reservations. +* `github.com/aws/aws-sdk-go-v2/service/cloud9`: [v1.22.0](service/cloud9/CHANGELOG.md#v1220-2023-12-04) + * **Feature**: This release adds the requirement to include the imageId parameter in the CreateEnvironmentEC2 API call. +* `github.com/aws/aws-sdk-go-v2/service/cloudformation`: [v1.42.0](service/cloudformation/CHANGELOG.md#v1420-2023-12-04) + * **Feature**: Including UPDATE_* states as a success status for CreateStack waiter. +* `github.com/aws/aws-sdk-go-v2/service/finspace`: [v1.19.0](service/finspace/CHANGELOG.md#v1190-2023-12-04) + * **Feature**: Release General Purpose type clusters +* `github.com/aws/aws-sdk-go-v2/service/medialive`: [v1.43.0](service/medialive/CHANGELOG.md#v1430-2023-12-04) + * **Feature**: Adds support for custom color correction on channels using 3D LUT files. +* `github.com/aws/aws-sdk-go-v2/service/servicecatalogappregistry`: [v1.24.3](service/servicecatalogappregistry/CHANGELOG.md#v1243-2023-12-04) + * **Documentation**: Documentation-only updates for Dawn + +# Release (2023-12-01) + +## General Highlights +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/qconnect`: [v1.2.0](service/qconnect/CHANGELOG.md#v120-2023-12-01) + * **Feature**: This release adds the PutFeedback API and allows providing feedback against the specified assistant for the specified target. +* `github.com/aws/aws-sdk-go-v2/service/rbin`: [v1.14.0](service/rbin/CHANGELOG.md#v1140-2023-12-01) + * **Feature**: Added resource identifier in the output and updated error handling. +* `github.com/aws/aws-sdk-go-v2/service/verifiedpermissions`: [v1.8.0](service/verifiedpermissions/CHANGELOG.md#v180-2023-12-01) + * **Feature**: Adds description field to PolicyStore API's and namespaces field to GetSchema. + +# Release (2023-11-30.2) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/arczonalshift`: [v1.7.0](service/arczonalshift/CHANGELOG.md#v170-2023-11-302) + * **Feature**: This release adds a new capability, zonal autoshift. You can configure zonal autoshift so that AWS shifts traffic for a resource away from an Availability Zone, on your behalf, when AWS determines that there is an issue that could potentially affect customers in the Availability Zone. +* `github.com/aws/aws-sdk-go-v2/service/dynamodb`: [v1.26.2](service/dynamodb/CHANGELOG.md#v1262-2023-11-302) + * **Bug Fix**: Respect caller region overrides in endpoint discovery. +* `github.com/aws/aws-sdk-go-v2/service/glue`: [v1.72.0](service/glue/CHANGELOG.md#v1720-2023-11-302) + * **Feature**: Adds observation and analyzer support to the GetDataQualityResult and BatchGetDataQualityResult APIs. +* `github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery`: [v1.8.8](service/internal/endpoint-discovery/CHANGELOG.md#v188-2023-11-302) + * **Bug Fix**: Respect caller region overrides in endpoint discovery. +* `github.com/aws/aws-sdk-go-v2/service/sagemaker`: [v1.120.0](service/sagemaker/CHANGELOG.md#v11200-2023-11-302) + * **Feature**: This release adds support for 1/ Code Editor, based on Code-OSS, Visual Studio Code Open Source, a new fully managed IDE option in SageMaker Studio 2/ JupyterLab, a new fully managed JupyterLab IDE experience in SageMaker Studio +* `github.com/aws/aws-sdk-go-v2/service/timestreamquery`: [v1.20.2](service/timestreamquery/CHANGELOG.md#v1202-2023-11-302) + * **Bug Fix**: Respect caller region overrides in endpoint discovery. +* `github.com/aws/aws-sdk-go-v2/service/timestreamwrite`: [v1.23.2](service/timestreamwrite/CHANGELOG.md#v1232-2023-11-302) + * **Bug Fix**: Respect caller region overrides in endpoint discovery. + +# Release (2023-11-30) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/marketplaceagreement`: [v1.0.0](service/marketplaceagreement/CHANGELOG.md#v100-2023-11-30) + * **Release**: New AWS service client module + * **Feature**: The AWS Marketplace Agreement Service provides an API interface that helps AWS Marketplace sellers manage their agreements, including listing, filtering, and viewing details about their agreements. +* `github.com/aws/aws-sdk-go-v2/service/marketplacecatalog`: [v1.22.0](service/marketplacecatalog/CHANGELOG.md#v1220-2023-11-30) + * **Feature**: This release enhances the ListEntities API to support new entity type-specific strongly typed filters in the request and entity type-specific strongly typed summaries in the response. +* `github.com/aws/aws-sdk-go-v2/service/marketplacedeployment`: [v1.0.0](service/marketplacedeployment/CHANGELOG.md#v100-2023-11-30) + * **Release**: New AWS service client module + * **Feature**: AWS Marketplace Deployment is a new service that provides essential features that facilitate the deployment of software, data, and services procured through AWS Marketplace. +* `github.com/aws/aws-sdk-go-v2/service/redshiftserverless`: [v1.15.0](service/redshiftserverless/CHANGELOG.md#v1150-2023-11-30) + * **Feature**: This release adds the following support for Amazon Redshift Serverless: 1) cross-account cross-VPCs, 2) copying snapshots across Regions, 3) scheduling snapshot creation, and 4) restoring tables from a recovery point. + # Release (2023-11-29) ## General Highlights diff --git a/aws/go_module_metadata.go b/aws/go_module_metadata.go index 0c76ad796a4..c760c48e3dc 100644 --- a/aws/go_module_metadata.go +++ b/aws/go_module_metadata.go @@ -3,4 +3,4 @@ package aws // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.3" +const goModuleVersion = "1.23.5" diff --git a/aws/protocol/eventstream/CHANGELOG.md b/aws/protocol/eventstream/CHANGELOG.md index 09efb7d3316..bf6cbc8cf7f 100644 --- a/aws/protocol/eventstream/CHANGELOG.md +++ b/aws/protocol/eventstream/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.5.3 (2023-11-30) + +* No change notes available for this release. + # v1.5.2 (2023-11-29) * No change notes available for this release. diff --git a/aws/protocol/eventstream/go.mod b/aws/protocol/eventstream/go.mod index 3fcfe3a4495..5a20cdfd615 100644 --- a/aws/protocol/eventstream/go.mod +++ b/aws/protocol/eventstream/go.mod @@ -2,6 +2,6 @@ module github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream go 1.19 -require github.com/aws/smithy-go v1.18.0 +require github.com/aws/smithy-go v1.18.1 replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/aws/protocol/eventstream/go.sum b/aws/protocol/eventstream/go.sum index 4a236cdfa85..e5153680047 100644 --- a/aws/protocol/eventstream/go.sum +++ b/aws/protocol/eventstream/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/aws/protocol/eventstream/go_module_metadata.go b/aws/protocol/eventstream/go_module_metadata.go index aa16e84a9d9..dfaf03ba653 100644 --- a/aws/protocol/eventstream/go_module_metadata.go +++ b/aws/protocol/eventstream/go_module_metadata.go @@ -3,4 +3,4 @@ package eventstream // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.2" +const goModuleVersion = "1.5.3" diff --git a/codegen/sdk-codegen/aws-models/arc-zonal-shift.json b/codegen/sdk-codegen/aws-models/arc-zonal-shift.json index 0bf75c7cafc..e09f3dd19af 100644 --- a/codegen/sdk-codegen/aws-models/arc-zonal-shift.json +++ b/codegen/sdk-codegen/aws-models/arc-zonal-shift.json @@ -14,6 +14,12 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.arczonalshift#AlertRetrieval": { + "type": "resource" + }, + "com.amazonaws.arczonalshift#AlertTransmission": { + "type": "resource" + }, "com.amazonaws.arczonalshift#AppliedStatus": { "type": "enum", "members": { @@ -40,6 +46,125 @@ "target": "com.amazonaws.arczonalshift#Weight" } }, + "com.amazonaws.arczonalshift#Autoshift": { + "type": "resource", + "operations": [ + { + "target": "com.amazonaws.arczonalshift#ListAutoshifts" + } + ] + }, + "com.amazonaws.arczonalshift#AutoshiftAppliedStatus": { + "type": "enum", + "members": { + "APPLIED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "APPLIED" + } + }, + "NOT_APPLIED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NOT_APPLIED" + } + } + } + }, + "com.amazonaws.arczonalshift#AutoshiftExecutionStatus": { + "type": "enum", + "members": { + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "COMPLETED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLETED" + } + } + } + }, + "com.amazonaws.arczonalshift#AutoshiftInResource": { + "type": "structure", + "members": { + "appliedStatus": { + "target": "com.amazonaws.arczonalshift#AutoshiftAppliedStatus", + "traits": { + "smithy.api#documentation": "
The appliedStatus
field specifies which application traffic shift is in effect for a\n\t\t\tresource when there is more than one traffic shift active. There can be more than one application traffic \n\t\t\tshift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, \n\t\t\tor an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two \n\t\t\tvalues: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift \n\t\t\tthat is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence \n\t\t\tautoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run \n\t\t\tzonal shifts.
\nFor more information, see \n\t\t\tHow zonal autoshift \n\t\t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#required": {} + } + }, + "awayFrom": { + "target": "com.amazonaws.arczonalshift#AvailabilityZone", + "traits": { + "smithy.api#documentation": "The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. \n\t\t\tUntil the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region.\n\t\t\tAn autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when \n\t\t\tyou disable zonal autoshift for the resource.
", + "smithy.api#required": {} + } + }, + "startTime": { + "target": "com.amazonaws.arczonalshift#StartTime", + "traits": { + "smithy.api#documentation": "The time (UTC) when the autoshift started.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A complex structure that lists an autoshift that is currently active for a managed resource and information about\n\t\t\tthe autoshift.
\nFor more information, see How zonal autoshift \n\t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
" + } + }, + "com.amazonaws.arczonalshift#AutoshiftSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.arczonalshift#AutoshiftSummary" + } + }, + "com.amazonaws.arczonalshift#AutoshiftSummary": { + "type": "structure", + "members": { + "awayFrom": { + "target": "com.amazonaws.arczonalshift#AvailabilityZone", + "traits": { + "smithy.api#documentation": "The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. \n\t\t\tUntil the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region.\n\t\t\tAn autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when \n\t\t\tyou disable zonal autoshift for the resource.
", + "smithy.api#required": {} + } + }, + "endTime": { + "target": "com.amazonaws.arczonalshift#ExpiryTime", + "traits": { + "smithy.api#documentation": "The time (in UTC) when the autoshift ended.
", + "smithy.api#required": {} + } + }, + "startTime": { + "target": "com.amazonaws.arczonalshift#StartTime", + "traits": { + "smithy.api#documentation": "The time (in UTC) when the autoshift started.
", + "smithy.api#required": {} + } + }, + "status": { + "target": "com.amazonaws.arczonalshift#AutoshiftExecutionStatus", + "traits": { + "smithy.api#documentation": "The status for an autoshift.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Information about an autoshift. Amazon Web Services starts an autoshift to temporarily move traffic for a resource \n\t\t\taway from an Availability Zone in an Amazon Web Services Region\n\t\t\twhen Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.\n\t\t\tYou can configure zonal autoshift in Route 53 ARC for managed resources in your Amazon Web Services account in a Region. \n\t\t\tSupported Amazon Web Services resources are automatically registered with Route 53 ARC.
\nAutoshifts are temporary. When the Availability Zone recovers, Amazon Web Services ends the autoshift, and \n\t\t\ttraffic for the resource is no longer directed to the other Availability Zones in the Region.
\nYou can stop an autoshift for a resource by disabling zonal autoshift.
" + } + }, + "com.amazonaws.arczonalshift#AutoshiftsInResource": { + "type": "list", + "member": { + "target": "com.amazonaws.arczonalshift#AutoshiftInResource" + } + }, "com.amazonaws.arczonalshift#AvailabilityZone": { "type": "string", "traits": { @@ -54,6 +179,50 @@ "target": "com.amazonaws.arczonalshift#AvailabilityZone" } }, + "com.amazonaws.arczonalshift#BlockedDate": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 10, + "max": 10 + }, + "smithy.api#pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" + } + }, + "com.amazonaws.arczonalshift#BlockedDates": { + "type": "list", + "member": { + "target": "com.amazonaws.arczonalshift#BlockedDate" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 15 + } + } + }, + "com.amazonaws.arczonalshift#BlockedWindow": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 19, + "max": 19 + }, + "smithy.api#pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun):[0-9]{2}:[0-9]{2}-(Mon|Tue|Wed|Thu|Fri|Sat|Sun):[0-9]{2}:[0-9]{2}$" + } + }, + "com.amazonaws.arczonalshift#BlockedWindows": { + "type": "list", + "member": { + "target": "com.amazonaws.arczonalshift#BlockedWindow" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 15 + } + } + }, "com.amazonaws.arczonalshift#CancelZonalShift": { "type": "operation", "input": { @@ -83,7 +252,7 @@ } ], "traits": { - "smithy.api#documentation": "Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that you've started for a resource in your AWS account in an AWS Region.
", + "smithy.api#documentation": "Cancel a zonal shift in Amazon Route 53 Application Recovery Controller. To cancel the zonal shift, specify the zonal shift ID.
\nA zonal shift can be one that you've started for a resource in your Amazon Web Services account \n \t\tin an Amazon Web Services Region, or it can be a zonal shift started by a practice run with zonal \n \t\tautoshift.
", "smithy.api#http": { "method": "DELETE", "uri": "/zonalshifts/{zonalShiftId}", @@ -156,10 +325,273 @@ { "value": "SimultaneousZonalShiftsConflict", "name": "SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT" + }, + { + "value": "PracticeConfigurationAlreadyExists", + "name": "PRACTICE_CONFIGURATION_ALREADY_EXISTS" + }, + { + "value": "AutoShiftEnabled", + "name": "AUTOSHIFT_ENABLED" + }, + { + "value": "PracticeConfigurationDoesNotExist", + "name": "PRACTICE_CONFIGURATION_DOES_NOT_EXIST" } ] } }, + "com.amazonaws.arczonalshift#ControlCondition": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.arczonalshift#ControlConditionType", + "traits": { + "smithy.api#documentation": "The type of alarm specified for a practice run. The only valid value is CLOUDWATCH
.
The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A control condition is an alarm that you specify for a practice run. When you configure practice runs\n\t\t\twith zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch \n\t\t\tto use with the practice run. The alarms that you specify are an \n\t\t\toutcome alarm, to monitor application health during practice runs and, \n\t\t\toptionally, a blocking alarm, to block practice runs from starting.
\nControl condition alarms do not apply for autoshifts.
\nFor more information, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
" + } + }, + "com.amazonaws.arczonalshift#ControlConditionType": { + "type": "enum", + "members": { + "CLOUDWATCH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CLOUDWATCH" + } + } + } + }, + "com.amazonaws.arczonalshift#ControlConditions": { + "type": "list", + "member": { + "target": "com.amazonaws.arczonalshift#ControlCondition" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1 + } + } + }, + "com.amazonaws.arczonalshift#CreatePracticeRunConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.arczonalshift#CreatePracticeRunConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.arczonalshift#CreatePracticeRunConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.arczonalshift#AccessDeniedException" + }, + { + "target": "com.amazonaws.arczonalshift#ConflictException" + }, + { + "target": "com.amazonaws.arczonalshift#InternalServerException" + }, + { + "target": "com.amazonaws.arczonalshift#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.arczonalshift#ThrottlingException" + }, + { + "target": "com.amazonaws.arczonalshift#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "A practice run configuration for zonal autoshift is required when you enable zonal autoshift.\n\t\t\tA practice run configuration includes specifications for blocked dates and blocked time windows,\n\t\tand for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an \n\t\t\toutcome alarm, to monitor application health during practice runs and, \n\t\t\toptionally, a blocking alarm, to block practice runs from starting.
\nFor more information, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#http": { + "method": "POST", + "uri": "/configuration", + "code": 201 + } + } + }, + "com.amazonaws.arczonalshift#CreatePracticeRunConfigurationRequest": { + "type": "structure", + "members": { + "resourceIdentifier": { + "target": "com.amazonaws.arczonalshift#ResourceIdentifier", + "traits": { + "smithy.api#documentation": "The identifier of the resource to shift away traffic for when a practice\n\t\t\trun starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#required": {} + } + }, + "blockedWindows": { + "target": "com.amazonaws.arczonalshift#BlockedWindows", + "traits": { + "smithy.api#documentation": "Optionally, you can block Route 53 ARC from starting practice runs for specific windows of \n\t\t\tdays and times.
\nThe format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates,\n\t\t\tthat dates and times for practice runs are in UTC. Also, be aware of potential time adjustments \n\t\t\tthat might be required for daylight saving time differences. Separate multiple blocked windows \n\t\t\twith spaces.
\nFor example, say you run business report summaries three days a week. For\n\t\t\tthis scenario, you might set the following recurring days and times as blocked windows, \n\t\t\tfor example: MON-20:30-21:30 WED-20:30-21:30 \n\t\t\t\tFRI-20:30-21:30
.
Optionally, you can block Route 53 ARC from starting practice runs for a resource\n\t\t\ton specific calendar dates.
\nThe format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates,\n\t\t\tthat dates and times for practice runs are in UTC. Separate multiple blocked \n\t\t\tdates with spaces.
\nFor example, if you have an application update scheduled to launch on May 1, 2024, and \n\t\t\tyou don't want practice runs to shift traffic away at that time, you could set a blocked date \n\t\t\tfor 2024-05-01
.
An Amazon CloudWatch alarm that you can specify for zonal autoshift \n\t\t\tpractice runs. This alarm blocks Route 53 ARC from starting practice run zonal \n\t\t\tshifts, and ends a practice run that's in progress, when the alarm is in \n\t\t\tan ALARM
state.
The outcome alarm for practice runs is a required\n\t\t\tAmazon CloudWatch alarm that you specify that ends a practice run when the \n\t\t\talarm is in an ALARM
state.
Configure the alarm to monitor the health of your application \n\t\t\twhen traffic is shifted away from an Availability Zone during each weekly \n\t\t\tpractice run. You should configure the alarm to go into an ALARM
state \n\t\t\tif your application is impacted by the zonal shift, and you want to stop the\n\t\t\tzonal shift, to let traffic for the resource return to the Availability Zone.
The Amazon Resource Name (ARN) of the resource that you configured the practice \n\t\t\trun for.
", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.arczonalshift#ResourceName", + "traits": { + "smithy.api#documentation": "The name of the resource that you configured the practice run for.
", + "smithy.api#required": {} + } + }, + "zonalAutoshiftStatus": { + "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", + "traits": { + "smithy.api#documentation": "The status for zonal autoshift for a resource. When you specify the\n\t\t\tautoshift status as ENABLED
, Amazon Web Services shifts traffic \n\t\t\taway from shifts away application resource traffic from an Availability Zone, \n\t\t\ton your behalf, when Amazon Web Services determines that there's an issue in \n\t\t\tthe Availability Zone that could potentially affect customers.
When you enable zonal autoshift, you must also configure practice runs for\n\t\t\tthe resource.
", + "smithy.api#required": {} + } + }, + "practiceRunConfiguration": { + "target": "com.amazonaws.arczonalshift#PracticeRunConfiguration", + "traits": { + "smithy.api#documentation": "A practice run configuration for a resource. Configurations include the\n\t\t\toutcome alarm that you specify for practice runs, and, optionally, a\n\t\t\tblocking alarm and blocking dates and windows.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.arczonalshift#DeletePracticeRunConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.arczonalshift#DeletePracticeRunConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.arczonalshift#DeletePracticeRunConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.arczonalshift#AccessDeniedException" + }, + { + "target": "com.amazonaws.arczonalshift#ConflictException" + }, + { + "target": "com.amazonaws.arczonalshift#InternalServerException" + }, + { + "target": "com.amazonaws.arczonalshift#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.arczonalshift#ThrottlingException" + }, + { + "target": "com.amazonaws.arczonalshift#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes the practice run configuration for a resource. Before you can delete\n\t\t\ta practice run configuration for a resource., you must disable zonal autoshift for \n\t\t\tthe resource. Practice runs must be configured for zonal autoshift to be enabled.
", + "smithy.api#http": { + "method": "DELETE", + "uri": "/configuration/{resourceIdentifier}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.arczonalshift#DeletePracticeRunConfigurationRequest": { + "type": "structure", + "members": { + "resourceIdentifier": { + "target": "com.amazonaws.arczonalshift#ResourceIdentifier", + "traits": { + "smithy.api#documentation": "The identifier for the resource that you want to delete the practice\n\t\t\trun configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.arczonalshift#PracticeRunConfigurationResource" + } + ] + } + }, + "com.amazonaws.arczonalshift#DeletePracticeRunConfigurationResponse": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.arczonalshift#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource that you deleted the practice \n\t\t\trun for.
", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.arczonalshift#ResourceName", + "traits": { + "smithy.api#documentation": "The name of the resource that you deleted the practice \n\t\t\trun for.
", + "smithy.api#required": {} + } + }, + "zonalAutoshiftStatus": { + "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", + "traits": { + "smithy.api#documentation": "The status of zonal autoshift for the resource.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.arczonalshift#ExpiresIn": { "type": "string", "traits": { @@ -199,7 +631,7 @@ } ], "traits": { - "smithy.api#documentation": "Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this AWS Region. Resources that are registered for\n \t\tzonal shifts are managed resources in Route 53 ARC.
\n \tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "Get information about a resource that's been registered for zonal shifts with Amazon Route 53 Application Recovery Controller in this Amazon Web Services Region. Resources that are registered for\n \t\tzonal shifts are managed resources in Route 53 ARC. You can start zonal shifts and configure zonal autoshift for managed resources.
\nAt this time, you can only start a zonal shift or configure zonal autoshift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#http": { "method": "GET", "uri": "/managedresources/{resourceIdentifier}", @@ -214,7 +646,7 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\n \tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -257,6 +689,24 @@ "smithy.api#documentation": "The zonal shifts that are currently active for a resource.
", "smithy.api#required": {} } + }, + "autoshifts": { + "target": "com.amazonaws.arczonalshift#AutoshiftsInResource", + "traits": { + "smithy.api#documentation": "An array of the autoshifts that are active for the resource.
" + } + }, + "practiceRunConfiguration": { + "target": "com.amazonaws.arczonalshift#PracticeRunConfiguration", + "traits": { + "smithy.api#documentation": "The practice run configuration for zonal autoshift that's associated with\n\t\t\tthe resource.
" + } + }, + "zonalAutoshiftStatus": { + "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", + "traits": { + "smithy.api#documentation": "The status for zonal autoshift for a resource. When the\n\t\t\tautoshift status is ENABLED
, Amazon Web Services shifts traffic \n\t\t\tfor a resource away from an Availability Zone, on your behalf, when \n\t\t\tAmazon Web Services determines that there's an issue in \n\t\t\tthe Availability Zone that could potentially affect customers.
Returns the active autoshifts for a specified resource.
", + "smithy.api#http": { + "method": "GET", + "uri": "/autoshifts", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "items" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.arczonalshift#ListAutoshiftsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Specifies that you want to receive the next page of results. Valid only if you received a NextToken
response in the \n\t\t\tprevious request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous \n\t\t\tcall's NextToken
response to request the next page of results.
The status of the autoshift.
", + "smithy.api#httpQuery": "status" + } + }, + "maxResults": { + "target": "com.amazonaws.arczonalshift#MaxResults", + "traits": { + "smithy.api#documentation": "The number of objects that you want to return with this call.
", + "smithy.api#httpQuery": "maxResults" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.arczonalshift#ListAutoshiftsResponse": { + "type": "structure", + "members": { + "items": { + "target": "com.amazonaws.arczonalshift#AutoshiftSummaries", + "traits": { + "smithy.api#documentation": "The items in the response list.
" + } + }, + "nextToken": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Specifies that you want to receive the next page of results. Valid only if you received a NextToken
response in the \n\t\t\tprevious request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous \n\t\t\tcall's NextToken
response to request the next page of results.
Lists all the resources in your AWS account in this AWS Region that are managed for zonal shifts in Amazon Route 53 Application Recovery Controller, and information \n \t\tabout them. The information includes their Amazon Resource Names (ARNs), the Availability Zones the resources are deployed in, and \n \t\tthe resource name.
", + "smithy.api#documentation": "Lists all the resources in your Amazon Web Services account in this Amazon Web Services Region that are managed for \n \t\tzonal shifts in Amazon Route 53 Application Recovery Controller, and information about them. The information includes the zonal autoshift status for the resource, \n \t\tas well as the Amazon Resource Name (ARN), the Availability Zones that each resource is deployed in, and \n \t\tthe resource name.
", "smithy.api#http": { "method": "GET", "uri": "/managedresources", @@ -380,7 +917,7 @@ } ], "traits": { - "smithy.api#documentation": "Lists all the active zonal shifts in Amazon Route 53 Application Recovery Controller in your AWS account in this AWS Region.
", + "smithy.api#documentation": "Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region.\n \t\tListZonalShifts
returns customer-started zonal shifts, as well as practice run zonal shifts that Route 53 ARC started on \n \t\tyour behalf for zonal autoshift.
The ListZonalShifts
operation does not list autoshifts. For more information about listing\n \t\tautoshifts, see \">ListAutoshifts.
A status for a zonal shift.
\n \tThe Status
for a zonal shift can have one of the following values:
\n ACTIVE: The zonal shift is started and active.
\n\n EXPIRED: The zonal shift has expired (the expiry time was exceeded).
\n\n CANCELED: The zonal shift was canceled.
\nA status for a zonal shift.
\nThe Status
for a zonal shift can have one of the following values:
\n ACTIVE: The zonal shift has been started and active.
\n\n EXPIRED: The zonal shift has expired (the expiry time was exceeded).
\n\n CANCELED: The zonal shift was canceled.
\nThe number of objects that you want to return with this call.
", "smithy.api#httpQuery": "maxResults" } + }, + "resourceIdentifier": { + "target": "com.amazonaws.arczonalshift#ResourceIdentifier", + "traits": { + "smithy.api#documentation": "The identifier for the resource that you want to list zonal shifts for.\n\t\t\tThe identifier is the Amazon Resource Name (ARN) for the resource.
", + "smithy.api#httpQuery": "resourceIdentifier" + } } }, "traits": { @@ -456,7 +1000,12 @@ }, "list": { "target": "com.amazonaws.arczonalshift#ListManagedResources" - } + }, + "operations": [ + { + "target": "com.amazonaws.arczonalshift#UpdateZonalAutoshiftConfiguration" + } + ] }, "com.amazonaws.arczonalshift#ManagedResourceSummaries": { "type": "list", @@ -485,10 +1034,40 @@ "smithy.api#documentation": "The Availability Zones that a resource is deployed in.
", "smithy.api#required": {} } + }, + "appliedWeights": { + "target": "com.amazonaws.arczonalshift#AppliedWeights", + "traits": { + "smithy.api#documentation": "A collection of key-value pairs that indicate whether resources are active in Availability Zones or not. \n\t\t\tThe key name is the Availability Zone where the resource is deployed. The value is 1 or 0.
" + } + }, + "zonalShifts": { + "target": "com.amazonaws.arczonalshift#ZonalShiftsInResource", + "traits": { + "smithy.api#documentation": "An array of the zonal shifts for a resource.
" + } + }, + "autoshifts": { + "target": "com.amazonaws.arczonalshift#AutoshiftsInResource", + "traits": { + "smithy.api#documentation": "An array of the autoshifts that have been completed for a resource.
" + } + }, + "zonalAutoshiftStatus": { + "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", + "traits": { + "smithy.api#documentation": "The status of autoshift for a resource. When you configure zonal autoshift for a\n\t\t\tresource, you can set the value of the status to ENABLED
or DISABLED
.
This status tracks whether a practice run configuration exists for a resource. When you configure\n\t\t\ta practice run for a resource so that a practice run configuration exists, Route 53 ARC sets this value to \n\t\t\tENABLED
. If a you have not configured a practice run for the resource, or delete a practice \n\t\t\trun configuration, Route 53 ARC sets the value to DISABLED
.
Route 53 ARC updates this status; you can't set a practice run status to ENABLED
or \n\t\t\tDISABLED
.
A complex structure for a managed resource in an account.
\n \tA managed resource is a Network Load Balancer or Application Load Balancer that has been registered with Route 53 ARC by Elastic Load Balancing. You can start a\n \t\tzonal shift in Route 53 ARC for a managed resource to temporarily move traffic for the resource away from an Availability Zone in an AWS Region.
\n \tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
\nA complex structure for a managed resource in an Amazon Web Services account with information about zonal shifts\n \t\tand autoshifts.
\nA managed resource is a load balancer that has been registered \n \t\twith Route 53 ARC by Elastic Load Balancing. You can start a zonal shift in Route 53 ARC for a managed resource to \n \t\ttemporarily move traffic for the resource away from an Availability Zone in an Amazon Web Services Region.\n \t\tYou can also configure zonal autoshift for a managed resource.
\nAt this time, managed resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
\nThis is the API Reference Guide for the zonal shift feature of Amazon Route 53 Application Recovery Controller. This guide is for developers who need detailed information about \n\t\t\tzonal shift API actions, data types, and errors.
\n\t\tZonal shift is in preview release for Amazon Route 53 Application Recovery Controller and is subject to change.
\n\t\tZonal shift in Route 53 ARC enables you to move traffic for a load balancer resource away from an Availability Zone. Starting \n\t\t\ta zonal shift helps your application recover immediately, for example, from a developer's bad code deployment \n\t\t\tor from an AWS infrastructure failure in a single Availability Zone, reducing the impact and time lost from an issue \n\t\t\tin one zone.
\n\t\tSupported AWS resources are automatically registered with Route 53 ARC. Resources that are registered for zonal shifts \n\t\t\tin Route 53 ARC are managed resources in Route 53 ARC. You can start a zonal shift for any managed resource in your account in a Region. \n\t\t\tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
\n\t\tZonal shifts are temporary. You must specify an expiration when you start a zonal shift, of up to three days initially. \n\t\t\tIf you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. \n\t\t\tYou can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
\n\t\tFor more information about using zonal shift, see the \n\t\t\tAmazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#documentation": "Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 Application Recovery Controller (Route 53 ARC).
\nYou can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to\n\t\t\thelp your application recover quickly from an impairment in an Availability Zone. For example, \n\t\t\tyou can recover your application from a developer's bad code deployment or from an \n\t\t\tAmazon Web Services infrastructure failure in a single Availability Zone.
\nYou can also configure zonal autoshift for a load balancer resource. Zonal autoshift \n\t\t\tis a capability in Route 53 ARC where Amazon Web Services shifts away application resource \n\t\t\ttraffic from an Availability Zone, on your behalf, to help reduce your time to recovery during events.\n\t\t\tAmazon Web Services shifts away traffic for resources that are enabled for zonal autoshift whenever Amazon Web Services \n\t\t\tdetermines that there's an issue in the Availability Zone that could potentially affect \n\t\t\tcustomers.
\nTo ensure that zonal autoshift is safe for your application, you must \n\t\t\talso configure practice runs when you enable zonal autoshift for a resource. Practice runs start \n\t\t\tweekly zonal shifts for a resource, to shift\n\t\t\ttraffic for the resource out of an Availability Zone. Practice runs make sure, on a regular basis, \n\t\t\tthat you have enough capacity in all the Availability Zones in an Amazon Web Services Region \n\t\t\tfor your application to continue to operate normally \n\t\t\twhen traffic for a resource is shifted away from one Availability Zone.
\nYou must prescale resource capacity in all Availability Zones in the Region \n\t\t\twhere your application is deployed, before you configure practice runs or enable zonal autoshift\n\t\t\tfor a resource. You should not rely on scaling on demand when an autoshift or practice run \n\t\t\tstarts.
\nFor more information about using zonal shift and zonal autoshift, see the \n\t\t\tAmazon Route 53 Application Recovery Controller \n\t\t\t\tDeveloper Guide.
", "smithy.api#title": "AWS ARC - Zonal Shift", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -589,7 +1181,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -608,7 +1199,6 @@ }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -636,13 +1226,14 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [ @@ -655,7 +1246,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -669,7 +1259,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -692,7 +1281,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -727,11 +1315,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -742,16 +1328,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -765,14 +1354,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -781,15 +1368,14 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -800,16 +1386,19 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -823,7 +1412,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -843,11 +1431,9 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -858,20 +1444,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], - "type": "tree", "rules": [ { "conditions": [], @@ -882,18 +1470,22 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } - ] + ], + "type": "tree" } ] }, @@ -1213,6 +1805,93 @@ } } }, + "com.amazonaws.arczonalshift#PracticeRunConfiguration": { + "type": "structure", + "members": { + "blockingAlarms": { + "target": "com.amazonaws.arczonalshift#ControlConditions", + "traits": { + "smithy.api#documentation": "The blocking alarm for practice runs is an optional alarm that you can \n\t\t\tspecify that blocks practice runs when the alarm is in an ALARM
state.
The outcome alarm for practice runs is an alarm that you specify that \n\t\t\tends a practice run when the alarm is in an ALARM
state.
An array of one or more windows of days and times that you can block Route 53 ARC\n\t\t\tfrom starting practice runs for a resource.
\nSpecify the blocked windows in UTC, using the format DAY:HH:MM-DAY:HH:MM
, separated by \n\t\t\tspaces. For example, MON:18:30-MON:19:30 TUE:18:30-TUE:19:30
.
An array of one or more dates that you can specify when Amazon Web Services does not start practice runs for a resource.
\nSpecify blocked dates, in UTC, in the format YYYY-MM-DD
, separated by spaces.
A practice run configuration for a resource includes the Amazon CloudWatch alarms that you've specified for a practice\n\t\trun, as well as any blocked dates or blocked windows for the practice run.
\nYou can update or delete a practice run configuration. Before you delete a practice run configuration, you\n\t\t\tmust disable zonal autoshift for the resource. A practice run configuration is required when zonal autoshift is enabled.
" + } + }, + "com.amazonaws.arczonalshift#PracticeRunConfigurationResource": { + "type": "resource", + "identifiers": { + "resourceIdentifier": { + "target": "com.amazonaws.arczonalshift#ResourceIdentifier" + } + }, + "update": { + "target": "com.amazonaws.arczonalshift#UpdatePracticeRunConfiguration" + }, + "delete": { + "target": "com.amazonaws.arczonalshift#DeletePracticeRunConfiguration" + }, + "operations": [ + { + "target": "com.amazonaws.arczonalshift#CreatePracticeRunConfiguration" + } + ], + "traits": { + "aws.cloudformation#cfnResource": { + "name": "ZonalAutoshiftConfiguration" + } + } + }, + "com.amazonaws.arczonalshift#PracticeRunOutcome": { + "type": "enum", + "members": { + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + }, + "INTERRUPTED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INTERRUPTED" + } + }, + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING" + } + }, + "SUCCEEDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUCCEEDED" + } + } + } + }, "com.amazonaws.arczonalshift#ResourceArn": { "type": "string", "traits": { @@ -1289,7 +1968,7 @@ } ], "traits": { - "smithy.api#documentation": "You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region,\n \t\tto help your application recover immediately, for example, from a developer's bad code deployment or from an AWS \n \t\tinfrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed\n \t\tresources in your account in an AWS Region. Resources are automatically registered with Route 53 ARC by AWS services.
\n \tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
\n \tWhen you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The\n \t\tzonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes,\n \t\tfor existing, in-progress connections in the Availability Zone to complete.
\n \tFor more information, see Zonal shift\n \t\tin the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#documentation": "You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in an Amazon Web Services Region,\n \t\tto help your application recover immediately, for example, from a developer's bad code deployment or from an Amazon Web Services \n \t\tinfrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed\n \t\tresources in your Amazon Web Services account in an Amazon Web Services Region. Resources are automatically registered with Route 53 ARC \n \t\tby Amazon Web Services services.
\nAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
\nWhen you start a zonal shift, traffic for the resource is no longer routed to the Availability Zone. The\n \t\tzonal shift is created immediately in Route 53 ARC. However, it can take a short time, typically up to a few minutes,\n \t\tfor existing, in-progress connections in the Availability Zone to complete.
\nFor more information, see Zonal shift\n \t\tin the Amazon Route 53 Application Recovery Controller Developer Guide.
", "smithy.api#http": { "method": "POST", "uri": "/zonalshifts", @@ -1303,21 +1982,21 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\n \tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#required": {} } }, "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.
", + "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", "smithy.api#required": {} } }, "expiresIn": { "target": "com.amazonaws.arczonalshift#ExpiresIn", "traits": { - "smithy.api#documentation": "The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time).\n \t\tZonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
\n \tIf you want to still keep traffic away from an Availability Zone, you can update the \n \t\tzonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to \n \t\trestore traffic to the Availability Zone.
\n \tTo set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
\n \t\n \t\n A lowercase letter m: To specify that the value is in minutes.
\n\n A lowercase letter h: To specify that the value is in hours.
\nFor example: 20h
means the zonal shift expires in 20 hours. 120m
means the zonal shift expires in 120 minutes (2 hours).
The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time).\n\t\tZonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
\nIf you want to still keep traffic away from an Availability Zone, you can update the \n\t\tzonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to \n\t\trestore traffic to the Availability Zone.
\nTo set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
\n\n A lowercase letter m: To specify that the value is in minutes.
\n\n A lowercase letter h: To specify that the value is in hours.
\nFor example: 20h
means the zonal shift expires in 20 hours. 120m
means the zonal shift expires in 120 minutes (2 hours).
Update a practice run configuration to change one or more of the following: add, \n\t\t\tchange, or remove the blocking alarm; change the outcome alarm; or add, change, \n\t\t\tor remove blocking dates or time windows.
", + "smithy.api#http": { + "method": "PATCH", + "uri": "/configuration/{resourceIdentifier}", + "code": 200 + } + } + }, + "com.amazonaws.arczonalshift#UpdatePracticeRunConfigurationRequest": { + "type": "structure", + "members": { + "resourceIdentifier": { + "target": "com.amazonaws.arczonalshift#ResourceIdentifier", + "traits": { + "smithy.api#documentation": "The identifier for the resource that you want to update the practice\n\t\t\trun configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "blockedWindows": { + "target": "com.amazonaws.arczonalshift#BlockedWindows", + "traits": { + "smithy.api#documentation": "Add, change, or remove windows of days and times for when you can, optionally,\n\t\t\tblock Route 53 ARC from starting a practice run for a resource.
\nThe format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates,\n\t\t\tthat dates and times for practice runs are in UTC. Also, be aware of potential time adjustments \n\t\t\tthat might be required for daylight saving time differences. Separate multiple blocked windows \n\t\t\twith spaces.
\nFor example, say you run business report summaries three days a week. For\n\t\t\tthis scenario, you might set the following recurring days and times as blocked windows, \n\t\t\tfor example: MON-20:30-21:30 WED-20:30-21:30 \n\t\t\t\tFRI-20:30-21:30
.
Add, change, or remove blocked dates for a practice run in zonal autoshift.
\nOptionally, you can block practice runs for specific calendar dates.\n\t\t\tThe format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates,\n\t\t\tthat dates and times for practice runs are in UTC. Separate multiple blocked \n\t\t\tdates with spaces.
\nFor example, if you have an application update scheduled to launch on May 1, 2024, and \n\t\t\tyou don't want practice runs to shift traffic away at that time, you could set a blocked date \n\t\t\tfor 2024-05-01
.
Add, change, or remove the Amazon CloudWatch alarm that you optionally\n\t\t\tspecify as the blocking alarm for practice runs.
" + } + }, + "outcomeAlarms": { + "target": "com.amazonaws.arczonalshift#ControlConditions", + "traits": { + "smithy.api#documentation": "Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice runs.
" + } + } + }, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.arczonalshift#PracticeRunConfigurationResource" + } + ] + } + }, + "com.amazonaws.arczonalshift#UpdatePracticeRunConfigurationResponse": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.arczonalshift#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource that you updated the practice \n\t\t\trun for.
", + "smithy.api#required": {} + } + }, + "name": { + "target": "com.amazonaws.arczonalshift#ResourceName", + "traits": { + "smithy.api#documentation": "The name of the resource that you updated the practice \n\t\t\trun for.
", + "smithy.api#required": {} + } + }, + "zonalAutoshiftStatus": { + "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", + "traits": { + "smithy.api#documentation": "The zonal autoshift status for the resource that you updated the practice\n\t\trun for.
", + "smithy.api#required": {} + } + }, + "practiceRunConfiguration": { + "target": "com.amazonaws.arczonalshift#PracticeRunConfiguration", + "traits": { + "smithy.api#documentation": "The practice run configuration that was updated.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.arczonalshift#UpdateZonalAutoshiftConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.arczonalshift#UpdateZonalAutoshiftConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.arczonalshift#UpdateZonalAutoshiftConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.arczonalshift#AccessDeniedException" + }, + { + "target": "com.amazonaws.arczonalshift#ConflictException" + }, + { + "target": "com.amazonaws.arczonalshift#InternalServerException" + }, + { + "target": "com.amazonaws.arczonalshift#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.arczonalshift#ThrottlingException" + }, + { + "target": "com.amazonaws.arczonalshift#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "You can update the zonal autoshift status for a resource, to enable or disable zonal\n\t\t\tautoshift. When zonal autoshift is ENABLED
, Amazon Web Services shifts away \n\t\t\tresource traffic from an Availability Zone, on your behalf, when Amazon Web Services\n\t\t\tdetermines that there's an issue in the Availability Zone that could potentially affect customers.
The identifier for the resource that you want to update the zonal autoshift\n\t\t\tconfiguration for. The identifier is the Amazon Resource Name (ARN) for the resource.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "zonalAutoshiftStatus": { + "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", + "traits": { + "smithy.api#documentation": "The zonal autoshift status for the resource that you want to update the zonal\n\t\t\tautoshift configuration for.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.arczonalshift#UpdateZonalAutoshiftConfigurationResponse": { + "type": "structure", + "members": { + "resourceIdentifier": { + "target": "com.amazonaws.arczonalshift#ResourceIdentifier", + "traits": { + "smithy.api#documentation": "The identifier for the resource that you updated the zonal autoshift\n\t\t\tconfiguration for. The identifier is the Amazon Resource Name (ARN) for the resource.
", + "smithy.api#required": {} + } + }, + "zonalAutoshiftStatus": { + "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", + "traits": { + "smithy.api#documentation": "The zonal autoshift status for the resource that you updated the zonal\n\t\t\tautoshift configuration for.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.arczonalshift#UpdateZonalShift": { "type": "operation", "input": { @@ -1380,7 +2260,7 @@ } ], "traits": { - "smithy.api#documentation": "Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your AWS account. You can update a zonal shift to set a new expiration, or \n \tedit or replace the comment for the zonal shift.
", + "smithy.api#documentation": "Update an active zonal shift in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account. You can update a zonal shift to set a new expiration, or \n \tedit or replace the comment for the zonal shift.
", "smithy.api#http": { "method": "PATCH", "uri": "/zonalshifts/{zonalShiftId}", @@ -1408,7 +2288,7 @@ "expiresIn": { "target": "com.amazonaws.arczonalshift#ExpiresIn", "traits": { - "smithy.api#documentation": "The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time).\n \t\tZonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
\n \tIf you want to still keep traffic away from an Availability Zone, you can update the \n \t\tzonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to \n \t\trestore traffic to the Availability Zone.
\n \tTo set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
\n \t\n A lowercase letter m: To specify that the value is in minutes.
\n\n A lowercase letter h: To specify that the value is in hours.
\nFor example: 20h
means the zonal shift expires in 20 hours. 120m
means the zonal shift expires in 120 minutes (2 hours).
The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time).\n \t\tZonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
\nIf you want to still keep traffic away from an Availability Zone, you can update the \n \t\tzonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to \n \t\trestore traffic to the Availability Zone.
\nTo set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
\n\n A lowercase letter m: To specify that the value is in minutes.
\n\n A lowercase letter h: To specify that the value is in hours.
\nFor example: 20h
means the zonal shift expires in 20 hours. 120m
means the zonal shift expires in 120 minutes (2 hours).
The input fails to satisfy the constraints specified by an AWS service.
", + "smithy.api#documentation": "The input fails to satisfy the constraints specified by an Amazon Web Services service.
", "smithy.api#error": "client", "smithy.api#httpError": 400 } @@ -1475,6 +2355,18 @@ { "value": "UnsupportedAz", "name": "UNSUPPORTED_AZ" + }, + { + "value": "InvalidAlarmCondition", + "name": "INVALID_ALARM_CONDITION" + }, + { + "value": "InvalidConditionType", + "name": "INVALID_CONDITION_TYPE" + }, + { + "value": "InvalidPracticeBlocker", + "name": "INVALID_PRACTICE_BLOCKER" } ] } @@ -1488,6 +2380,23 @@ } } }, + "com.amazonaws.arczonalshift#ZonalAutoshiftStatus": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.arczonalshift#ZonalShift": { "type": "structure", "members": { @@ -1501,35 +2410,35 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\n\t\tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#required": {} } }, "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n\t\t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.
", + "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n\t\t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", "smithy.api#required": {} } }, "expiryTime": { "target": "com.amazonaws.arczonalshift#ExpiryTime", "traits": { - "smithy.api#documentation": "The expiry time (expiration time) for the zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n\t\t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n\t\t\tto set a new expiration at any time.
\n\t\tWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n\t\t\tto an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you\n\t\t\tcan update the zonal shift to specify another length of time to expire in.
", + "smithy.api#documentation": "The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n\t\t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n\t\t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n\t\t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n\t\t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", "smithy.api#required": {} } }, "startTime": { "target": "com.amazonaws.arczonalshift#StartTime", "traits": { - "smithy.api#documentation": "The time (UTC) when the zonal shift is started.
", + "smithy.api#documentation": "The time (UTC) when the zonal shift starts.
", "smithy.api#required": {} } }, "status": { "target": "com.amazonaws.arczonalshift#ZonalShiftStatus", "traits": { - "smithy.api#documentation": "A status for a zonal shift.
\n \tThe Status
for a zonal shift can have one of the following values:
\n ACTIVE: The zonal shift is started and active.
\n\n EXPIRED: The zonal shift has expired (the expiry time was exceeded).
\n\n CANCELED: The zonal shift was canceled.
\nA status for a zonal shift.
\nThe Status
for a zonal shift can have one of the following values:
\n ACTIVE: The zonal shift has been started and active.
\n\n EXPIRED: The zonal shift has expired (the expiry time was exceeded).
\n\n CANCELED: The zonal shift was canceled.
\nAn appliedStatus
for a zonal shift for a resource can have one of two values: APPLIED
\n \t\tor NOT_APPLIED
.
The appliedStatus
field specifies which application traffic shift is in effect for a\n \t\tresource when there is more than one traffic shift active. There can be more than one application traffic \n \t\tshift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, \n \t\tor an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two \n \t\tvalues: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift \n \t\tthat is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence \n \t\tautoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run \n \t\tzonal shifts.
\nFor more information, see \n \t\tHow zonal autoshift \n \t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
", "smithy.api#required": {} } }, @@ -1580,28 +2489,28 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\n \tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#required": {} } }, "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.
", + "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", "smithy.api#required": {} } }, "expiryTime": { "target": "com.amazonaws.arczonalshift#ExpiryTime", "traits": { - "smithy.api#documentation": "The expiry time (expiration time) for the zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\n \tWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you\n \t\tcan update the zonal shift to specify another length of time to expire in.
", + "smithy.api#documentation": "The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n \t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", "smithy.api#required": {} } }, "startTime": { "target": "com.amazonaws.arczonalshift#StartTime", "traits": { - "smithy.api#documentation": "The time (UTC) when the zonal shift is started.
", + "smithy.api#documentation": "The time (UTC) when the zonal shift starts.
", "smithy.api#required": {} } }, @@ -1611,6 +2520,12 @@ "smithy.api#documentation": "A comment that you enter about the zonal shift. Only the latest comment is retained; no comment\n \t\thistory is maintained. That is, a new comment overwrites any existing comment string.
", "smithy.api#required": {} } + }, + "practiceRunOutcome": { + "target": "com.amazonaws.arczonalshift#PracticeRunOutcome", + "traits": { + "smithy.api#documentation": "The outcome, or end state, returned for a practice run. The following values can be returned:
\n\n PENDING: Outcome value when a practice run is in progress.
\n\n SUCCEEDED: Outcome value when the outcome alarm specified for \n\t\t\t\tthe practice run configuration does not go into an ALARM
state during the practice run, and the practice run \n\t\t\t\twas not interrupted before it completed the expected 30 minute zonal shift.
\n INTERRUPTED: Outcome value when the practice run was stopped before the\n\t\t\t\texpected 30 minute zonal shift duration, or there was another problem with the practice run that created an inconclusive outcome.
\n\n FAILED: Outcome value when the outcome alarm specified for \n\t\t\t\tthe practice run configuration goes into an ALARM
state during the practice run, and the practice run \n\t\t\t\twas not interrupted before it completed.
For more information about practice run outcomes, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
" + } } }, "traits": { @@ -1675,35 +2590,35 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\n \tAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#required": {} } }, "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the AWS Region.
", + "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", "smithy.api#required": {} } }, "expiryTime": { "target": "com.amazonaws.arczonalshift#ExpiryTime", "traits": { - "smithy.api#documentation": "The expiry time (expiration time) for the zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\n \tWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you\n \t\tcan update the zonal shift to specify another length of time to expire in.
", + "smithy.api#documentation": "The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n \t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", "smithy.api#required": {} } }, "startTime": { "target": "com.amazonaws.arczonalshift#StartTime", "traits": { - "smithy.api#documentation": "The time (UTC) when the zonal shift is started.
", + "smithy.api#documentation": "The time (UTC) when the zonal shift starts.
", "smithy.api#required": {} } }, "status": { "target": "com.amazonaws.arczonalshift#ZonalShiftStatus", "traits": { - "smithy.api#documentation": "A status for a zonal shift.
\n \tThe Status
for a zonal shift can have one of the following values:
\n ACTIVE: The zonal shift is started and active.
\n\n EXPIRED: The zonal shift has expired (the expiry time was exceeded).
\n\n CANCELED: The zonal shift was canceled.
\nA status for a zonal shift.
\nThe Status
for a zonal shift can have one of the following values:
\n ACTIVE: The zonal shift has been started and active.
\n\n EXPIRED: The zonal shift has expired (the expiry time was exceeded).
\n\n CANCELED: The zonal shift was canceled.
\nA comment that you enter about the zonal shift. Only the latest comment is retained; no comment\n \t\thistory is maintained. That is, a new comment overwrites any existing comment string.
", "smithy.api#required": {} } + }, + "practiceRunOutcome": { + "target": "com.amazonaws.arczonalshift#PracticeRunOutcome", + "traits": { + "smithy.api#documentation": "The outcome, or end state, of a practice run. The following values can be returned:
\n\n PENDING: Outcome value when the practice run is in progress.
\n\n SUCCEEDED: Outcome value when the outcome alarm specified for \n\t\t\t\tthe practice run configuration does not go into an ALARM
state during the practice run, and the practice run \n\t\t\t\twas not interrupted before it completed.
\n INTERRUPTED: Outcome value when the practice run did not run for the\n\t\t\t\texpected 30 minutes or there was another problem with the practice run that created an inconclusive outcome.
\n\n FAILED: Outcome value when the outcome alarm specified for \n\t\t\t\tthe practice run configuration goes into an ALARM
state during the practice run, and the practice run \n\t\t\t\twas not interrupted before it completed.
For more information about practice run outcomes, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
" + } } }, "traits": { - "smithy.api#documentation": "You start a zonal shift to temporarily move load balancer traffic away from an Availability Zone in a AWS Region.\n \t\tA zonal shift helps your application recover immediately, for example, from a developer's bad code deployment or from an AWS \n \t\tinfrastructure failure in a single Availability Zone. You can start a zonal shift in Route 53 ARC only for managed\n \t\tresources in your account in an AWS Region. Supported AWS resources are automatically registered with Route 53 ARC.
\n \tZonal shifts are temporary. A zonal shift can be active for up to three days (72 hours).
\n \tWhen you start a zonal shift, you specify how long you want it to be active, which Amazon Route 53 Application Recovery Controller converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift, for example, if you're ready to restore traffic to the Availability Zone. Or you\n \t\tcan extend the zonal shift by updating the expiration so the zonal shift is active longer.
" + "smithy.api#documentation": "Lists information about zonal shifts in Amazon Route 53 Application Recovery Controller, including zonal shifts that you start yourself and zonal shifts that Route 53 ARC starts\n \t\ton your behalf for practice runs with zonal autoshift.
\nZonal shifts are temporary, including customer-started zonal shifts and the zonal autoshift practice run zonal shifts that\n \t\tRoute 53 ARC starts weekly, on your behalf. A zonal shift that a customer starts can be active for up to three days (72 hours). A\n \t\tpractice run zonal shift has a 30 minute duration.
" } }, "com.amazonaws.arczonalshift#ZonalShifts": { diff --git a/codegen/sdk-codegen/aws-models/billingconductor.json b/codegen/sdk-codegen/aws-models/billingconductor.json index 73f988e7d7a..bf1d3328c06 100644 --- a/codegen/sdk-codegen/aws-models/billingconductor.json +++ b/codegen/sdk-codegen/aws-models/billingconductor.json @@ -110,7 +110,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -153,7 +152,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -166,7 +166,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -180,7 +179,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -254,7 +252,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -289,7 +286,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -300,14 +296,16 @@ }, "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": [ @@ -321,14 +319,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -337,11 +333,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -352,14 +348,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -373,7 +371,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -393,7 +390,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -404,14 +400,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -422,9 +420,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -1826,6 +1826,12 @@ "smithy.api#documentation": "\n A CustomLineItemChargeDetails
that describes the charge details for a custom line item.\n
The Amazon Web Services account in which this custom line item will be applied to.
" + } } }, "traits": { @@ -2388,6 +2394,12 @@ "smithy.api#default": 0, "smithy.api#documentation": "The number of resources that are associated to the custom line item.
" } + }, + "AccountId": { + "target": "com.amazonaws.billingconductor#AccountId", + "traits": { + "smithy.api#documentation": "The Amazon Web Services account in which this custom line item will be applied to.
" + } } }, "traits": { @@ -2573,6 +2585,12 @@ "smithy.api#default": 0, "smithy.api#documentation": "\n The inclusive start time.\n
" } + }, + "AccountId": { + "target": "com.amazonaws.billingconductor#AccountId", + "traits": { + "smithy.api#documentation": "The Amazon Web Services account in which this custom line item will be applied to.
" + } } }, "traits": { @@ -3676,6 +3694,12 @@ "traits": { "smithy.api#documentation": "A list of custom line item ARNs to retrieve information.
" } + }, + "AccountIds": { + "target": "com.amazonaws.billingconductor#AccountIdList", + "traits": { + "smithy.api#documentation": "The Amazon Web Services accounts in which this custom line item will be applied to.
" + } } }, "traits": { @@ -6156,6 +6180,10 @@ { "value": "CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP", "name": "CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP" + }, + { + "value": "ILLEGAL_ACCOUNT_ID", + "name": "ILLEGAL_ACCOUNT_ID" } ] } diff --git a/codegen/sdk-codegen/aws-models/braket.json b/codegen/sdk-codegen/aws-models/braket.json index cf13835111a..52f6bc61426 100644 --- a/codegen/sdk-codegen/aws-models/braket.json +++ b/codegen/sdk-codegen/aws-models/braket.json @@ -34,6 +34,45 @@ "smithy.api#documentation": "Defines the Amazon Braket job to be created. Specifies the container image the job uses\n and the paths to the Python scripts used for entry and training.
" } }, + "com.amazonaws.braket#Association": { + "type": "structure", + "members": { + "arn": { + "target": "com.amazonaws.braket#BraketResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Braket resource arn.
", + "smithy.api#required": {} + } + }, + "type": { + "target": "com.amazonaws.braket#AssociationType", + "traits": { + "smithy.api#documentation": "The association type for the specified Amazon Braket resource arn.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The Amazon Braket resource and the association type.
" + } + }, + "com.amazonaws.braket#AssociationType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "RESERVATION_TIME_WINDOW_ARN", + "name": "RESERVATION_TIME_WINDOW_ARN" + } + ] + } + }, + "com.amazonaws.braket#Associations": { + "type": "list", + "member": { + "target": "com.amazonaws.braket#Association" + } + }, "com.amazonaws.braket#Braket": { "type": "service", "version": "2019-09-01", @@ -131,7 +170,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -174,7 +212,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -187,7 +226,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -201,7 +239,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -224,7 +261,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -259,7 +295,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -270,14 +305,16 @@ }, "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": [ @@ -291,14 +328,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -307,11 +342,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -322,14 +357,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -343,7 +380,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -363,7 +399,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -374,14 +409,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -392,9 +429,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -758,6 +797,12 @@ } } }, + "com.amazonaws.braket#BraketResourceArn": { + "type": "string", + "traits": { + "smithy.api#pattern": "^arn:aws[a-z\\-]*:braket:[a-z0-9\\-]*:[0-9]{12}:.*$" + } + }, "com.amazonaws.braket#CancelJob": { "type": "operation", "input": { @@ -1093,6 +1138,16 @@ "traits": { "smithy.api#documentation": "A tag object that consists of a key and an optional value, used to manage metadata for\n Amazon Braket resources.
" } + }, + "associations": { + "target": "com.amazonaws.braket#Associations", + "traits": { + "smithy.api#documentation": "The list of Amazon Braket resources associated with the hybrid job.
", + "smithy.api#length": { + "min": 0, + "max": 1 + } + } } } }, @@ -1226,6 +1281,16 @@ "traits": { "smithy.api#documentation": "The token for an Amazon Braket job that associates it with the quantum task.
" } + }, + "associations": { + "target": "com.amazonaws.braket#Associations", + "traits": { + "smithy.api#documentation": "The list of Amazon Braket resources associated with the quantum task.
", + "smithy.api#length": { + "min": 0, + "max": 1 + } + } } } }, @@ -1739,6 +1804,12 @@ "traits": { "smithy.api#documentation": "Queue information for the requested job. Only returned if \n QueueInfo
is specified in the additionalAttributeNames\"
\n field in the GetJob
API request.
The list of Amazon Braket resources associated with the hybrid job.
" + } } } }, @@ -1782,7 +1853,7 @@ "quantumTaskArn": { "target": "com.amazonaws.braket#QuantumTaskArn", "traits": { - "smithy.api#documentation": "the ARN of the task to retrieve.
", + "smithy.api#documentation": "The ARN of the task to retrieve.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -1886,6 +1957,12 @@ "traits": { "smithy.api#documentation": "Queue information for the requested quantum task. Only returned if \n QueueInfo
is specified in the additionalAttributeNames\"
\n field in the GetQuantumTask
API request.
The list of Amazon Braket resources associated with the quantum task.
" + } } } }, @@ -1945,7 +2022,8 @@ "smithy.api#length": { "min": 1, "max": 2500 - } + }, + "smithy.api#pattern": "^.*$" } }, "traits": { @@ -2243,7 +2321,7 @@ "timeOfEvent": { "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "TThe type of event that occurred related to the Amazon Braket job.
", + "smithy.api#documentation": "The type of event that occurred related to the Amazon Braket job.
", "smithy.api#timestampFormat": "date-time" } }, diff --git a/codegen/sdk-codegen/aws-models/cloud9.json b/codegen/sdk-codegen/aws-models/cloud9.json index 6b571be3c82..a12ddd7b6fc 100644 --- a/codegen/sdk-codegen/aws-models/cloud9.json +++ b/codegen/sdk-codegen/aws-models/cloud9.json @@ -1176,7 +1176,8 @@ "imageId": { "target": "com.amazonaws.cloud9#ImageId", "traits": { - "smithy.api#documentation": "The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.\n To choose an AMI for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM)\n path.
\nFrom December 04, 2023, you will be required to include the imageId
parameter\n for the CreateEnvironmentEC2
action. This change will be reflected across all\n direct methods of communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web Services\n CloudFormation. This change will only affect direct API consumers, and not Cloud9 console\n users.
From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image\n IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December\n 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux\n 2 as the AMI to create your environment as it is fully supported. This change will only affect\n direct API consumers, and not Cloud9 console users.
\nSince Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.
\n\n AMI aliases \n
\nAmazon Linux (default): amazonlinux-1-x86_64
\n
Amazon Linux 2: amazonlinux-2-x86_64
\n
Ubuntu 18.04: ubuntu-18.04-x86_64
\n
Ubuntu 22.04: ubuntu-22.04-x86_64
\n
\n SSM paths\n
\nAmazon Linux (default):\n resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64
\n
Amazon Linux 2:\n resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
\n
Ubuntu 18.04:\n resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
\n
Ubuntu 22.04:\n resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64
\n
The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.\n To choose an AMI for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM)\n path.
\nFrom December 04, 2023, you will be required to include the imageId
parameter\n for the CreateEnvironmentEC2
action. This change will be reflected across all\n direct methods of communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web Services\n CloudFormation. This change will only affect direct API consumers, and not Cloud9 console\n users.
From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image\n IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December\n 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux\n 2 as the AMI to create your environment as it is fully supported. This change will only affect\n direct API consumers, and not Cloud9 console users.
\nSince Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.
\n\n AMI aliases \n
\nAmazon Linux:\n amazonlinux-1-x86_64
\n
Amazon Linux 2: amazonlinux-2-x86_64
\n
Ubuntu 18.04: ubuntu-18.04-x86_64
\n
Ubuntu 22.04: ubuntu-22.04-x86_64
\n
\n SSM paths\n
\nAmazon Linux:\n resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64
\n
Amazon Linux 2:\n resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64
\n
Ubuntu 18.04:\n resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64
\n
Ubuntu 22.04:\n resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64
\n
A list of change request objects that are run in order. A change request object consists of changeType , s3Path, and a dbPath. \n A changeType can has the following values:
\nPUT – Adds or updates files in a database.
\nDELETE – Deletes files in a database.
\nAll the change requests require a mandatory dbPath attribute that\n defines the path within the database directory. The s3Path attribute\n defines the s3 source file path and is required for a PUT change type.
\nHere is an example\n of how you can use the change request object:
\n\n [\n { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/\", \"dbPath\":\"/2020.01.02/\"}, \n { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/sym\", \"dbPath\":\"/\"}, \n { \"changeType\": \"DELETE\", \"dbPath\": \"/2020.01.01/\"}\n ]
\n
In this example, the first request with PUT change type allows you to\n add files in the given s3Path under the 2020.01.02 partition of the\n database. The second request with PUT change type allows you to add a\n single sym file at database root location. The last request with\n DELETE change type allows you to delete the files under the\n 2020.01.01 partition of the database.
", + "smithy.api#documentation": "A list of change request objects that are run in order. A change request object consists of changeType
, s3Path
, and dbPath
. \n A changeType can has the following values:
PUT – Adds or updates files in a database.
\nDELETE – Deletes files in a database.
\nAll the change requests require a mandatory dbPath
attribute that defines the\n path within the database directory. All database paths must start with a leading / and end\n with a trailing /. The s3Path
attribute defines the s3 source file path and is\n required for a PUT change type. The s3path
must end with a trailing / if it is\n a directory and must end without a trailing / if it is a file.
Here are few examples of how you can use the change request object:
\nThis request adds a single sym file at database root location.
\n\n { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/sym\",\n \"dbPath\":\"/\"}
\n
This request adds files in the given s3Path
under the 2020.01.02\n partition of the database.
\n { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/\",\n \"dbPath\":\"/2020.01.02/\"}
\n
This request adds files in the given s3Path
under the\n taq table partition of the database.
\n [ { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\",\n \"dbPath\":\"/2020.01.02/taq/\"}]
\n
This request deletes the 2020.01.02 partition of the database.
\n\n [{ \"changeType\": \"DELETE\", \"dbPath\": \"/2020.01.02/\"} ]
\n
The DELETE request allows you to delete the existing files under the\n 2020.01.02 partition of the database, and the PUT request adds a\n new taq table under it.
\n\n [ {\"changeType\": \"DELETE\", \"dbPath\":\"/2020.01.02/\"}, {\"changeType\": \"PUT\",\n \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\",\n \"dbPath\":\"/2020.01.02/taq/\"}]
\n
Specifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nSpecifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nGP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only SINGLE
AZ mode.
Specifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nSpecifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nGP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only SINGLE
AZ mode.
Specifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nSpecifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nGP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only SINGLE
AZ mode.
Specifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nSpecifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nGP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only SINGLE
AZ mode.
\n The type of deployment that you want on a cluster.\n \n
\nROLLING – This options updates the cluster by stopping the exiting q process and starting a new q process with updated configuration.
\nFORCE – This option updates the cluster by immediately stopping all the running processes before starting up new ones with the updated configuration.
\n\n The type of deployment that you want on a cluster.\n \n
\nROLLING – This options updates the cluster by stopping the exiting q process and starting a new q process with updated configuration.
\nNO_RESTART – This option updates the cluster without stopping the running q process. It is only available for GP
type cluster. This option is quicker as it reduces the turn around time to update configuration on a cluster.
With this deployment mode, you cannot update the initializationScript
and commandLineArguments
parameters.
FORCE – This option updates the cluster by immediately stopping all the running processes before starting up new ones with the updated configuration.
\nSpecifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nSpecifies the type of KDB database that is being created. The following types are available:
\nHDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
\nRDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the savedownStorageConfiguration
parameter.
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
\nGP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only SINGLE
AZ mode.
Specifies a Q program that will be run at launch of a cluster. It is a relative path within\n .zip file that contains the custom code, which will be loaded on\n the cluster. It must include the file name itself. For example,\n somedir/init.q
.
Specifies a Q program that will be run at launch of a cluster. It is a relative path within\n .zip file that contains the custom code, which will be loaded on\n the cluster. It must include the file name itself. For example,\n somedir/init.q
.
You cannot update this parameter for a NO_RESTART
deployment.
Specifies the key-value pairs to make them available inside the cluster.
" + "smithy.api#documentation": "Specifies the key-value pairs to make them available inside the cluster.
\nYou cannot update this parameter for a NO_RESTART
deployment.
The name of the data quality analyzer.
" + } + }, + "Description": { + "target": "com.amazonaws.glue#DataQualityRuleResultDescription", + "traits": { + "smithy.api#documentation": "A description of the data quality analyzer.
" + } + }, + "EvaluationMessage": { + "target": "com.amazonaws.glue#DataQualityRuleResultDescription", + "traits": { + "smithy.api#documentation": "An evaluation message.
" + } + }, + "EvaluatedMetrics": { + "target": "com.amazonaws.glue#EvaluatedMetricsMap", + "traits": { + "smithy.api#documentation": "A map of metrics associated with the evaluation of the analyzer.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes the result of the evaluation of a data quality analyzer.
" + } + }, + "com.amazonaws.glue#DataQualityAnalyzerResults": { + "type": "list", + "member": { + "target": "com.amazonaws.glue#DataQualityAnalyzerResult" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2000 + } + } + }, "com.amazonaws.glue#DataQualityEvaluationRunAdditionalRunOptions": { "type": "structure", "members": { @@ -10579,6 +10623,80 @@ "smithy.api#documentation": "Additional run options you can specify for an evaluation run.
" } }, + "com.amazonaws.glue#DataQualityMetricValues": { + "type": "structure", + "members": { + "ActualValue": { + "target": "com.amazonaws.glue#NullableDouble", + "traits": { + "smithy.api#documentation": "The actual value of the data quality metric.
" + } + }, + "ExpectedValue": { + "target": "com.amazonaws.glue#NullableDouble", + "traits": { + "smithy.api#documentation": "The expected value of the data quality metric according to the analysis of historical data.
" + } + }, + "LowerLimit": { + "target": "com.amazonaws.glue#NullableDouble", + "traits": { + "smithy.api#documentation": "The lower limit of the data quality metric value according to the analysis of historical data.
" + } + }, + "UpperLimit": { + "target": "com.amazonaws.glue#NullableDouble", + "traits": { + "smithy.api#documentation": "The upper limit of the data quality metric value according to the analysis of historical data.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes the data quality metric value according to the analysis of historical data.
" + } + }, + "com.amazonaws.glue#DataQualityObservation": { + "type": "structure", + "members": { + "Description": { + "target": "com.amazonaws.glue#DataQualityObservationDescription", + "traits": { + "smithy.api#documentation": "A description of the data quality observation.
" + } + }, + "MetricBasedObservation": { + "target": "com.amazonaws.glue#MetricBasedObservation", + "traits": { + "smithy.api#documentation": "An object of type MetricBasedObservation
representing the observation that is based on evaluated data quality metrics.
Describes the observation generated after evaluating the rules and analyzers.
" + } + }, + "com.amazonaws.glue#DataQualityObservationDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" + } + }, + "com.amazonaws.glue#DataQualityObservations": { + "type": "list", + "member": { + "target": "com.amazonaws.glue#DataQualityObservation" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, "com.amazonaws.glue#DataQualityResult": { "type": "structure", "members": { @@ -10647,6 +10765,18 @@ "traits": { "smithy.api#documentation": "A list of DataQualityRuleResult
objects representing the results for each rule.
A list of DataQualityAnalyzerResult
objects representing the results for each analyzer.
A list of DataQualityObservation
objects representing the observations generated after evaluating the rules and analyzers.
A description of the data quality rule.
" } }, "EvaluationMessage": { - "target": "com.amazonaws.glue#DescriptionString", + "target": "com.amazonaws.glue#DataQualityRuleResultDescription", "traits": { "smithy.api#documentation": "An evaluation message.
" } @@ -10868,6 +10998,16 @@ "smithy.api#documentation": "Describes the result of the evaluation of a data quality rule.
" } }, + "com.amazonaws.glue#DataQualityRuleResultDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2048 + }, + "smithy.api#pattern": "^[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*$" + } + }, "com.amazonaws.glue#DataQualityRuleResultStatus": { "type": "enum", "members": { @@ -10898,7 +11038,7 @@ }, "traits": { "smithy.api#length": { - "min": 1, + "min": 0, "max": 2000 } } @@ -15984,6 +16124,18 @@ "traits": { "smithy.api#documentation": "A list of DataQualityRuleResult
objects representing the results for each rule.
A list of DataQualityAnalyzerResult
objects representing the results for each analyzer.
A list of DataQualityObservation
objects representing the observations generated after evaluating the rules and analyzers.
The name of the data quality metric used for generating the observation.
" + } + }, + "MetricValues": { + "target": "com.amazonaws.glue#DataQualityMetricValues", + "traits": { + "smithy.api#documentation": "An object of type DataQualityMetricValues
representing the analysis of the data quality metric value.
A list of new data quality rules generated as part of the observation based on the data quality metric value.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Describes the metric based observation generated based on evaluated data quality metrics.
" + } + }, "com.amazonaws.glue#MicrosoftSQLServerCatalogSource": { "type": "structure", "members": { @@ -25296,6 +25474,12 @@ "target": "com.amazonaws.glue#NameString" } }, + "com.amazonaws.glue#NewRules": { + "type": "list", + "member": { + "target": "com.amazonaws.glue#NameString" + } + }, "com.amazonaws.glue#NoScheduleException": { "type": "structure", "members": { diff --git a/codegen/sdk-codegen/aws-models/marketplace-agreement.json b/codegen/sdk-codegen/aws-models/marketplace-agreement.json new file mode 100644 index 00000000000..215a90dd96a --- /dev/null +++ b/codegen/sdk-codegen/aws-models/marketplace-agreement.json @@ -0,0 +1,2328 @@ +{ + "smithy": "2.0", + "shapes": { + "com.amazonaws.marketplaceagreement#AWSAccountId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32 + }, + "smithy.api#pattern": "^[0-9]+$" + } + }, + "com.amazonaws.marketplaceagreement#AWSMPCommerceService_v20200301": { + "type": "service", + "version": "2020-03-01", + "operations": [ + { + "target": "com.amazonaws.marketplaceagreement#DescribeAgreement" + }, + { + "target": "com.amazonaws.marketplaceagreement#GetAgreementTerms" + }, + { + "target": "com.amazonaws.marketplaceagreement#SearchAgreements" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Marketplace Agreement", + "endpointPrefix": "agreement-marketplace" + }, + "aws.auth#sigv4": { + "name": "aws-marketplace" + }, + "aws.protocols#awsJson1_0": {}, + "smithy.api#documentation": "AWS Marketplace is a curated digital catalog that customers can use to find, buy, deploy, and manage third-party software, data, and services to build solutions and run their businesses. The AWS Marketplace Agreement Service provides an API interface that helps AWS Marketplace sellers manage their product-related agreements, including listing, searching, and filtering agreements.
\nTo manage agreements in AWS Marketplace, you must ensure that your AWS Identity and\n Access Management (IAM) policies and roles are set up. The user must have the required\n policies/permissions that allow them to carry out the actions in AWS:
\n\n DescribeAgreement
– Grants permission to users to obtain detailed\n meta data about any of their agreements.
\n GetAgreementTerms
– Grants permission to users to obtain details\n about the terms of an agreement.
\n SearchAgreements
– Grants permission to users to search through all\n their agreements.
Defines the list of text agreements proposed to the acceptors. An example is the end user license agreement (EULA).
" + } + }, + "supportTerm": { + "target": "com.amazonaws.marketplaceagreement#SupportTerm", + "traits": { + "smithy.api#documentation": "Defines the customer support available for the acceptors when they purchase the software.
" + } + }, + "renewalTerm": { + "target": "com.amazonaws.marketplaceagreement#RenewalTerm", + "traits": { + "smithy.api#documentation": "Defines that on graceful expiration of the agreement (when the agreement ends on its pre-defined end date), a new agreement will be created using the accepted terms on the existing agreement. In other words, the agreement will be renewed. Presence of RenewalTerm
in the offer document means that auto-renewal is allowed. Buyers will have the option to accept or decline auto-renewal at the offer acceptance/agreement creation. Buyers can also change this flag from True
to False
or False
to True
at anytime during the agreement's lifecycle.
Defines a usage-based pricing model (typically, pay-as-you-go pricing), where the customers are charged based on product usage.
" + } + }, + "configurableUpfrontPricingTerm": { + "target": "com.amazonaws.marketplaceagreement#ConfigurableUpfrontPricingTerm", + "traits": { + "smithy.api#documentation": "Defines a prepaid payment model that allows buyers to configure the entitlements they want to purchase and the duration.
" + } + }, + "byolPricingTerm": { + "target": "com.amazonaws.marketplaceagreement#ByolPricingTerm", + "traits": { + "smithy.api#documentation": "Enables you and your customers to move your existing agreements to AWS Marketplace. The customer won't be charged for product usage in AWS Marketplace because they already paid for the product outside of AWS Marketplace.
" + } + }, + "recurringPaymentTerm": { + "target": "com.amazonaws.marketplaceagreement#RecurringPaymentTerm", + "traits": { + "smithy.api#documentation": "Defines a pricing model where customers are charged a fixed recurring price at the end of each billing period.
" + } + }, + "validityTerm": { + "target": "com.amazonaws.marketplaceagreement#ValidityTerm", + "traits": { + "smithy.api#documentation": "Defines the conditions that will keep an agreement created from this offer valid.
" + } + }, + "paymentScheduleTerm": { + "target": "com.amazonaws.marketplaceagreement#PaymentScheduleTerm", + "traits": { + "smithy.api#documentation": "Defines an installment-based pricing model where customers are charged a fixed price on different dates during the agreement validity period. This is used most commonly for flexible payment schedule pricing.
" + } + }, + "freeTrialPricingTerm": { + "target": "com.amazonaws.marketplaceagreement#FreeTrialPricingTerm", + "traits": { + "smithy.api#documentation": "Defines a short-term free pricing model where the buyers aren’t charged anything within a specified limit.
" + } + }, + "fixedUpfrontPricingTerm": { + "target": "com.amazonaws.marketplaceagreement#FixedUpfrontPricingTerm", + "traits": { + "smithy.api#documentation": "Defines a pre-paid pricing model where the customers are charged a fixed upfront amount.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A subset of terms proposed by the proposer, which have been accepted by the acceptor as part of agreement creation.
" + } + }, + "com.amazonaws.marketplaceagreement#AcceptedTermList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#AcceptedTerm" + } + }, + "com.amazonaws.marketplaceagreement#Acceptor": { + "type": "structure", + "members": { + "accountId": { + "target": "com.amazonaws.marketplaceagreement#AWSAccountId", + "traits": { + "smithy.api#documentation": "The AWS account ID of the acceptor.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The details of the party accepting the agreement terms. This is commonly the buyer for\n PurchaseAgreement
.
The unique identifier for the error.
" + } + }, + "message": { + "target": "com.amazonaws.marketplaceagreement#ExceptionMessage" + } + }, + "traits": { + "smithy.api#documentation": "User does not have sufficient access to perform this action.
", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.marketplaceagreement#AgreementResourceType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z]+$" + } + }, + "com.amazonaws.marketplaceagreement#AgreementStatus": { + "type": "enum", + "members": { + "ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ACTIVE" + } + }, + "ARCHIVED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ARCHIVED" + } + }, + "CANCELLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CANCELLED" + } + }, + "EXPIRED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EXPIRED" + } + }, + "RENEWED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RENEWED" + } + }, + "REPLACED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REPLACED" + } + }, + "ROLLED_BACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ROLLED_BACK" + } + }, + "SUPERSEDED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUPERSEDED" + } + }, + "TERMINATED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TERMINATED" + } + } + } + }, + "com.amazonaws.marketplaceagreement#AgreementType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Za-z]+$" + } + }, + "com.amazonaws.marketplaceagreement#AgreementViewSummary": { + "type": "structure", + "members": { + "agreementId": { + "target": "com.amazonaws.marketplaceagreement#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier of the agreement.
" + } + }, + "acceptanceTime": { + "target": "com.amazonaws.marketplaceagreement#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time that the agreement was accepted.
" + } + }, + "startTime": { + "target": "com.amazonaws.marketplaceagreement#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the agreement starts.
" + } + }, + "endTime": { + "target": "com.amazonaws.marketplaceagreement#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the agreement ends. The field is null
for\n pay-as-you-go agreements, which don’t have end dates.
The type of agreement. Values are PurchaseAgreement
or\n VendorInsightsAgreement
.
Details of the party accepting the agreement terms. This is commonly the buyer for\n PurchaseAgreement.
\n
Details of the party proposing the agreement terms, most commonly the seller for\n PurchaseAgreement
.
A summary of the proposal
" + } + }, + "status": { + "target": "com.amazonaws.marketplaceagreement#AgreementStatus", + "traits": { + "smithy.api#documentation": "The current status of the agreement.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A summary of the agreement, including top-level attributes (for example, the agreement\n ID, version, proposer, and acceptor).
" + } + }, + "com.amazonaws.marketplaceagreement#AgreementViewSummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#AgreementViewSummary" + } + }, + "com.amazonaws.marketplaceagreement#Boolean": { + "type": "boolean" + }, + "com.amazonaws.marketplaceagreement#BoundedString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4096 + }, + "smithy.api#pattern": "^(.)+$" + } + }, + "com.amazonaws.marketplaceagreement#ByolPricingTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Type of the term being updated.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Enables you and your customers to move your existing agreements to AWS Marketplace. The\n customer won't be charged for product usage in AWS Marketplace because they already paid\n for the product outside of AWS Marketplace.
" + } + }, + "com.amazonaws.marketplaceagreement#Catalog": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z]+$" + } + }, + "com.amazonaws.marketplaceagreement#ConfigurableUpfrontPricingTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Category of selector.
" + } + }, + "currencyCode": { + "target": "com.amazonaws.marketplaceagreement#CurrencyCode", + "traits": { + "smithy.api#documentation": "Defines the currency for the prices mentioned in the term.
" + } + }, + "rateCards": { + "target": "com.amazonaws.marketplaceagreement#ConfigurableUpfrontRateCardList", + "traits": { + "smithy.api#documentation": "A rate card defines the per unit rates for product dimensions.
" + } + }, + "configuration": { + "target": "com.amazonaws.marketplaceagreement#ConfigurableUpfrontPricingTermConfiguration", + "traits": { + "smithy.api#documentation": "Additional parameters specified by the acceptor while accepting the term.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines a prepaid payment model that allows buyers to configure the entitlements they\n want to purchase and the duration.
" + } + }, + "com.amazonaws.marketplaceagreement#ConfigurableUpfrontPricingTermConfiguration": { + "type": "structure", + "members": { + "selectorValue": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Defines the length of time for which the particular pricing/dimension is being purchased\n by the acceptor.
", + "smithy.api#required": {} + } + }, + "dimensions": { + "target": "com.amazonaws.marketplaceagreement#DimensionList", + "traits": { + "smithy.api#documentation": "Defines the dimensions that the acceptor has purchased from the overall set of\n dimensions presented in the rate card.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Defines a prepaid payment model that allows buyers to configure the entitlements they\n want to purchase and the duration.
" + } + }, + "com.amazonaws.marketplaceagreement#ConfigurableUpfrontRateCardItem": { + "type": "structure", + "members": { + "selector": { + "target": "com.amazonaws.marketplaceagreement#Selector", + "traits": { + "smithy.api#documentation": "Differentiates between the mutually exclusive rate cards in the same pricing term to be selected by the buyer.
" + } + }, + "constraints": { + "target": "com.amazonaws.marketplaceagreement#Constraints", + "traits": { + "smithy.api#documentation": "Defines limits on how the term can be configured by acceptors.
" + } + }, + "rateCard": { + "target": "com.amazonaws.marketplaceagreement#RateCardList", + "traits": { + "smithy.api#documentation": "Defines the per unit rates for product dimensions.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Within the prepaid payment model defined under ConfigurableUpfrontPricingTerm
, the RateCardItem
defines all the various rate cards (including pricing and dimensions) that have been proposed.
Determines if buyers are allowed to select multiple dimensions in the rate card. The\n possible values are Allowed
and Disallowed
. The default value is\n Allowed
.
Determines if acceptors are allowed to configure quantity for each dimension in rate\n card. The possible values are Allowed
and Disallowed
. The default\n value is Allowed
.
Defines limits on how the term can be configured by acceptors.
" + } + }, + "com.amazonaws.marketplaceagreement#CurrencyCode": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 3 + }, + "smithy.api#pattern": "^[A-Z]+$" + } + }, + "com.amazonaws.marketplaceagreement#DescribeAgreement": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplaceagreement#DescribeAgreementInput" + }, + "output": { + "target": "com.amazonaws.marketplaceagreement#DescribeAgreementOutput" + }, + "errors": [ + { + "target": "com.amazonaws.marketplaceagreement#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplaceagreement#InternalServerException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Provides details about an agreement, such as the proposer, acceptor, start date, and end date.
" + } + }, + "com.amazonaws.marketplaceagreement#DescribeAgreementInput": { + "type": "structure", + "members": { + "agreementId": { + "target": "com.amazonaws.marketplaceagreement#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier of the agreement.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplaceagreement#DescribeAgreementOutput": { + "type": "structure", + "members": { + "agreementId": { + "target": "com.amazonaws.marketplaceagreement#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier of the agreement.
" + } + }, + "acceptor": { + "target": "com.amazonaws.marketplaceagreement#Acceptor", + "traits": { + "smithy.api#documentation": "The details of the party accepting the agreement terms. This is commonly the buyer for\n PurchaseAgreement
.
The details of the party proposing the agreement terms. This is commonly the seller for\n PurchaseAgreement
.
The date and time when the agreement starts.
" + } + }, + "endTime": { + "target": "com.amazonaws.marketplaceagreement#Timestamp", + "traits": { + "smithy.api#documentation": "The date and time when the agreement ends. The field is null
for\n pay-as-you-go agreements, which don’t have end dates.
The date and time the offer was accepted or the agreement was created.
\n\n AcceptanceTime
and StartTime
can differ for future dated\n agreements (FDAs).
The type of agreement. Values are PurchaseAgreement
or\n VendorInsightsAgreement
.
The estimated cost of the agreement.
" + } + }, + "proposalSummary": { + "target": "com.amazonaws.marketplaceagreement#ProposalSummary", + "traits": { + "smithy.api#documentation": "A summary of the proposal received from the proposer.
" + } + }, + "status": { + "target": "com.amazonaws.marketplaceagreement#AgreementStatus", + "traits": { + "smithy.api#documentation": "The current status of the agreement.
\nStatuses include:
\n\n ACTIVE
– The terms of the agreement are active.
\n ARCHIVED
– The agreement ended without a specified reason.
\n CANCELLED
– The acceptor ended the agreement before the defined end\n date.
\n EXPIRED
– The agreement ended on the defined end date.
\n RENEWED
– The agreement was renewed into a new agreement (for\n example, an auto-renewal).
\n REPLACED
– The agreement was replaced using an agreement replacement\n offer.
\n ROLLED_BACK
(Only applicable to inactive agreement revisions) – The\n agreement revision has been rolled back because of an error. An earlier revision is\n now active.
\n SUPERCEDED
(Only applicable to inactive agreement revisions) – The\n agreement revision is no longer active and another agreement revision is now\n active.
\n TERMINATED
– The agreement ended before the defined end date because\n of an AWS termination (for example, a payment failure).
The name of key value of the dimension.
", + "smithy.api#required": {} + } + }, + "dimensionValue": { + "target": "com.amazonaws.marketplaceagreement#ZeroValueInteger", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "The number of units of the dimension the acceptor has purchased.
\nFor Agreements with ConfigurableUpfrontPricingTerm
, the\n RateCard
section will define the prices and dimensions defined by the\n seller (proposer), whereas the Configuration
section will define the actual\n dimensions, prices, and units the buyer has chosen to accept.
Defines the dimensions that the acceptor has purchased from the overall set of\n dimensions presented in the rate card.
" + } + }, + "com.amazonaws.marketplaceagreement#DimensionList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#Dimension" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.marketplaceagreement#DocumentItem": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Category of the document. Document types include:
\n\n CustomEula
– A custom EULA provided by you as seller. A URL for a\n EULA stored in an accessible Amazon S3 bucket is required for this document\n type.
\n CustomDsa
– A custom Data Subscription Agreement (DSA) provided by\n you as seller. A URL for a DSA stored in an accessible Amazon S3 bucket is required\n for this document type.
\n StandardEula
– The Standard Contract for AWS Marketplace (SCMP). For\n more information about SCMP, see the AWS Marketplace Seller Guide. You don’t provide\n a URL for this type because it’s managed by AWS Marketplace.
\n StandardDsa
– DSA for AWS Marketplace. For more information about the\n DSA, see the AWS Data Exchange User Guide. You don’t provide a URL for this type\n because it’s managed by AWS Marketplace.
A URL to the legal document for buyers to read. Required when Type
is CustomEula
.
Version of standard contracts provided by AWS Marketplace. Required when Type is StandardEula
or StandardDsa
.
Includes the list of references to legal resources proposed by the proposer to the acceptor. Each DocumentItem
refers to an individual reference.
Defines the currency code for the charge.
" + } + }, + "agreementValue": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "The total known amount customer has to pay across the lifecycle of the agreement.
\nThis is the total contract value if accepted terms contain\n ConfigurableUpfrontPricingTerm
or FixedUpfrontPricingTerm
.\n In the case of pure contract pricing, this will be the total value of the contract. In\n the case of contracts with consumption pricing, this will only include the committed\n value and not include any overages that occur.
If the accepted terms contain PaymentScheduleTerm
, it will be the total\n payment schedule amount. This occurs when flexible payment schedule is used, and is the\n sum of all invoice charges in the payment schedule.
In case a customer has amended an agreement, by purchasing more units of any\n dimension, this will include both the original cost as well as the added cost incurred\n due to addition of new units.
\nThis is 0
if the accepted terms contain\n UsageBasedPricingTerm
without\n ConfigurableUpfrontPricingTerm
or RecurringPaymentTerm
.\n This occurs for usage-based pricing (such as SaaS metered or AMI/container hourly or\n monthly), because the exact usage is not known upfront.
Estimated cost of the agreement.
" + } + }, + "com.amazonaws.marketplaceagreement#ExceptionMessage": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1024 + } + } + }, + "com.amazonaws.marketplaceagreement#Filter": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.marketplaceagreement#FilterName", + "traits": { + "smithy.api#documentation": "The name of the filter.
" + } + }, + "values": { + "target": "com.amazonaws.marketplaceagreement#FilterValueList", + "traits": { + "smithy.api#documentation": "The filter value.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The filter name and value pair that is used to return a more specific list of results.\n Filters can be used to match a set of resources by various criteria, such as\n offerId
or productId
.
Category of the term being updated.
" + } + }, + "currencyCode": { + "target": "com.amazonaws.marketplaceagreement#CurrencyCode", + "traits": { + "smithy.api#documentation": "Defines the currency for the prices mentioned in this term.
" + } + }, + "duration": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Contract duration for the terms.
" + } + }, + "price": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Fixed amount to be charged to the customer when this term is accepted.
" + } + }, + "grants": { + "target": "com.amazonaws.marketplaceagreement#GrantList", + "traits": { + "smithy.api#documentation": "Entitlements granted to the acceptor of fixed upfront as part of agreement\n execution.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines a prepaid pricing model where the customers are charged a fixed upfront\n amount.
" + } + }, + "com.amazonaws.marketplaceagreement#FreeTrialPricingTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Category of the term.
" + } + }, + "duration": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Duration of the free trial period (5–31 days).
" + } + }, + "grants": { + "target": "com.amazonaws.marketplaceagreement#GrantList", + "traits": { + "smithy.api#documentation": "Entitlements granted to the acceptor of a free trial as part of an agreement\n execution.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines a short-term free pricing model where the buyers aren’t charged anything within\n a specified limit.
" + } + }, + "com.amazonaws.marketplaceagreement#GetAgreementTerms": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplaceagreement#GetAgreementTermsInput" + }, + "output": { + "target": "com.amazonaws.marketplaceagreement#GetAgreementTermsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.marketplaceagreement#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplaceagreement#InternalServerException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Obtains details about the terms in an agreement that you participated in as proposer or\n acceptor.
\nThe details include:
\n\n TermType
– The type of term, such as LegalTerm
,\n RenewalTerm
, or ConfigurableUpfrontPricingTerm
.
\n TermID
– The ID of the particular term, which is common between offer\n and agreement.
\n TermPayload
– The key information contained in the term, such as the\n EULA for LegalTerm
or pricing and dimensions for various pricing terms,\n such as ConfigurableUpfrontPricingTerm
or\n UsageBasedPricingTerm
.
\n Configuration
– The buyer/acceptor's selection at the time of\n agreement creation, such as the number of units purchased for a dimension or setting\n the EnableAutoRenew
flag.
The unique identifier of the agreement.
", + "smithy.api#required": {} + } + }, + "maxResults": { + "target": "com.amazonaws.marketplaceagreement#MaxResults", + "traits": { + "smithy.api#documentation": "The maximum number of agreements to return in the response.
" + } + }, + "nextToken": { + "target": "com.amazonaws.marketplaceagreement#NextToken", + "traits": { + "smithy.api#documentation": "A token to specify where to start pagination
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplaceagreement#GetAgreementTermsOutput": { + "type": "structure", + "members": { + "acceptedTerms": { + "target": "com.amazonaws.marketplaceagreement#AcceptedTermList", + "traits": { + "smithy.api#documentation": "A subset of terms proposed by the proposer that have been accepted by the acceptor as\n part of the agreement creation.
" + } + }, + "nextToken": { + "target": "com.amazonaws.marketplaceagreement#NextToken", + "traits": { + "smithy.api#documentation": "A token to specify where to start pagination
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplaceagreement#GrantItem": { + "type": "structure", + "members": { + "dimensionKey": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Unique dimension key defined in the product document. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace.
" + } + }, + "maxQuantity": { + "target": "com.amazonaws.marketplaceagreement#PositiveIntegerWithDefaultValueOne", + "traits": { + "smithy.api#default": 1, + "smithy.api#documentation": "Maximum amount of capacity that the buyer can be entitled to the given dimension of the product. If MaxQuantity
is not provided, the buyer will be able to use an unlimited amount of the given dimension.
Entitlements granted to the acceptor of fixed upfront as part of agreement execution.
" + } + }, + "com.amazonaws.marketplaceagreement#GrantList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#GrantItem" + } + }, + "com.amazonaws.marketplaceagreement#InternalServerException": { + "type": "structure", + "members": { + "requestId": { + "target": "com.amazonaws.marketplaceagreement#RequestId", + "traits": { + "smithy.api#documentation": "The unique identifier for the error.
" + } + }, + "message": { + "target": "com.amazonaws.marketplaceagreement#ExceptionMessage" + } + }, + "traits": { + "smithy.api#documentation": "Unexpected error during processing of request.
", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.marketplaceagreement#LegalTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Category of the term being updated.
" + } + }, + "documents": { + "target": "com.amazonaws.marketplaceagreement#DocumentList", + "traits": { + "smithy.api#documentation": "List of references to legal resources proposed to the buyers. An example is the\n EULA.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines the list of text agreements proposed to the acceptors. An example is the end\n user license agreement (EULA).
" + } + }, + "com.amazonaws.marketplaceagreement#MaxResults": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.marketplaceagreement#NextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 8192 + }, + "smithy.api#pattern": "^[a-zA-Z0-9+/=]+$" + } + }, + "com.amazonaws.marketplaceagreement#OfferId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^\\S{1,64}$" + } + }, + "com.amazonaws.marketplaceagreement#PaymentScheduleTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Type of the term.
" + } + }, + "currencyCode": { + "target": "com.amazonaws.marketplaceagreement#CurrencyCode", + "traits": { + "smithy.api#documentation": "Defines the currency for the prices mentioned in the term.
" + } + }, + "schedule": { + "target": "com.amazonaws.marketplaceagreement#ScheduleList", + "traits": { + "smithy.api#documentation": "List of the payment schedule where each element defines one installment of payment. It\n contains the information necessary for calculating the price.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines an installment-based pricing model where customers are charged a fixed price on\n different dates during the agreement validity period. This is used most commonly for\n flexible payment schedule pricing.
" + } + }, + "com.amazonaws.marketplaceagreement#PositiveIntegerWithDefaultValueOne": { + "type": "integer", + "traits": { + "smithy.api#default": 1, + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.marketplaceagreement#ProposalSummary": { + "type": "structure", + "members": { + "resources": { + "target": "com.amazonaws.marketplaceagreement#Resources", + "traits": { + "smithy.api#documentation": "The list of resources involved in the agreement.
" + } + }, + "offerId": { + "target": "com.amazonaws.marketplaceagreement#OfferId", + "traits": { + "smithy.api#documentation": "The unique identifier of the offer in AWS Marketplace.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A summary of the proposal received from the proposer.
" + } + }, + "com.amazonaws.marketplaceagreement#Proposer": { + "type": "structure", + "members": { + "accountId": { + "target": "com.amazonaws.marketplaceagreement#AWSAccountId", + "traits": { + "smithy.api#documentation": "The AWS account ID of the proposer.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Details of the party proposing the agreement terms,. This is commonly the seller for\n PurchaseAgreement
.
Dimension for which the given entitlement applies. Dimensions represent categories of capacity in a product and are specified when the product is listed in AWS Marketplace.
" + } + }, + "price": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Per unit price for the product dimension that’s used for calculating the amount to be charged.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines the per unit rates for each individual product dimension.
" + } + }, + "com.amazonaws.marketplaceagreement#RateCardList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#RateCardItem" + } + }, + "com.amazonaws.marketplaceagreement#RecurringPaymentTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Type of the term being updated.
" + } + }, + "currencyCode": { + "target": "com.amazonaws.marketplaceagreement#CurrencyCode", + "traits": { + "smithy.api#documentation": "Defines the currency for the prices mentioned in this term.
" + } + }, + "billingPeriod": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Defines the recurrence at which buyers are charged.
" + } + }, + "price": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Amount charged to the buyer every billing period.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines a pricing model where customers are charged a fixed recurring price at the end\n of each billing period.
" + } + }, + "com.amazonaws.marketplaceagreement#RenewalTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Category of the term being updated.
" + } + }, + "configuration": { + "target": "com.amazonaws.marketplaceagreement#RenewalTermConfiguration", + "traits": { + "smithy.api#documentation": "Additional parameters specified by the acceptor while accepting the term.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines that on graceful expiration of the agreement (when the agreement ends on its\n pre-defined end date), a new agreement will be created using the accepted terms on the\n existing agreement. In other words, the agreement will be renewed. The presence of\n RenewalTerm
in the offer document means that auto-renewal is allowed.\n Buyers will have the option to accept or decline auto-renewal at the offer\n acceptance/agreement creation. Buyers can also change this flag from True
to\n False
or False
to True
at anytime during the\n agreement's lifecycle.
Defines whether the acceptor has chosen to auto-renew the agreement at the end of its\n lifecycle. Can be set to True
or False
.
Additional parameters specified by the acceptor while accepting the term.
" + } + }, + "com.amazonaws.marketplaceagreement#RequestId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[A-Za-z0-9-]+$" + } + }, + "com.amazonaws.marketplaceagreement#Resource": { + "type": "structure", + "members": { + "id": { + "target": "com.amazonaws.marketplaceagreement#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier of the resource.
\nWe mention the term resource, which is most commonly a product, so a\n resourceId
is also a productId
.
Type of the resource, which is the product. Values include SaaSProduct
or\n AmiProduct
.
The list of resources involved in the agreement.
" + } + }, + "com.amazonaws.marketplaceagreement#ResourceId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Za-z0-9_/-]+$" + } + }, + "com.amazonaws.marketplaceagreement#ResourceNotFoundException": { + "type": "structure", + "members": { + "requestId": { + "target": "com.amazonaws.marketplaceagreement#RequestId", + "traits": { + "smithy.api#documentation": "The unique identifier for the error.
" + } + }, + "message": { + "target": "com.amazonaws.marketplaceagreement#ExceptionMessage" + }, + "resourceId": { + "target": "com.amazonaws.marketplaceagreement#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier for the resource.
" + } + }, + "resourceType": { + "target": "com.amazonaws.marketplaceagreement#ResourceType", + "traits": { + "smithy.api#documentation": "The type of resource.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Request references a resource which does not exist.
", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.marketplaceagreement#ResourceType": { + "type": "enum", + "members": { + "AGREEMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Agreement" + } + } + } + }, + "com.amazonaws.marketplaceagreement#Resources": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#Resource" + } + }, + "com.amazonaws.marketplaceagreement#ScheduleItem": { + "type": "structure", + "members": { + "chargeDate": { + "target": "com.amazonaws.marketplaceagreement#Timestamp", + "traits": { + "smithy.api#documentation": "The date that the customer would pay the price defined in this payment schedule term. Invoices are generated on the date provided.
" + } + }, + "chargeAmount": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "The price that the customer would pay on the scheduled date (chargeDate).
" + } + } + }, + "traits": { + "smithy.api#documentation": "An individual installment of the payment that includes the date and amount of the charge.
" + } + }, + "com.amazonaws.marketplaceagreement#ScheduleList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#ScheduleItem" + } + }, + "com.amazonaws.marketplaceagreement#SearchAgreements": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplaceagreement#SearchAgreementsInput" + }, + "output": { + "target": "com.amazonaws.marketplaceagreement#SearchAgreementsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.marketplaceagreement#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplaceagreement#InternalServerException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplaceagreement#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Searches across all agreements that a proposer or an acceptor has in AWS Marketplace. The search returns a list of agreements with basic agreement information.
\nThe following filter combinations are supported:
\n\n PartyType
as Proposer
+ AgreementType
+\n ResourceIdentifier
\n
\n PartyType
as Proposer
+ AgreementType
+\n OfferId
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
\n
\n PartyType
as Proposer
+ AgreementType
+\n Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n ResourceIdentifier
+ Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n OfferId
+ Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
+ Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n ResourceType
+ Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
+ ResourceType
+\n Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
+ OfferId
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
+ OfferId
+ Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
+ ResourceIdentifier
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
+ ResourceIdentifier
+\n Status
\n
\n PartyType
as Proposer
+ AgreementType
+\n AcceptorAccountId
+ ResourceType
\n
The catalog in which the agreement was created.
" + } + }, + "filters": { + "target": "com.amazonaws.marketplaceagreement#FilterList", + "traits": { + "smithy.api#documentation": "The filter name and value pair used to return a specific list of results.
\nThe following filters are supported:
\n\n ResourceIdentifier
– The unique identifier of the resource.
\n ResourceType
– Type of the resource, which is the product\n (AmiProduct
, ContainerProduct
, or\n SaaSProduct
).
\n PartyType
– The party type (either Acceptor
or\n Proposer
) of the caller. For agreements where the caller is the\n proposer, use the Proposer
filter. For agreements where the caller is\n the acceptor, use the Acceptor
filter.
\n AcceptorAccountId
– The AWS account ID of the party accepting the\n agreement terms.
\n OfferId
– The unique identifier of the offer in which the terms are\n registered in the agreement token.
\n Status
– The current status of the agreement. Values include\n ACTIVE
, ARCHIVED
, CANCELLED
,\n EXPIRED
, RENEWED
, REPLACED
, and\n TERMINATED
.
\n BeforeEndTime
– A date used to filter agreements with a date before\n the endTime
of an agreement.
\n AfterEndTime
– A date used to filter agreements with a date after the\n endTime
of an agreement.
\n AgreementType
– The type of agreement. Values include\n PurchaseAgreement
or VendorInsightsAgreement
.
An object that contains the SortBy
and SortOrder
\n attributes.
The maximum number of agreements to return in the response.
" + } + }, + "nextToken": { + "target": "com.amazonaws.marketplaceagreement#NextToken", + "traits": { + "smithy.api#documentation": "A token to specify where to start pagination.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplaceagreement#SearchAgreementsOutput": { + "type": "structure", + "members": { + "agreementViewSummaries": { + "target": "com.amazonaws.marketplaceagreement#AgreementViewSummaryList", + "traits": { + "smithy.api#documentation": "A summary of the agreement, including top-level attributes (for example, the agreement\n ID, version, proposer, and acceptor).
" + } + }, + "nextToken": { + "target": "com.amazonaws.marketplaceagreement#NextToken", + "traits": { + "smithy.api#documentation": "The token used for pagination. The field is null
if there are no more\n results.
Category of selector.
" + } + }, + "value": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Contract duration. This field supports the ISO 8601 format.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Differentiates between the mutually exclusive rate cards in the same pricing term to be\n selected by the buyer.
" + } + }, + "com.amazonaws.marketplaceagreement#Sort": { + "type": "structure", + "members": { + "sortBy": { + "target": "com.amazonaws.marketplaceagreement#SortBy", + "traits": { + "smithy.api#documentation": "The attribute on which the data is grouped, which can be by StartTime
and\n EndTime
. The default value is EndTime
.
The sorting order, which can be ASCENDING
or DESCENDING
. The\n default value is DESCENDING
.
An object that contains the SortBy
and SortOrder
\n attributes.
Category of the term being updated.
" + } + }, + "refundPolicy": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Free-text field about the refund policy description that will be shown to customers as\n is on the website and console.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines the customer support available for the acceptors when they purchase the\n software.
" + } + }, + "com.amazonaws.marketplaceagreement#ThrottlingException": { + "type": "structure", + "members": { + "requestId": { + "target": "com.amazonaws.marketplaceagreement#RequestId", + "traits": { + "smithy.api#documentation": "The unique identifier for the error.
" + } + }, + "message": { + "target": "com.amazonaws.marketplaceagreement#ExceptionMessage" + } + }, + "traits": { + "smithy.api#documentation": "Request was denied due to request throttling.
", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.marketplaceagreement#Timestamp": { + "type": "timestamp" + }, + "com.amazonaws.marketplaceagreement#UnversionedTermType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4096 + }, + "smithy.api#pattern": "^[A-Za-z]+$" + } + }, + "com.amazonaws.marketplaceagreement#UsageBasedPricingTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Category of the term.
" + } + }, + "currencyCode": { + "target": "com.amazonaws.marketplaceagreement#CurrencyCode", + "traits": { + "smithy.api#documentation": "Defines the currency for the prices mentioned in the term.
" + } + }, + "rateCards": { + "target": "com.amazonaws.marketplaceagreement#UsageBasedRateCardList", + "traits": { + "smithy.api#documentation": "List of rate cards.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Defines a usage-based pricing model (typically, pay-as-you-go pricing), where the\n customers are charged based on product usage.
" + } + }, + "com.amazonaws.marketplaceagreement#UsageBasedRateCardItem": { + "type": "structure", + "members": { + "rateCard": { + "target": "com.amazonaws.marketplaceagreement#RateCardList", + "traits": { + "smithy.api#documentation": "Defines the per unit rates for product dimensions.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Within the pay-as-you-go model defined under UsageBasedPricingTerm
, the UsageBasedRateCardItem
defines an individual rate for a product dimension.
The unique identifier associated with the error.
" + } + }, + "message": { + "target": "com.amazonaws.marketplaceagreement#ExceptionMessage" + }, + "reason": { + "target": "com.amazonaws.marketplaceagreement#ValidationExceptionReason", + "traits": { + "smithy.api#documentation": "The reason associated with the error.
" + } + }, + "fields": { + "target": "com.amazonaws.marketplaceagreement#ValidationExceptionFieldList", + "traits": { + "smithy.api#documentation": "The fields associated with the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The input fails to satisfy the constraints specified by the service.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.marketplaceagreement#ValidationExceptionField": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "The name of the field associated with the error.
", + "smithy.api#required": {} + } + }, + "message": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "See applicable actions.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The input fails to satisfy the constraints specified by the service.
" + } + }, + "com.amazonaws.marketplaceagreement#ValidationExceptionFieldList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplaceagreement#ValidationExceptionField" + } + }, + "com.amazonaws.marketplaceagreement#ValidationExceptionReason": { + "type": "enum", + "members": { + "INVALID_AGREEMENT_ID": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_AGREEMENT_ID" + } + }, + "MISSING_AGREEMENT_ID": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MISSING_AGREEMENT_ID" + } + }, + "INVALID_CATALOG": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_CATALOG" + } + }, + "INVALID_FILTER_NAME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_FILTER_NAME" + } + }, + "INVALID_FILTER_VALUES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_FILTER_VALUES" + } + }, + "INVALID_SORT_BY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_SORT_BY" + } + }, + "INVALID_SORT_ORDER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_SORT_ORDER" + } + }, + "INVALID_NEXT_TOKEN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_NEXT_TOKEN" + } + }, + "INVALID_MAX_RESULTS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_MAX_RESULTS" + } + }, + "UNSUPPORTED_FILTERS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "UNSUPPORTED_FILTERS" + } + }, + "OTHER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OTHER" + } + } + } + }, + "com.amazonaws.marketplaceagreement#ValidityTerm": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.marketplaceagreement#UnversionedTermType", + "traits": { + "smithy.api#documentation": "Category of the term being updated.
" + } + }, + "agreementDuration": { + "target": "com.amazonaws.marketplaceagreement#BoundedString", + "traits": { + "smithy.api#documentation": "Defines the duration that the agreement remains active. If\n AgreementStartDate
isn’t provided, the agreement duration is relative to\n the agreement signature time. The duration is represented in the ISO_8601 format.
Defines the date when agreement starts. The agreement starts at 00:00:00.000 UTC on the\n date provided. If AgreementStartDate
isn’t provided, the agreement start date\n is determined based on agreement signature time.
Defines the date when the agreement ends. The agreement ends at 23:59:59.999 UTC on the\n date provided. If AgreementEndDate
isn’t provided, the agreement end date is\n determined by the validity of individual terms.
Defines the conditions that will keep an agreement created from this offer valid.
" + } + }, + "com.amazonaws.marketplaceagreement#ZeroValueInteger": { + "type": "integer", + "traits": { + "smithy.api#default": 0, + "smithy.api#range": { + "min": 0 + } + } + } + } +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/marketplace-catalog.json b/codegen/sdk-codegen/aws-models/marketplace-catalog.json index dc1a455da8a..350ede8a518 100644 --- a/codegen/sdk-codegen/aws-models/marketplace-catalog.json +++ b/codegen/sdk-codegen/aws-models/marketplace-catalog.json @@ -136,7 +136,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -179,7 +178,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -192,7 +192,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -206,7 +205,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -229,7 +227,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -264,7 +261,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -275,14 +271,16 @@ }, "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": [ @@ -296,14 +294,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -312,11 +308,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -327,14 +323,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -348,7 +346,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -368,7 +365,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -379,14 +375,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -397,9 +395,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -737,6 +737,274 @@ "smithy.api#httpError": 403 } }, + "com.amazonaws.marketplacecatalog#AmiProductEntityIdFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#AmiProductEntityIdFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique entity id values to be filtered on.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that allows filtering on entity id of an AMI product.
" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductEntityIdFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#AmiProductEntityIdString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#AmiProductEntityIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[a-zA-Z0-9][.a-zA-Z0-9/-]+[a-zA-Z0-9]$" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductFilters": { + "type": "structure", + "members": { + "EntityId": { + "target": "com.amazonaws.marketplacecatalog#AmiProductEntityIdFilter", + "traits": { + "smithy.api#documentation": "Unique identifier for the AMI product.
" + } + }, + "LastModifiedDate": { + "target": "com.amazonaws.marketplacecatalog#AmiProductLastModifiedDateFilter", + "traits": { + "smithy.api#documentation": "The last date on which the AMI product was modified.
" + } + }, + "ProductTitle": { + "target": "com.amazonaws.marketplacecatalog#AmiProductTitleFilter", + "traits": { + "smithy.api#documentation": "The title of the AMI product.
" + } + }, + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#AmiProductVisibilityFilter", + "traits": { + "smithy.api#documentation": "The visibility of the AMI product.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object containing all the filter fields for AMI products. Client can add a maximum of 8\n filters in a single ListEntities
request.
Dates between which the AMI product was last modified.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that allows filtering based on the last modified date of AMI products.
" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductLastModifiedDateFilterDateRange": { + "type": "structure", + "members": { + "AfterValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "Date after which the AMI product was last modified.
" + } + }, + "BeforeValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "Date before which the AMI product was last modified.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that contains date range of the last modified date to be filtered on. You can optionally provide a BeforeValue
and/or AfterValue
. Both are inclusive.
Field to sort the AMI products by.
" + } + }, + "SortOrder": { + "target": "com.amazonaws.marketplacecatalog#SortOrder", + "traits": { + "smithy.api#documentation": "The sorting order. Can be ASCENDING
or DESCENDING
. The default value is DESCENDING
.
Objects that allows sorting on AMI products based on certain fields and sorting order.
" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductSortBy": { + "type": "enum", + "members": { + "EntityId": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EntityId" + } + }, + "LastModifiedDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LastModifiedDate" + } + }, + "ProductTitle": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ProductTitle" + } + }, + "Visibility": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Visibility" + } + } + } + }, + "com.amazonaws.marketplacecatalog#AmiProductSummary": { + "type": "structure", + "members": { + "ProductTitle": { + "target": "com.amazonaws.marketplacecatalog#AmiProductTitleString", + "traits": { + "smithy.api#documentation": "The title of the AMI product.
" + } + }, + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#AmiProductVisibilityString", + "traits": { + "smithy.api#documentation": "The lifecycle of the AMI product.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that contains summarized information about an AMI product.
" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductTitleFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#AmiProductTitleFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique product title values to be filtered on.
" + } + }, + "WildCardValue": { + "target": "com.amazonaws.marketplacecatalog#AmiProductTitleString", + "traits": { + "smithy.api#documentation": "A string that will be the wildCard
input for product tile filter. It matches the provided value as a substring in the actual value.
Object that allows filtering on product title.
" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductTitleFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#AmiProductTitleString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#AmiProductTitleString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^(.)+$" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductVisibilityFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#AmiProductVisibilityFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique visibility values to be filtered on.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that allows filtering on the visibility of the product in the AWS Marketplace.
" + } + }, + "com.amazonaws.marketplacecatalog#AmiProductVisibilityFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#AmiProductVisibilityString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#AmiProductVisibilityString": { + "type": "enum", + "members": { + "Limited": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Limited" + } + }, + "Public": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Public" + } + }, + "Restricted": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Restricted" + } + }, + "Draft": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Draft" + } + } + } + }, "com.amazonaws.marketplacecatalog#CancelChangeSet": { "type": "operation", "input": { @@ -1061,511 +1329,565 @@ "smithy.api#pattern": "^[!-~]+$" } }, - "com.amazonaws.marketplacecatalog#DateTimeISO8601": { + "com.amazonaws.marketplacecatalog#ContainerProductEntityIdFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductEntityIdFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique entity id values to be filtered on.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that allows filtering on entity id of a container product.
" + } + }, + "com.amazonaws.marketplacecatalog#ContainerProductEntityIdFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductEntityIdString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#ContainerProductEntityIdString": { "type": "string", "traits": { "smithy.api#length": { - "min": 20, - "max": 20 + "min": 1, + "max": 255 }, - "smithy.api#pattern": "^([\\d]{4})\\-(1[0-2]|0[1-9])\\-(3[01]|0[1-9]|[12][\\d])T(2[0-3]|[01][\\d]):([0-5][\\d]):([0-5][\\d])Z$" + "smithy.api#pattern": "^[a-zA-Z0-9][.a-zA-Z0-9/-]+[a-zA-Z0-9]$" } }, - "com.amazonaws.marketplacecatalog#DeleteResourcePolicy": { - "type": "operation", - "input": { - "target": "com.amazonaws.marketplacecatalog#DeleteResourcePolicyRequest" - }, - "output": { - "target": "com.amazonaws.marketplacecatalog#DeleteResourcePolicyResponse" - }, - "errors": [ - { - "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" + "com.amazonaws.marketplacecatalog#ContainerProductFilters": { + "type": "structure", + "members": { + "EntityId": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductEntityIdFilter", + "traits": { + "smithy.api#documentation": "Unique identifier for the container product.
" + } }, - { - "target": "com.amazonaws.marketplacecatalog#InternalServiceException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" + "LastModifiedDate": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductLastModifiedDateFilter", + "traits": { + "smithy.api#documentation": "The last date on which the container product was modified.
" + } }, - { - "target": "com.amazonaws.marketplacecatalog#ThrottlingException" + "ProductTitle": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductTitleFilter", + "traits": { + "smithy.api#documentation": "The title of the container product.
" + } }, - { - "target": "com.amazonaws.marketplacecatalog#ValidationException" + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductVisibilityFilter", + "traits": { + "smithy.api#documentation": "The visibility of the container product.
" + } } - ], + }, "traits": { - "smithy.api#documentation": "Deletes a resource-based policy on an entity that is identified by its resource\n ARN.
", - "smithy.api#http": { - "method": "DELETE", - "uri": "/DeleteResourcePolicy", - "code": 200 - } + "smithy.api#documentation": "Object containing all the filter fields for container products. Client can add a maximum of 8 filters in a single ListEntities
request.
The Amazon Resource Name (ARN) of the entity resource that is associated with the\n resource policy.
", - "smithy.api#httpQuery": "resourceArn", - "smithy.api#required": {} + "smithy.api#documentation": "Dates between which the container product was last modified.
" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "Object that allows filtering based on the last modified date of container products.
" } }, - "com.amazonaws.marketplacecatalog#DeleteResourcePolicyResponse": { + "com.amazonaws.marketplacecatalog#ContainerProductLastModifiedDateFilterDateRange": { "type": "structure", - "members": {}, - "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.marketplacecatalog#DescribeChangeSet": { - "type": "operation", - "input": { - "target": "com.amazonaws.marketplacecatalog#DescribeChangeSetRequest" - }, - "output": { - "target": "com.amazonaws.marketplacecatalog#DescribeChangeSetResponse" - }, - "errors": [ - { - "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" - }, - { - "target": "com.amazonaws.marketplacecatalog#InternalServiceException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ThrottlingException" + "members": { + "AfterValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "Date after which the container product was last modified.
" + } }, - { - "target": "com.amazonaws.marketplacecatalog#ValidationException" + "BeforeValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "Date before which the container product was last modified.
" + } } - ], + }, "traits": { - "smithy.api#documentation": "Provides information about a given change set.
", - "smithy.api#http": { - "method": "GET", - "uri": "/DescribeChangeSet", - "code": 200 - } + "smithy.api#documentation": "Object that contains date range of the last modified date to be filtered on. You can optionally provide a BeforeValue
and/or AfterValue
. Both are inclusive.
Required. The catalog related to the request. Fixed value:\n AWSMarketplace
\n
Field to sort the container products by.
" } }, - "ChangeSetId": { - "target": "com.amazonaws.marketplacecatalog#ResourceId", + "SortOrder": { + "target": "com.amazonaws.marketplacecatalog#SortOrder", "traits": { - "smithy.api#documentation": "Required. The unique identifier for the StartChangeSet
request that you\n want to describe the details for.
The sorting order. Can be ASCENDING
or DESCENDING
. The default value is DESCENDING
.
Objects that allows sorting on container products based on certain fields and sorting order.
" } }, - "com.amazonaws.marketplacecatalog#DescribeChangeSetResponse": { - "type": "structure", + "com.amazonaws.marketplacecatalog#ContainerProductSortBy": { + "type": "enum", "members": { - "ChangeSetId": { - "target": "com.amazonaws.marketplacecatalog#ResourceId", - "traits": { - "smithy.api#documentation": "Required. The unique identifier for the change set referenced in this request.
" - } - }, - "ChangeSetArn": { - "target": "com.amazonaws.marketplacecatalog#ARN", + "EntityId": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "The ARN associated with the unique identifier for the change set referenced in this\n request.
" + "smithy.api#enumValue": "EntityId" } }, - "ChangeSetName": { - "target": "com.amazonaws.marketplacecatalog#ChangeSetName", + "LastModifiedDate": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "The optional name provided in the StartChangeSet
request. If you do not\n provide a name, one is set by default.
The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request started.\n
" + "smithy.api#enumValue": "ProductTitle" } }, - "EndTime": { - "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "Visibility": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request transitioned\n to a terminal state. The change cannot transition to a different state. Null if the\n request is not in a terminal state.
" + "smithy.api#enumValue": "Visibility" } - }, - "Status": { - "target": "com.amazonaws.marketplacecatalog#ChangeStatus", + } + } + }, + "com.amazonaws.marketplacecatalog#ContainerProductSummary": { + "type": "structure", + "members": { + "ProductTitle": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductTitleString", "traits": { - "smithy.api#documentation": "The status of the change request.
" + "smithy.api#documentation": "The title of the container product.
" } }, - "FailureCode": { - "target": "com.amazonaws.marketplacecatalog#FailureCode", + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductVisibilityString", "traits": { - "smithy.api#documentation": "Returned if the change set is in FAILED
status. Can be either\n CLIENT_ERROR
, which means that there are issues with the request (see\n the ErrorDetailList
), or SERVER_FAULT
, which means that there\n is a problem in the system, and you should retry your request.
The lifecycle of the product.
" } - }, - "FailureDescription": { - "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent", + } + }, + "traits": { + "smithy.api#documentation": "Object that contains summarized information about a container product.
" + } + }, + "com.amazonaws.marketplacecatalog#ContainerProductTitleFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductTitleFilterValueList", "traits": { - "smithy.api#documentation": "Returned if there is a failure on the change set, but that failure is not related to\n any of the changes in the request.
" + "smithy.api#documentation": "A string array of unique product title values to be filtered on.
" } }, - "ChangeSet": { - "target": "com.amazonaws.marketplacecatalog#ChangeSetDescription", + "WildCardValue": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductTitleString", "traits": { - "smithy.api#documentation": "An array of ChangeSummary
objects.
A string that will be the wildCard
input for product tile filter. It matches the provided value as a substring in the actual value.
Object that allows filtering on product title.
" } }, - "com.amazonaws.marketplacecatalog#DescribeEntity": { - "type": "operation", - "input": { - "target": "com.amazonaws.marketplacecatalog#DescribeEntityRequest" - }, - "output": { - "target": "com.amazonaws.marketplacecatalog#DescribeEntityResponse" + "com.amazonaws.marketplacecatalog#ContainerProductTitleFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductTitleString" }, - "errors": [ - { - "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" - }, - { - "target": "com.amazonaws.marketplacecatalog#InternalServiceException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ResourceNotSupportedException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ThrottlingException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ValidationException" - } - ], "traits": { - "smithy.api#documentation": "Returns the metadata and content of the entity.
", - "smithy.api#http": { - "method": "GET", - "uri": "/DescribeEntity", - "code": 200 + "smithy.api#length": { + "min": 1, + "max": 10 } } }, - "com.amazonaws.marketplacecatalog#DescribeEntityRequest": { + "com.amazonaws.marketplacecatalog#ContainerProductTitleString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^(.)+$" + } + }, + "com.amazonaws.marketplacecatalog#ContainerProductVisibilityFilter": { "type": "structure", "members": { - "Catalog": { - "target": "com.amazonaws.marketplacecatalog#Catalog", - "traits": { - "smithy.api#documentation": "Required. The catalog related to the request. Fixed value:\n AWSMarketplace
\n
Required. The unique ID of the entity to describe.
", - "smithy.api#httpQuery": "entityId", - "smithy.api#required": {} + "smithy.api#documentation": "A string array of unique visibility values to be filtered on.
" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "Object that allows filtering on the visibility of the product in the AWS Marketplace.
" } }, - "com.amazonaws.marketplacecatalog#DescribeEntityResponse": { - "type": "structure", + "com.amazonaws.marketplacecatalog#ContainerProductVisibilityFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductVisibilityString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#ContainerProductVisibilityString": { + "type": "enum", "members": { - "EntityType": { - "target": "com.amazonaws.marketplacecatalog#EntityType", - "traits": { - "smithy.api#documentation": "The named type of the entity, in the format of EntityType@Version
.
The identifier of the entity, in the format of\n EntityId@RevisionId
.
The ARN associated to the unique identifier for the entity referenced in this\n request.
" + "smithy.api#enumValue": "Public" } }, - "LastModifiedDate": { - "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "Restricted": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "The last modified date of the entity, in ISO 8601 format\n (2018-02-27T13:45:22Z).
" + "smithy.api#enumValue": "Restricted" } }, - "Details": { - "target": "com.amazonaws.marketplacecatalog#Json", + "Draft": { + "target": "smithy.api#Unit", "traits": { - "smithy.api#documentation": "This stringified JSON object includes the details of the entity.
" + "smithy.api#enumValue": "Draft" } - }, - "DetailsDocument": { - "target": "com.amazonaws.marketplacecatalog#JsonDocumentType", + } + } + }, + "com.amazonaws.marketplacecatalog#DataProductEntityIdFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#DataProductEntityIdFilterValueList", "traits": { - "smithy.api#documentation": "The JSON value of the details specific to the entity.
" + "smithy.api#documentation": "A string array of unique entity id values to be filtered on.
" } } }, "traits": { - "smithy.api#output": {} + "smithy.api#documentation": "Object that allows filtering on entity id of a data product.
" } }, - "com.amazonaws.marketplacecatalog#Entity": { - "type": "structure", - "members": { - "Type": { - "target": "com.amazonaws.marketplacecatalog#EntityType", - "traits": { - "smithy.api#documentation": "The type of entity.
", - "smithy.api#required": {} - } - }, - "Identifier": { - "target": "com.amazonaws.marketplacecatalog#Identifier", - "traits": { - "smithy.api#documentation": "The identifier for the entity.
" - } - } + "com.amazonaws.marketplacecatalog#DataProductEntityIdFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#DataProductEntityIdString" }, "traits": { - "smithy.api#documentation": "An entity contains data that describes your product, its supported features, and how\n it can be used or launched by your customer.
" + "smithy.api#length": { + "min": 1, + "max": 10 + } } }, - "com.amazonaws.marketplacecatalog#EntityNameString": { + "com.amazonaws.marketplacecatalog#DataProductEntityIdString": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, - "smithy.api#pattern": "^\\\\S+[\\\\S\\\\s]*$" + "smithy.api#pattern": "^[a-zA-Z0-9][.a-zA-Z0-9/-]+[a-zA-Z0-9]$" } }, - "com.amazonaws.marketplacecatalog#EntitySummary": { + "com.amazonaws.marketplacecatalog#DataProductFilters": { "type": "structure", "members": { - "Name": { - "target": "com.amazonaws.marketplacecatalog#EntityNameString", - "traits": { - "smithy.api#documentation": "The name for the entity. This value is not unique. It is defined by the seller.
" - } - }, - "EntityType": { - "target": "com.amazonaws.marketplacecatalog#EntityType", - "traits": { - "smithy.api#documentation": "The type of the entity.
" - } - }, "EntityId": { - "target": "com.amazonaws.marketplacecatalog#ResourceId", + "target": "com.amazonaws.marketplacecatalog#DataProductEntityIdFilter", "traits": { - "smithy.api#documentation": "The unique identifier for the entity.
" + "smithy.api#documentation": "Unique identifier for the data product.
" } }, - "EntityArn": { - "target": "com.amazonaws.marketplacecatalog#ARN", + "ProductTitle": { + "target": "com.amazonaws.marketplacecatalog#DataProductTitleFilter", "traits": { - "smithy.api#documentation": "The ARN associated with the unique identifier for the entity.
" + "smithy.api#documentation": "The title of the data product.
" } }, - "LastModifiedDate": { - "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#DataProductVisibilityFilter", "traits": { - "smithy.api#documentation": "The last time the entity was published, using ISO 8601 format\n (2018-02-27T13:45:22Z).
" + "smithy.api#documentation": "The visibility of the data product.
" } }, - "Visibility": { - "target": "com.amazonaws.marketplacecatalog#VisibilityValue", + "LastModifiedDate": { + "target": "com.amazonaws.marketplacecatalog#DataProductLastModifiedDateFilter", "traits": { - "smithy.api#documentation": "The visibility status of the entity to buyers. This value can be Public
\n (everyone can view the entity), Limited
(the entity is visible to limited\n accounts only), or Restricted
(the entity was published and then\n unpublished and only existing buyers can view it).
The last date on which the data product was modified.
" } } }, "traits": { - "smithy.api#documentation": "This object is a container for common summary information about the entity. The\n summary doesn't contain the whole entity structure, but it does contain information\n common across all entities.
" - } - }, - "com.amazonaws.marketplacecatalog#EntitySummaryList": { - "type": "list", - "member": { - "target": "com.amazonaws.marketplacecatalog#EntitySummary" - } - }, - "com.amazonaws.marketplacecatalog#EntityType": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 - }, - "smithy.api#pattern": "^[a-zA-Z]+$" + "smithy.api#documentation": "Object containing all the filter fields for data products. Client can add a maximum of 8 filters in a single ListEntities
request.
Dates between which the data product was last modified.
" + } + } + }, "traits": { - "smithy.api#length": { - "min": 1, - "max": 72 - }, - "smithy.api#pattern": "^[a-zA-Z_]+$" + "smithy.api#documentation": "Object that allows filtering based on the last modified date of data products.
" } }, - "com.amazonaws.marketplacecatalog#ErrorDetail": { + "com.amazonaws.marketplacecatalog#DataProductLastModifiedDateFilterDateRange": { "type": "structure", "members": { - "ErrorCode": { - "target": "com.amazonaws.marketplacecatalog#ErrorCodeString", + "AfterValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", "traits": { - "smithy.api#documentation": "The error code that identifies the type of error.
" + "smithy.api#documentation": "Date after which the data product was last modified.
" } }, - "ErrorMessage": { - "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent", + "BeforeValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", "traits": { - "smithy.api#documentation": "The message for the error.
" + "smithy.api#documentation": "Date before which the data product was last modified.
" } } }, "traits": { - "smithy.api#documentation": "Details about the error.
" - } - }, - "com.amazonaws.marketplacecatalog#ErrorDetailList": { - "type": "list", - "member": { - "target": "com.amazonaws.marketplacecatalog#ErrorDetail" + "smithy.api#documentation": "Object that contains date range of the last modified date to be filtered on. You can optionally provide a BeforeValue
and/or AfterValue
. Both are inclusive.
Field to sort the data products by.
" + } }, - "smithy.api#pattern": "^(.)+$" + "SortOrder": { + "target": "com.amazonaws.marketplacecatalog#SortOrder", + "traits": { + "smithy.api#documentation": "The sorting order. Can be ASCENDING
or DESCENDING
. The default value is DESCENDING
.
Objects that allows sorting on data products based on certain fields and sorting order.
" } }, - "com.amazonaws.marketplacecatalog#FailureCode": { + "com.amazonaws.marketplacecatalog#DataProductSortBy": { "type": "enum", "members": { - "ClientError": { + "EntityId": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "CLIENT_ERROR" + "smithy.api#enumValue": "EntityId" } }, - "ServerFault": { + "ProductTitle": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "SERVER_FAULT" + "smithy.api#enumValue": "ProductTitle" + } + }, + "Visibility": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Visibility" + } + }, + "LastModifiedDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LastModifiedDate" } } } }, - "com.amazonaws.marketplacecatalog#Filter": { + "com.amazonaws.marketplacecatalog#DataProductSummary": { "type": "structure", "members": { - "Name": { - "target": "com.amazonaws.marketplacecatalog#FilterName", + "ProductTitle": { + "target": "com.amazonaws.marketplacecatalog#DataProductTitleString", "traits": { - "smithy.api#documentation": "For ListEntities
, the supported value for this is an\n EntityId
.
For ListChangeSets
, the supported values are as follows:
The title of the data product.
" } }, + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#DataProductVisibilityString", + "traits": { + "smithy.api#documentation": "The lifecycle of the data product.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that contains summarized information about a data product.
" + } + }, + "com.amazonaws.marketplacecatalog#DataProductTitleFilter": { + "type": "structure", + "members": { "ValueList": { - "target": "com.amazonaws.marketplacecatalog#ValueList", + "target": "com.amazonaws.marketplacecatalog#DataProductTitleFilterValueList", "traits": { - "smithy.api#documentation": "\n ListEntities
- This is a list of unique EntityId
s.
\n ListChangeSets
- The supported filter names and associated\n ValueList
s is as follows:
\n ChangeSetName
- The supported ValueList
is a list of\n non-unique ChangeSetName
s. These are defined when you call the\n StartChangeSet
action.
\n Status
- The supported ValueList
is a list of\n statuses for all change set requests.
\n EntityId
- The supported ValueList
is a list of\n unique EntityId
s.
\n BeforeStartTime
- The supported ValueList
is a list\n of all change sets that started before the filter value.
\n AfterStartTime
- The supported ValueList
is a list\n of all change sets that started after the filter value.
\n BeforeEndTime
- The supported ValueList
is a list of\n all change sets that ended before the filter value.
\n AfterEndTime
- The supported ValueList
is a list of\n all change sets that ended after the filter value.
A string array of unique product title values to be filtered on.
" + } + }, + "WildCardValue": { + "target": "com.amazonaws.marketplacecatalog#DataProductTitleString", + "traits": { + "smithy.api#documentation": "A string that will be the wildCard
input for product tile filter. It matches the provided value as a substring in the actual value.
A filter object, used to optionally filter results from calls to the\n ListEntities
and ListChangeSets
actions.
Object that allows filtering on product title.
" } }, - "com.amazonaws.marketplacecatalog#FilterList": { + "com.amazonaws.marketplacecatalog#DataProductTitleFilterValueList": { "type": "list", "member": { - "target": "com.amazonaws.marketplacecatalog#Filter" + "target": "com.amazonaws.marketplacecatalog#DataProductTitleString" }, "traits": { "smithy.api#length": { "min": 1, - "max": 8 + "max": 10 } } }, - "com.amazonaws.marketplacecatalog#FilterName": { + "com.amazonaws.marketplacecatalog#DataProductTitleString": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, - "smithy.api#pattern": "^[a-zA-Z]+$" + "smithy.api#pattern": "^(.)+$" } }, - "com.amazonaws.marketplacecatalog#FilterValueContent": { - "type": "string", + "com.amazonaws.marketplacecatalog#DataProductVisibilityFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#DataProductVisibilityFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique visibility values to be filtered on.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that allows filtering on the visibility of the product in the AWS Marketplace.
" + } + }, + "com.amazonaws.marketplacecatalog#DataProductVisibilityFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#DataProductVisibilityString" + }, "traits": { "smithy.api#length": { "min": 1, - "max": 255 + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#DataProductVisibilityString": { + "type": "enum", + "members": { + "Limited": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Limited" + } }, - "smithy.api#pattern": "^(.)+$" + "Public": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Public" + } + }, + "Restricted": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Restricted" + } + }, + "Unavailable": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Unavailable" + } + }, + "Draft": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Draft" + } + } } }, - "com.amazonaws.marketplacecatalog#GetResourcePolicy": { + "com.amazonaws.marketplacecatalog#DateTimeISO8601": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 20, + "max": 20 + }, + "smithy.api#pattern": "^([\\d]{4})\\-(1[0-2]|0[1-9])\\-(3[01]|0[1-9]|[12][\\d])T(2[0-3]|[01][\\d]):([0-5][\\d]):([0-5][\\d])Z$" + } + }, + "com.amazonaws.marketplacecatalog#DeleteResourcePolicy": { "type": "operation", "input": { - "target": "com.amazonaws.marketplacecatalog#GetResourcePolicyRequest" + "target": "com.amazonaws.marketplacecatalog#DeleteResourcePolicyRequest" }, "output": { - "target": "com.amazonaws.marketplacecatalog#GetResourcePolicyResponse" + "target": "com.amazonaws.marketplacecatalog#DeleteResourcePolicyResponse" }, "errors": [ { @@ -1585,15 +1907,15 @@ } ], "traits": { - "smithy.api#documentation": "Gets a resource-based policy of an entity that is identified by its resource\n ARN.
", + "smithy.api#documentation": "Deletes a resource-based policy on an entity that is identified by its resource\n ARN.
", "smithy.api#http": { - "method": "GET", - "uri": "/GetResourcePolicy", + "method": "DELETE", + "uri": "/DeleteResourcePolicy", "code": 200 } } }, - "com.amazonaws.marketplacecatalog#GetResourcePolicyRequest": { + "com.amazonaws.marketplacecatalog#DeleteResourcePolicyRequest": { "type": "structure", "members": { "ResourceArn": { @@ -1609,63 +1931,20 @@ "smithy.api#input": {} } }, - "com.amazonaws.marketplacecatalog#GetResourcePolicyResponse": { + "com.amazonaws.marketplacecatalog#DeleteResourcePolicyResponse": { "type": "structure", - "members": { - "Policy": { - "target": "com.amazonaws.marketplacecatalog#ResourcePolicyJson", - "traits": { - "smithy.api#documentation": "The policy document to set; formatted in JSON.
" - } - } - }, + "members": {}, "traits": { "smithy.api#output": {} } }, - "com.amazonaws.marketplacecatalog#Identifier": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 - }, - "smithy.api#pattern": "^[\\w\\-@]+$" - } - }, - "com.amazonaws.marketplacecatalog#InternalServiceException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" - } - }, - "traits": { - "smithy.api#documentation": "There was an internal service exception.
\nHTTP status code: 500
", - "smithy.api#error": "server", - "smithy.api#httpError": 500 - } - }, - "com.amazonaws.marketplacecatalog#Json": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 2, - "max": 16384 - }, - "smithy.api#pattern": "^[\\s]*\\{[\\s\\S]*\\}[\\s]*$" - } - }, - "com.amazonaws.marketplacecatalog#JsonDocumentType": { - "type": "document" - }, - "com.amazonaws.marketplacecatalog#ListChangeSets": { - "type": "operation", - "input": { - "target": "com.amazonaws.marketplacecatalog#ListChangeSetsRequest" + "com.amazonaws.marketplacecatalog#DescribeChangeSet": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacecatalog#DescribeChangeSetRequest" }, "output": { - "target": "com.amazonaws.marketplacecatalog#ListChangeSetsResponse" + "target": "com.amazonaws.marketplacecatalog#DescribeChangeSetResponse" }, "errors": [ { @@ -1674,6 +1953,9 @@ { "target": "com.amazonaws.marketplacecatalog#InternalServiceException" }, + { + "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" + }, { "target": "com.amazonaws.marketplacecatalog#ThrottlingException" }, @@ -1682,81 +1964,93 @@ } ], "traits": { - "smithy.api#documentation": "Returns the list of change sets owned by the account being used to make the call. You\n can filter this list by providing any combination of entityId
,\n ChangeSetName
, and status. If you provide more than one filter, the API\n operation applies a logical AND between the filters.
You can describe a change during the 60-day request history retention period for API\n calls.
", + "smithy.api#documentation": "Provides information about a given change set.
", "smithy.api#http": { - "method": "POST", - "uri": "/ListChangeSets", + "method": "GET", + "uri": "/DescribeChangeSet", "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "ChangeSetSummaryList", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.marketplacecatalog#ListChangeSetsMaxResultInteger": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 20 } } }, - "com.amazonaws.marketplacecatalog#ListChangeSetsRequest": { + "com.amazonaws.marketplacecatalog#DescribeChangeSetRequest": { "type": "structure", "members": { "Catalog": { "target": "com.amazonaws.marketplacecatalog#Catalog", "traits": { - "smithy.api#documentation": "The catalog related to the request. Fixed value: AWSMarketplace
\n
Required. The catalog related to the request. Fixed value:\n AWSMarketplace
\n
An array of filter objects.
" + "smithy.api#documentation": "Required. The unique identifier for the StartChangeSet
request that you\n want to describe the details for.
Required. The unique identifier for the change set referenced in this request.
" } }, - "Sort": { - "target": "com.amazonaws.marketplacecatalog#Sort", + "ChangeSetArn": { + "target": "com.amazonaws.marketplacecatalog#ARN", "traits": { - "smithy.api#documentation": "An object that contains two attributes, SortBy
and\n SortOrder
.
The ARN associated with the unique identifier for the change set referenced in this\n request.
" } }, - "MaxResults": { - "target": "com.amazonaws.marketplacecatalog#ListChangeSetsMaxResultInteger", + "ChangeSetName": { + "target": "com.amazonaws.marketplacecatalog#ChangeSetName", "traits": { - "smithy.api#documentation": "The maximum number of results returned by a single call. This value must be provided\n in the next call to retrieve the next set of results. By default, this value is\n 20.
" + "smithy.api#documentation": "The optional name provided in the StartChangeSet
request. If you do not\n provide a name, one is set by default.
The token value retrieved from a previous call to access the next page of\n results.
" + "smithy.api#documentation": "The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request started.\n
" } - } - }, - "traits": { - "smithy.api#input": {} - } - }, - "com.amazonaws.marketplacecatalog#ListChangeSetsResponse": { - "type": "structure", - "members": { - "ChangeSetSummaryList": { - "target": "com.amazonaws.marketplacecatalog#ChangeSetSummaryList", + }, + "EndTime": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", "traits": { - "smithy.api#documentation": " Array of ChangeSetSummaryListItem
objects.
The date and time, in ISO 8601 format (2018-02-27T13:45:22Z), the request transitioned\n to a terminal state. The change cannot transition to a different state. Null if the\n request is not in a terminal state.
" } }, - "NextToken": { - "target": "com.amazonaws.marketplacecatalog#NextToken", + "Status": { + "target": "com.amazonaws.marketplacecatalog#ChangeStatus", "traits": { - "smithy.api#documentation": "The value of the next token, if it exists. Null if there are no more results.
" + "smithy.api#documentation": "The status of the change request.
" + } + }, + "FailureCode": { + "target": "com.amazonaws.marketplacecatalog#FailureCode", + "traits": { + "smithy.api#documentation": "Returned if the change set is in FAILED
status. Can be either\n CLIENT_ERROR
, which means that there are issues with the request (see\n the ErrorDetailList
), or SERVER_FAULT
, which means that there\n is a problem in the system, and you should retry your request.
Returned if there is a failure on the change set, but that failure is not related to\n any of the changes in the request.
" + } + }, + "ChangeSet": { + "target": "com.amazonaws.marketplacecatalog#ChangeSetDescription", + "traits": { + "smithy.api#documentation": "An array of ChangeSummary
objects.
Provides the list of entities of a given type.
", + "smithy.api#documentation": "Returns the metadata and content of the entity.
", "smithy.api#http": { - "method": "POST", - "uri": "/ListEntities", + "method": "GET", + "uri": "/DescribeEntity", "code": 200 - }, - "smithy.api#paginated": { - "inputToken": "NextToken", - "outputToken": "NextToken", - "items": "EntitySummaryList", - "pageSize": "MaxResults" - } - } - }, - "com.amazonaws.marketplacecatalog#ListEntitiesMaxResultInteger": { - "type": "integer", - "traits": { - "smithy.api#range": { - "min": 1, - "max": 50 } } }, - "com.amazonaws.marketplacecatalog#ListEntitiesRequest": { + "com.amazonaws.marketplacecatalog#DescribeEntityRequest": { "type": "structure", "members": { "Catalog": { "target": "com.amazonaws.marketplacecatalog#Catalog", "traits": { - "smithy.api#documentation": "The catalog related to the request. Fixed value: AWSMarketplace
\n
Required. The catalog related to the request. Fixed value:\n AWSMarketplace
\n
Required. The unique ID of the entity to describe.
", + "smithy.api#httpQuery": "entityId", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacecatalog#DescribeEntityResponse": { + "type": "structure", + "members": { "EntityType": { "target": "com.amazonaws.marketplacecatalog#EntityType", "traits": { - "smithy.api#documentation": "The type of entities to retrieve.
", + "smithy.api#documentation": "The named type of the entity, in the format of EntityType@Version
.
The identifier of the entity, in the format of\n EntityId@RevisionId
.
The ARN associated to the unique identifier for the entity referenced in this\n request.
" + } + }, + "LastModifiedDate": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "The last modified date of the entity, in ISO 8601 format\n (2018-02-27T13:45:22Z).
" + } + }, + "Details": { + "target": "com.amazonaws.marketplacecatalog#Json", + "traits": { + "smithy.api#documentation": "This stringified JSON object includes the details of the entity.
" + } + }, + "DetailsDocument": { + "target": "com.amazonaws.marketplacecatalog#JsonDocumentType", + "traits": { + "smithy.api#documentation": "The JSON value of the details specific to the entity.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacecatalog#Entity": { + "type": "structure", + "members": { + "Type": { + "target": "com.amazonaws.marketplacecatalog#EntityType", + "traits": { + "smithy.api#documentation": "The type of entity.
", "smithy.api#required": {} } }, - "FilterList": { - "target": "com.amazonaws.marketplacecatalog#FilterList", + "Identifier": { + "target": "com.amazonaws.marketplacecatalog#Identifier", "traits": { - "smithy.api#documentation": "An array of filter objects. Each filter object contains two attributes,\n filterName
and filterValues
.
The identifier for the entity.
" } + } + }, + "traits": { + "smithy.api#documentation": "An entity contains data that describes your product, its supported features, and how\n it can be used or launched by your customer.
" + } + }, + "com.amazonaws.marketplacecatalog#EntityNameString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^\\\\S+[\\\\S\\\\s]*$" + } + }, + "com.amazonaws.marketplacecatalog#EntitySummary": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.marketplacecatalog#EntityNameString", + "traits": { + "smithy.api#documentation": "The name for the entity. This value is not unique. It is defined by the seller.
" + } + }, + "EntityType": { + "target": "com.amazonaws.marketplacecatalog#EntityType", + "traits": { + "smithy.api#documentation": "The type of the entity.
" + } + }, + "EntityId": { + "target": "com.amazonaws.marketplacecatalog#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier for the entity.
" + } + }, + "EntityArn": { + "target": "com.amazonaws.marketplacecatalog#ARN", + "traits": { + "smithy.api#documentation": "The ARN associated with the unique identifier for the entity.
" + } + }, + "LastModifiedDate": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "The last time the entity was published, using ISO 8601 format\n (2018-02-27T13:45:22Z).
" + } + }, + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#VisibilityValue", + "traits": { + "smithy.api#documentation": "The visibility status of the entity to buyers. This value can be Public
\n (everyone can view the entity), Limited
(the entity is visible to limited\n accounts only), or Restricted
(the entity was published and then\n unpublished and only existing buyers can view it).
An object that contains summary information about the AMI product.
" + } + }, + "ContainerProductSummary": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductSummary", + "traits": { + "smithy.api#documentation": "An object that contains summary information about the container product.
" + } + }, + "DataProductSummary": { + "target": "com.amazonaws.marketplacecatalog#DataProductSummary", + "traits": { + "smithy.api#documentation": "An object that contains summary information about the data product.
" + } + }, + "SaaSProductSummary": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductSummary", + "traits": { + "smithy.api#documentation": "An object that contains summary information about the SaaS product.
" + } + }, + "OfferSummary": { + "target": "com.amazonaws.marketplacecatalog#OfferSummary", + "traits": { + "smithy.api#documentation": "An object that contains summary information about the offer.
" + } + }, + "ResaleAuthorizationSummary": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationSummary", + "traits": { + "smithy.api#documentation": "An object that contains summary information about the Resale Authorization.
" + } + } + }, + "traits": { + "smithy.api#documentation": "This object is a container for common summary information about the entity. The\n summary doesn't contain the whole entity structure, but it does contain information\n common across all entities.
" + } + }, + "com.amazonaws.marketplacecatalog#EntitySummaryList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#EntitySummary" + } + }, + "com.amazonaws.marketplacecatalog#EntityType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[a-zA-Z]+$" + } + }, + "com.amazonaws.marketplacecatalog#EntityTypeFilters": { + "type": "union", + "members": { + "DataProductFilters": { + "target": "com.amazonaws.marketplacecatalog#DataProductFilters", + "traits": { + "smithy.api#documentation": "A filter for data products.
" + } + }, + "SaaSProductFilters": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductFilters", + "traits": { + "smithy.api#documentation": "A filter for SaaS products.
" + } + }, + "AmiProductFilters": { + "target": "com.amazonaws.marketplacecatalog#AmiProductFilters", + "traits": { + "smithy.api#documentation": "A filter for AMI products.
" + } + }, + "OfferFilters": { + "target": "com.amazonaws.marketplacecatalog#OfferFilters", + "traits": { + "smithy.api#documentation": "A filter for offers.
" + } + }, + "ContainerProductFilters": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductFilters", + "traits": { + "smithy.api#documentation": "A filter for container products.
" + } + }, + "ResaleAuthorizationFilters": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationFilters", + "traits": { + "smithy.api#documentation": "A filter for Resale Authorizations.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object containing all the filter fields per entity type.
" + } + }, + "com.amazonaws.marketplacecatalog#EntityTypeSort": { + "type": "union", + "members": { + "DataProductSort": { + "target": "com.amazonaws.marketplacecatalog#DataProductSort", + "traits": { + "smithy.api#documentation": "A sort for data products.
" + } + }, + "SaaSProductSort": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductSort", + "traits": { + "smithy.api#documentation": "A sort for SaaS products.
" + } + }, + "AmiProductSort": { + "target": "com.amazonaws.marketplacecatalog#AmiProductSort", + "traits": { + "smithy.api#documentation": "A sort for AMI products.
" + } + }, + "OfferSort": { + "target": "com.amazonaws.marketplacecatalog#OfferSort", + "traits": { + "smithy.api#documentation": "A sort for offers.
" + } + }, + "ContainerProductSort": { + "target": "com.amazonaws.marketplacecatalog#ContainerProductSort", + "traits": { + "smithy.api#documentation": "A sort for container products.
" + } + }, + "ResaleAuthorizationSort": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationSort", + "traits": { + "smithy.api#documentation": "A sort for Resale Authorizations.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object containing all the sort fields per entity type.
" + } + }, + "com.amazonaws.marketplacecatalog#ErrorCodeString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 72 + }, + "smithy.api#pattern": "^[a-zA-Z_]+$" + } + }, + "com.amazonaws.marketplacecatalog#ErrorDetail": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.marketplacecatalog#ErrorCodeString", + "traits": { + "smithy.api#documentation": "The error code that identifies the type of error.
" + } + }, + "ErrorMessage": { + "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent", + "traits": { + "smithy.api#documentation": "The message for the error.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Details about the error.
" + } + }, + "com.amazonaws.marketplacecatalog#ErrorDetailList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#ErrorDetail" + } + }, + "com.amazonaws.marketplacecatalog#ExceptionMessageContent": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^(.)+$" + } + }, + "com.amazonaws.marketplacecatalog#FailureCode": { + "type": "enum", + "members": { + "ClientError": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CLIENT_ERROR" + } + }, + "ServerFault": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SERVER_FAULT" + } + } + } + }, + "com.amazonaws.marketplacecatalog#Filter": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.marketplacecatalog#FilterName", + "traits": { + "smithy.api#documentation": "For ListEntities
, the supported value for this is an\n EntityId
.
For ListChangeSets
, the supported values are as follows:
\n ListEntities
- This is a list of unique EntityId
s.
\n ListChangeSets
- The supported filter names and associated\n ValueList
s is as follows:
\n ChangeSetName
- The supported ValueList
is a list of\n non-unique ChangeSetName
s. These are defined when you call the\n StartChangeSet
action.
\n Status
- The supported ValueList
is a list of\n statuses for all change set requests.
\n EntityId
- The supported ValueList
is a list of\n unique EntityId
s.
\n BeforeStartTime
- The supported ValueList
is a list\n of all change sets that started before the filter value.
\n AfterStartTime
- The supported ValueList
is a list\n of all change sets that started after the filter value.
\n BeforeEndTime
- The supported ValueList
is a list of\n all change sets that ended before the filter value.
\n AfterEndTime
- The supported ValueList
is a list of\n all change sets that ended after the filter value.
A filter object, used to optionally filter results from calls to the\n ListEntities
and ListChangeSets
actions.
Gets a resource-based policy of an entity that is identified by its resource\n ARN.
", + "smithy.api#http": { + "method": "GET", + "uri": "/GetResourcePolicy", + "code": 200 + } + } + }, + "com.amazonaws.marketplacecatalog#GetResourcePolicyRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.marketplacecatalog#ResourceARN", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the entity resource that is associated with the\n resource policy.
", + "smithy.api#httpQuery": "resourceArn", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacecatalog#GetResourcePolicyResponse": { + "type": "structure", + "members": { + "Policy": { + "target": "com.amazonaws.marketplacecatalog#ResourcePolicyJson", + "traits": { + "smithy.api#documentation": "The policy document to set; formatted in JSON.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacecatalog#Identifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[\\w\\-@]+$" + } + }, + "com.amazonaws.marketplacecatalog#InternalServiceException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" + } + }, + "traits": { + "smithy.api#documentation": "There was an internal service exception.
\nHTTP status code: 500
", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.marketplacecatalog#Json": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 2, + "max": 16384 + }, + "smithy.api#pattern": "^[\\s]*\\{[\\s\\S]*\\}[\\s]*$" + } + }, + "com.amazonaws.marketplacecatalog#JsonDocumentType": { + "type": "document" + }, + "com.amazonaws.marketplacecatalog#ListChangeSets": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacecatalog#ListChangeSetsRequest" + }, + "output": { + "target": "com.amazonaws.marketplacecatalog#ListChangeSetsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplacecatalog#InternalServiceException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns the list of change sets owned by the account being used to make the call. You\n can filter this list by providing any combination of entityId
,\n ChangeSetName
, and status. If you provide more than one filter, the API\n operation applies a logical AND between the filters.
You can describe a change during the 60-day request history retention period for API\n calls.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListChangeSets", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "ChangeSetSummaryList", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.marketplacecatalog#ListChangeSetsMaxResultInteger": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.marketplacecatalog#ListChangeSetsRequest": { + "type": "structure", + "members": { + "Catalog": { + "target": "com.amazonaws.marketplacecatalog#Catalog", + "traits": { + "smithy.api#documentation": "The catalog related to the request. Fixed value: AWSMarketplace
\n
An array of filter objects.
" + } + }, + "Sort": { + "target": "com.amazonaws.marketplacecatalog#Sort", + "traits": { + "smithy.api#documentation": "An object that contains two attributes, SortBy
and\n SortOrder
.
The maximum number of results returned by a single call. This value must be provided\n in the next call to retrieve the next set of results. By default, this value is\n 20.
" + } + }, + "NextToken": { + "target": "com.amazonaws.marketplacecatalog#NextToken", + "traits": { + "smithy.api#documentation": "The token value retrieved from a previous call to access the next page of\n results.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacecatalog#ListChangeSetsResponse": { + "type": "structure", + "members": { + "ChangeSetSummaryList": { + "target": "com.amazonaws.marketplacecatalog#ChangeSetSummaryList", + "traits": { + "smithy.api#documentation": " Array of ChangeSetSummaryListItem
objects.
The value of the next token, if it exists. Null if there are no more results.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacecatalog#ListEntities": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacecatalog#ListEntitiesRequest" + }, + "output": { + "target": "com.amazonaws.marketplacecatalog#ListEntitiesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplacecatalog#InternalServiceException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Provides the list of entities of a given type.
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListEntities", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "items": "EntitySummaryList", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.marketplacecatalog#ListEntitiesMaxResultInteger": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1, + "max": 50 + } + } + }, + "com.amazonaws.marketplacecatalog#ListEntitiesRequest": { + "type": "structure", + "members": { + "Catalog": { + "target": "com.amazonaws.marketplacecatalog#Catalog", + "traits": { + "smithy.api#documentation": "The catalog related to the request. Fixed value: AWSMarketplace
\n
The type of entities to\n retrieve. Valid\n values are: ServerProduct
, AmiProduct
,\n ContainerProduct
, DataProduct
, SaaSProduct
,\n ProcurementPolicy
, Experience
, Audience
,\n BrandingSettings
, Offer
, Seller
,\n ResaleAuthorization
.
An array of filter objects. Each filter object contains two attributes,\n filterName
and filterValues
.
An object that contains two attributes, SortBy
and\n SortOrder
.
The value of the next token, if it exists. Null if there are no more results.
" + } + }, + "MaxResults": { + "target": "com.amazonaws.marketplacecatalog#ListEntitiesMaxResultInteger", + "traits": { + "smithy.api#documentation": "Specifies the upper limit of the elements on a single page. If a value isn't provided,\n the default value is 20.
" + } + }, + "OwnershipType": { + "target": "com.amazonaws.marketplacecatalog#OwnershipType", + "traits": { + "smithy.api#documentation": "Filters the returned set of entities based on their owner. The default is\n SELF
. To list entities shared with you\n through AWS Resource Access Manager (AWS RAM), set to SHARED
. Entities shared through the AWS Marketplace\n Catalog API PutResourcePolicy
operation can't be discovered through the\n SHARED
parameter.
A Union object containing filter shapes for all EntityType
s. Each\n EntityTypeFilter
shape will have filters applicable for that\n EntityType
that can be used to search or filter entities.
A Union object containing Sort
shapes for all EntityType
s.\n Each EntityTypeSort
shape will have SortBy
and\n SortOrder
applicable for fields on that EntityType
. This\n can be used to sort the results of the filter query.
Array of EntitySummary
objects.
The value of the next token if it exists. Null if there is no more result.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacecatalog#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacecatalog#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.marketplacecatalog#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplacecatalog#InternalServiceException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplacecatalog#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Lists all tags that have been added to a resource (either an entity or change set).
", + "smithy.api#http": { + "method": "POST", + "uri": "/ListTagsForResource", + "code": 200 + } + } + }, + "com.amazonaws.marketplacecatalog#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.marketplacecatalog#ResourceARN", + "traits": { + "smithy.api#documentation": "Required. The Amazon Resource Name (ARN) associated with the resource you want to list\n tags on.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacecatalog#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "ResourceArn": { + "target": "com.amazonaws.marketplacecatalog#ResourceARN", + "traits": { + "smithy.api#documentation": "Required. The ARN associated with the resource you want to list tags on.
" + } + }, + "Tags": { + "target": "com.amazonaws.marketplacecatalog#TagList", + "traits": { + "smithy.api#documentation": "Required. A list of objects specifying each key name and value. Number of objects\n allowed: 1-50.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacecatalog#NextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^[\\w+=.:@\\-\\/]$" + } + }, + "com.amazonaws.marketplacecatalog#OfferAvailabilityEndDateFilter": { + "type": "structure", + "members": { + "DateRange": { + "target": "com.amazonaws.marketplacecatalog#OfferAvailabilityEndDateFilterDateRange", + "traits": { + "smithy.api#documentation": "Allows filtering on the AvailabilityEndDate
of an offer with date range as input.
Allows filtering on the AvailabilityEndDate
of an offer.
Allows filtering on the AvailabilityEndDate
of an offer after a date.
Allows filtering on the AvailabilityEndDate
of an offer before a date.
Allows filtering on the AvailabilityEndDate
of an offer with date range as input.
Allows filtering on the BuyerAccounts
of an offer with wild card input.
Allows filtering on the BuyerAccounts
of an offer.
Allows filtering on entity id of an offer with list input.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Allows filtering on the entity id of an offer.
" + } + }, + "com.amazonaws.marketplacecatalog#OfferEntityIdFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#OfferEntityIdString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#OfferEntityIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[a-zA-Z0-9][.a-zA-Z0-9/-]+[a-zA-Z0-9]$" + } + }, + "com.amazonaws.marketplacecatalog#OfferFilters": { + "type": "structure", + "members": { + "EntityId": { + "target": "com.amazonaws.marketplacecatalog#OfferEntityIdFilter", + "traits": { + "smithy.api#documentation": "Allows filtering on EntityId
of an offer.
Allows filtering on the Name
of an offer.
Allows filtering on the ProductId
of an offer.
Allows filtering on the ReleaseDate
of an offer.
Allows filtering on the AvailabilityEndDate
of an offer.
Allows filtering on the BuyerAccounts
of an offer.
Allows filtering on the State
of an offer.
Allows filtering on the Targeting
of an offer.
Allows filtering on the LastModifiedDate
of an offer.
A filter for offers entity.
" + } + }, + "com.amazonaws.marketplacecatalog#OfferLastModifiedDateFilter": { + "type": "structure", + "members": { + "DateRange": { + "target": "com.amazonaws.marketplacecatalog#OfferLastModifiedDateFilterDateRange", + "traits": { + "smithy.api#documentation": "Allows filtering on the LastModifiedDate
of an offer with date range as input.
Allows filtering on the LastModifiedDate
of an offer.
Allows filtering on the LastModifiedDate
of an offer after a date.
Allows filtering on the LastModifiedDate
of an offer before a date.
Allows filtering on the LastModifiedDate
of an offer with date range as input.
Allows filtering on the Name
of an offer with list input.
Allows filtering on the Name
of an offer with wild card input.
Allows filtering on the Name
of an offer.
Allows filtering on the ProductId
of an offer with list input.
Allows filtering on the ProductId
of an offer.
Allows filtering on the ReleaseDate
of an offer with date range as input.
Allows filtering on the ReleaseDate
of an offer.
Allows filtering on the ReleaseDate
of offers after a date.
Allows filtering on the ReleaseDate
of offers before a date.
Allows filtering on the ReleaseDate
of an offer with date range as input.
Allows to sort offers.
" + } + }, + "SortOrder": { + "target": "com.amazonaws.marketplacecatalog#SortOrder", + "traits": { + "smithy.api#documentation": "Allows to sort offers.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Allows to sort offers.
" + } + }, + "com.amazonaws.marketplacecatalog#OfferSortBy": { + "type": "enum", + "members": { + "EntityId": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EntityId" + } + }, + "Name": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Name" + } + }, + "ProductId": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ProductId" + } + }, + "ReleaseDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ReleaseDate" + } + }, + "AvailabilityEndDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AvailabilityEndDate" + } + }, + "BuyerAccounts": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BuyerAccounts" + } + }, + "State": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "State" + } + }, + "Targeting": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Targeting" + } + }, + "LastModifiedDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LastModifiedDate" + } + } + } + }, + "com.amazonaws.marketplacecatalog#OfferStateFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#OfferStateFilterValueList", + "traits": { + "smithy.api#documentation": "Allows filtering on the State
of an offer with list input.
Allows filtering on the State
of an offer.
The name of the offer.
" + } + }, + "ProductId": { + "target": "com.amazonaws.marketplacecatalog#OfferProductIdString", + "traits": { + "smithy.api#documentation": "The product ID of the offer.
" + } + }, + "ReleaseDate": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "The release date of the offer.
" + } + }, + "AvailabilityEndDate": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "The availability end date of the offer.
" + } + }, + "BuyerAccounts": { + "target": "com.amazonaws.marketplacecatalog#OfferBuyerAccountsList", + "traits": { + "smithy.api#documentation": "The buyer accounts in the offer.
" + } + }, + "State": { + "target": "com.amazonaws.marketplacecatalog#OfferStateString", + "traits": { + "smithy.api#documentation": "The status of the offer.
" + } + }, + "Targeting": { + "target": "com.amazonaws.marketplacecatalog#OfferTargetingList", + "traits": { + "smithy.api#documentation": "The targeting in the offer.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Summarized information about an offer.
" + } + }, + "com.amazonaws.marketplacecatalog#OfferTargetingFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#OfferTargetingFilterValueList", + "traits": { + "smithy.api#documentation": "Allows filtering on the Targeting
of an offer with list input.
Allows filtering on the Targeting
of an offer.
Attaches a resource-based policy to an entity. Examples of an entity include:\n AmiProduct
and ContainerProduct
.
The Amazon Resource Name (ARN) of the entity resource you want to associate with a\n resource policy.
", + "smithy.api#required": {} + } + }, + "Policy": { + "target": "com.amazonaws.marketplacecatalog#ResourcePolicyJson", + "traits": { + "smithy.api#documentation": "The policy document to set; formatted in JSON.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacecatalog#PutResourcePolicyResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacecatalog#RequestedChangeList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#Change" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 20 + } + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationAvailabilityEndDateFilter": { + "type": "structure", + "members": { + "DateRange": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationAvailabilityEndDateFilterDateRange", + "traits": { + "smithy.api#documentation": "Allows filtering on AvailabilityEndDate
of a ResaleAuthorization with date range as input
Allows filtering on AvailabilityEndDate
of a ResaleAuthorization with date value as input.
Allows filtering on AvailabilityEndDate
of a ResaleAuthorization.
Allows filtering on AvailabilityEndDate
of a ResaleAuthorization after a date.
Allows filtering on AvailabilityEndDate
of a ResaleAuthorization before a date.
Allows filtering on AvailabilityEndDate
of a ResaleAuthorization with date range as input.
Allows filtering on CreatedDate
of a ResaleAuthorization with date range as input.
Allows filtering on CreatedDate
of a ResaleAuthorization with date value as input.
Allows filtering on CreatedDate
of a ResaleAuthorization.
Allows filtering on CreatedDate
of a ResaleAuthorization after a date.
Allows filtering on CreatedDate
of a ResaleAuthorization before a date.
Allows filtering on CreatedDate
of a ResaleAuthorization with date range as input.
Allows filtering on EntityId
of a ResaleAuthorization with list input.
Allows filtering on EntityId
of a ResaleAuthorization.
Allows filtering on the EntityId
of a ResaleAuthorization.
Allows filtering on the Name
of a ResaleAuthorization.
Allows filtering on the ProductId
of a ResaleAuthorization.
Allows filtering on the CreatedDate
of a ResaleAuthorization.
Allows filtering on the AvailabilityEndDate
of a ResaleAuthorization.
Allows filtering on the ManufacturerAccountId
of a ResaleAuthorization.
Allows filtering on the ProductName
of a ResaleAuthorization.
Allows filtering on the ManufacturerLegalName
of a ResaleAuthorization.
Allows filtering on the ResellerAccountID
of a ResaleAuthorization.
Allows filtering on the ResellerLegalName
of a ResaleAuthorization.
Allows filtering on the Status
of a ResaleAuthorization.
Allows filtering on the OfferExtendedStatus
of a ResaleAuthorization.
Allows filtering on the LastModifiedDate
of a ResaleAuthorization.
A filter for ResaleAuthorization entity.
" + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationLastModifiedDateFilter": { + "type": "structure", + "members": { + "DateRange": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationLastModifiedDateFilterDateRange", + "traits": { + "smithy.api#documentation": "Allows filtering on the LastModifiedDate
of a ResaleAuthorization with date range as input.
Allows filtering on the LastModifiedDate
of a ResaleAuthorization.
Allows filtering on the LastModifiedDate
of a ResaleAuthorization after a date.
Allows filtering on the LastModifiedDate
of a ResaleAuthorization before a date.
Allows filtering on the LastModifiedDate
of a ResaleAuthorization with date range as input.
Allows filtering on the ManufacturerAccountId
of a ResaleAuthorization with list input.
Allows filtering on the ManufacturerAccountId
of a ResaleAuthorization with wild card input.
Allows filtering on the ManufacturerAccountId
of a ResaleAuthorization.
Allows filtering on the ManufacturerLegalName
of a ResaleAuthorization with list input.
Allows filtering on the ManufacturerLegalName
of a ResaleAuthorization with wild card input.
Allows filtering on the ManufacturerLegalName
of a ResaleAuthorization.
Allows filtering on the Name
of a ResaleAuthorization with list input.
Allows filtering on the Name
of a ResaleAuthorization with wild card input.
Allows filtering on the Name
of a ResaleAuthorization.
Allows filtering on the OfferExtendedStatus
of a ResaleAuthorization with list input.
Allows filtering on the OfferExtendedStatus
of a ResaleAuthorization.
Allows filtering on the ProductId
of a ResaleAuthorization with list input.
Allows filtering on the ProductId
of a ResaleAuthorization with wild card input.
Allows filtering on the ProductId
of a ResaleAuthorization.
Allows filtering on the ProductName
of a ResaleAuthorization with list input.
Allows filtering on the ProductName
of a ResaleAuthorization with wild card input.
Allows filtering on the ProductName
of a ResaleAuthorization.
Allows filtering on the ResellerAccountID
of a ResaleAuthorization with list input.
Allows filtering on the ResellerAccountID
of a ResaleAuthorization with wild card input.
Allows filtering on the ResellerAccountID
of a ResaleAuthorization.
Allows filtering on the ResellerLegalNameProductName of a ResaleAuthorization with list input.
" + } + }, + "WildCardValue": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationResellerLegalNameFilterWildcard", + "traits": { + "smithy.api#documentation": "Allows filtering on the ResellerLegalName of a ResaleAuthorization with wild card input.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Allows filtering on the ResellerLegalName of a ResaleAuthorization.
" + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationResellerLegalNameFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationResellerLegalNameString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationResellerLegalNameFilterWildcard": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^(.)+$" + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationResellerLegalNameString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^(.)+$" + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationSort": { + "type": "structure", + "members": { + "SortBy": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationSortBy", + "traits": { + "smithy.api#documentation": "Allows to sort ResaleAuthorization.
" + } + }, + "SortOrder": { + "target": "com.amazonaws.marketplacecatalog#SortOrder", + "traits": { + "smithy.api#documentation": "Allows to sort ResaleAuthorization.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Allows to sort ResaleAuthorization.
" + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationSortBy": { + "type": "enum", + "members": { + "EntityId": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EntityId" + } + }, + "Name": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Name" + } + }, + "ProductId": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ProductId" + } + }, + "ProductName": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ProductName" + } + }, + "ManufacturerAccountId": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ManufacturerAccountId" + } + }, + "ManufacturerLegalName": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ManufacturerLegalName" + } + }, + "ResellerAccountID": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResellerAccountID" + } + }, + "ResellerLegalName": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ResellerLegalName" + } + }, + "Status": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Status" + } + }, + "OfferExtendedStatus": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OfferExtendedStatus" + } + }, + "CreatedDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CreatedDate" + } + }, + "AvailabilityEndDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AvailabilityEndDate" + } + }, + "LastModifiedDate": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LastModifiedDate" + } + } + } + }, + "com.amazonaws.marketplacecatalog#ResaleAuthorizationStatusFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationStatusFilterValueList", + "traits": { + "smithy.api#documentation": "Allows filtering on the Status
of a ResaleAuthorization with list input.
Allows filtering on the Status
of a ResaleAuthorization.
The name of the ResaleAuthorization.
" + } + }, + "ProductId": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationProductIdString", + "traits": { + "smithy.api#documentation": "The product ID of the ResaleAuthorization.
" + } + }, + "ProductName": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationProductNameString", + "traits": { + "smithy.api#documentation": "The product name of the ResaleAuthorization.
" + } + }, + "ManufacturerAccountId": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationManufacturerAccountIdString", + "traits": { + "smithy.api#documentation": "The manufacturer account ID of the ResaleAuthorization.
" + } + }, + "ManufacturerLegalName": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationManufacturerLegalNameString", + "traits": { + "smithy.api#documentation": "The manufacturer legal name of the ResaleAuthorization.
" + } + }, + "ResellerAccountID": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationResellerAccountIDString", + "traits": { + "smithy.api#documentation": "The reseller account ID of the ResaleAuthorization.
" + } + }, + "ResellerLegalName": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationResellerLegalNameString", + "traits": { + "smithy.api#documentation": "The reseller legal name of the ResaleAuthorization
" + } + }, + "Status": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationStatusString", + "traits": { + "smithy.api#documentation": "The status of the ResaleAuthorization.
" + } + }, + "OfferExtendedStatus": { + "target": "com.amazonaws.marketplacecatalog#ResaleAuthorizationOfferExtendedStatusString", + "traits": { + "smithy.api#documentation": "The offer extended status of the ResaleAuthorization
" + } + }, + "CreatedDate": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "The created date of the ResaleAuthorization.
" + } + }, + "AvailabilityEndDate": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "The availability end date of the ResaleAuthorization.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Summarized information about a Resale Authorization.
" + } + }, + "com.amazonaws.marketplacecatalog#ResourceARN": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^arn:[\\w+=/,.@-]+:aws-marketplace:[\\w+=/,.@-]*:[0-9]+:[\\w+=,.@-]+(/[\\w+=,.@-]+)*$" + } + }, + "com.amazonaws.marketplacecatalog#ResourceId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 + }, + "smithy.api#pattern": "^[\\w\\-]+$" + } + }, + "com.amazonaws.marketplacecatalog#ResourceIdList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#ResourceId" + } + }, + "com.amazonaws.marketplacecatalog#ResourceInUseException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" + } + }, + "traits": { + "smithy.api#documentation": "The resource is currently in use.
", + "smithy.api#error": "client", + "smithy.api#httpError": 423 + } + }, + "com.amazonaws.marketplacecatalog#ResourceNotFoundException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" + } + }, + "traits": { + "smithy.api#documentation": "The specified resource wasn't found.
\nHTTP status code: 404
", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.marketplacecatalog#ResourceNotSupportedException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" + } + }, + "traits": { + "smithy.api#documentation": "Currently, the specified resource is not supported.
", + "smithy.api#error": "client", + "smithy.api#httpError": 415 + } + }, + "com.amazonaws.marketplacecatalog#ResourcePolicyJson": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10240 + }, + "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$" + } + }, + "com.amazonaws.marketplacecatalog#SaaSProductEntityIdFilter": { + "type": "structure", + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductEntityIdFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique entity id values to be filtered on.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Object that allows filtering on entity id of a SaaS product.
" + } + }, + "com.amazonaws.marketplacecatalog#SaaSProductEntityIdFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductEntityIdString" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 10 + } + } + }, + "com.amazonaws.marketplacecatalog#SaaSProductEntityIdString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 255 }, - "Sort": { - "target": "com.amazonaws.marketplacecatalog#Sort", + "smithy.api#pattern": "^[a-zA-Z0-9][.a-zA-Z0-9/-]+[a-zA-Z0-9]$" + } + }, + "com.amazonaws.marketplacecatalog#SaaSProductFilters": { + "type": "structure", + "members": { + "EntityId": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductEntityIdFilter", "traits": { - "smithy.api#documentation": "An object that contains two attributes, SortBy
and\n SortOrder
.
Unique identifier for the SaaS product.
" } }, - "NextToken": { - "target": "com.amazonaws.marketplacecatalog#NextToken", + "ProductTitle": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductTitleFilter", "traits": { - "smithy.api#documentation": "The value of the next token, if it exists. Null if there are no more results.
" + "smithy.api#documentation": "The title of the SaaS product.
" } }, - "MaxResults": { - "target": "com.amazonaws.marketplacecatalog#ListEntitiesMaxResultInteger", + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductVisibilityFilter", "traits": { - "smithy.api#documentation": "Specifies the upper limit of the elements on a single page. If a value isn't provided,\n the default value is 20.
" + "smithy.api#documentation": "The visibility of the SaaS product.
" } }, - "OwnershipType": { - "target": "com.amazonaws.marketplacecatalog#OwnershipType", + "LastModifiedDate": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductLastModifiedDateFilter", "traits": { - "smithy.api#documentation": "Filters the returned set of entities based on their owner. The default is\n SELF
. To list entities shared with you\n through AWS Resource Access Manager (AWS RAM), set to SHARED
. Entities shared through the AWS Marketplace\n Catalog API PutResourcePolicy
operation can't be discovered through the\n SHARED
parameter.
The last date on which the SaaS product was modified.
" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "Object containing all the filter fields for SaaS products. Client can add a maximum of\n 8 filters in a single ListEntities
request.
Array of EntitySummary
object.
The value of the next token if it exists. Null if there is no more result.
" + "smithy.api#documentation": "Dates between which the SaaS product was last modified.
" } } }, "traits": { - "smithy.api#output": {} - } - }, - "com.amazonaws.marketplacecatalog#ListTagsForResource": { - "type": "operation", - "input": { - "target": "com.amazonaws.marketplacecatalog#ListTagsForResourceRequest" - }, - "output": { - "target": "com.amazonaws.marketplacecatalog#ListTagsForResourceResponse" - }, - "errors": [ - { - "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" - }, - { - "target": "com.amazonaws.marketplacecatalog#InternalServiceException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ThrottlingException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Lists all tags that have been added to a resource (either an entity or change set).
", - "smithy.api#http": { - "method": "POST", - "uri": "/ListTagsForResource", - "code": 200 - } + "smithy.api#documentation": "Object that allows filtering based on the last modified date of SaaS products
" } }, - "com.amazonaws.marketplacecatalog#ListTagsForResourceRequest": { + "com.amazonaws.marketplacecatalog#SaaSProductLastModifiedDateFilterDateRange": { "type": "structure", "members": { - "ResourceArn": { - "target": "com.amazonaws.marketplacecatalog#ResourceARN", + "AfterValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", "traits": { - "smithy.api#documentation": "Required. The Amazon Resource Name (ARN) associated with the resource you want to list\n tags on.
", - "smithy.api#required": {} + "smithy.api#documentation": "Date after which the SaaS product was last modified.
" + } + }, + "BeforeValue": { + "target": "com.amazonaws.marketplacecatalog#DateTimeISO8601", + "traits": { + "smithy.api#documentation": "Date before which the SaaS product was last modified.
" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "Object that contains date range of the last modified date to be filtered on. You can optionally provide a BeforeValue
and/or AfterValue
. Both are inclusive.
Required. The ARN associated with the resource you want to list tags on.
" + "smithy.api#documentation": "Field to sort the SaaS products by.
" } }, - "Tags": { - "target": "com.amazonaws.marketplacecatalog#TagList", + "SortOrder": { + "target": "com.amazonaws.marketplacecatalog#SortOrder", "traits": { - "smithy.api#documentation": "Required. A list of objects specifying each key name and value. Number of objects\n allowed: 1-50.
" + "smithy.api#documentation": "The sorting order. Can be ASCENDING
or DESCENDING
. The default value is DESCENDING
.
Objects that allows sorting on SaaS products based on certain fields and sorting order.
" } }, - "com.amazonaws.marketplacecatalog#OwnershipType": { + "com.amazonaws.marketplacecatalog#SaaSProductSortBy": { "type": "enum", "members": { - "SELF": { + "EntityId": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "SELF" + "smithy.api#enumValue": "EntityId" } }, - "SHARED": { + "ProductTitle": { "target": "smithy.api#Unit", "traits": { - "smithy.api#enumValue": "SHARED" + "smithy.api#enumValue": "ProductTitle" } - } - } - }, - "com.amazonaws.marketplacecatalog#PutResourcePolicy": { - "type": "operation", - "input": { - "target": "com.amazonaws.marketplacecatalog#PutResourcePolicyRequest" - }, - "output": { - "target": "com.amazonaws.marketplacecatalog#PutResourcePolicyResponse" - }, - "errors": [ - { - "target": "com.amazonaws.marketplacecatalog#AccessDeniedException" - }, - { - "target": "com.amazonaws.marketplacecatalog#InternalServiceException" }, - { - "target": "com.amazonaws.marketplacecatalog#ResourceNotFoundException" - }, - { - "target": "com.amazonaws.marketplacecatalog#ThrottlingException" + "Visibility": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Visibility" + } }, - { - "target": "com.amazonaws.marketplacecatalog#ValidationException" - } - ], - "traits": { - "smithy.api#documentation": "Attaches a resource-based policy to an entity. Examples of an entity include:\n AmiProduct
and ContainerProduct
.
The Amazon Resource Name (ARN) of the entity resource you want to associate with a\n resource policy.
", - "smithy.api#required": {} + "smithy.api#documentation": "The title of the SaaS product.
" } }, - "Policy": { - "target": "com.amazonaws.marketplacecatalog#ResourcePolicyJson", + "Visibility": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductVisibilityString", "traits": { - "smithy.api#documentation": "The policy document to set; formatted in JSON.
", - "smithy.api#required": {} + "smithy.api#documentation": "The lifecycle of the SaaS product.
" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "Object that contains summarized information about a SaaS product.
" } }, - "com.amazonaws.marketplacecatalog#PutResourcePolicyResponse": { + "com.amazonaws.marketplacecatalog#SaaSProductTitleFilter": { "type": "structure", - "members": {}, + "members": { + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductTitleFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique product title values to be filtered on.
" + } + }, + "WildCardValue": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductTitleString", + "traits": { + "smithy.api#documentation": "A string that will be the wildCard
input for product tile filter. It matches the provided value as a substring in the actual value.
Object that allows filtering on product title.
" } }, - "com.amazonaws.marketplacecatalog#RequestedChangeList": { + "com.amazonaws.marketplacecatalog#SaaSProductTitleFilterValueList": { "type": "list", "member": { - "target": "com.amazonaws.marketplacecatalog#Change" + "target": "com.amazonaws.marketplacecatalog#SaaSProductTitleString" }, "traits": { "smithy.api#length": { "min": 1, - "max": 20 + "max": 10 } } }, - "com.amazonaws.marketplacecatalog#ResourceARN": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 255 - }, - "smithy.api#pattern": "^arn:[\\w+=/,.@-]+:aws-marketplace:[\\w+=/,.@-]*:[0-9]+:[\\w+=,.@-]+(/[\\w+=,.@-]+)*$" - } - }, - "com.amazonaws.marketplacecatalog#ResourceId": { + "com.amazonaws.marketplacecatalog#SaaSProductTitleString": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, - "smithy.api#pattern": "^[\\w\\-]+$" - } - }, - "com.amazonaws.marketplacecatalog#ResourceIdList": { - "type": "list", - "member": { - "target": "com.amazonaws.marketplacecatalog#ResourceId" + "smithy.api#pattern": "^(.)+$" } }, - "com.amazonaws.marketplacecatalog#ResourceInUseException": { + "com.amazonaws.marketplacecatalog#SaaSProductVisibilityFilter": { "type": "structure", "members": { - "Message": { - "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" + "ValueList": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductVisibilityFilterValueList", + "traits": { + "smithy.api#documentation": "A string array of unique visibility values to be filtered on.
" + } } }, "traits": { - "smithy.api#documentation": "The resource is currently in use.
", - "smithy.api#error": "client", - "smithy.api#httpError": 423 + "smithy.api#documentation": "Object that allows filtering on the visibility of the product in the AWS Marketplace.
" } }, - "com.amazonaws.marketplacecatalog#ResourceNotFoundException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" - } + "com.amazonaws.marketplacecatalog#SaaSProductVisibilityFilterValueList": { + "type": "list", + "member": { + "target": "com.amazonaws.marketplacecatalog#SaaSProductVisibilityString" }, "traits": { - "smithy.api#documentation": "The specified resource wasn't found.
\nHTTP status code: 404
", - "smithy.api#error": "client", - "smithy.api#httpError": 404 - } - }, - "com.amazonaws.marketplacecatalog#ResourceNotSupportedException": { - "type": "structure", - "members": { - "Message": { - "target": "com.amazonaws.marketplacecatalog#ExceptionMessageContent" + "smithy.api#length": { + "min": 1, + "max": 10 } - }, - "traits": { - "smithy.api#documentation": "Currently, the specified resource is not supported.
", - "smithy.api#error": "client", - "smithy.api#httpError": 415 } }, - "com.amazonaws.marketplacecatalog#ResourcePolicyJson": { - "type": "string", - "traits": { - "smithy.api#length": { - "min": 1, - "max": 10240 + "com.amazonaws.marketplacecatalog#SaaSProductVisibilityString": { + "type": "enum", + "members": { + "Limited": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Limited" + } }, - "smithy.api#pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$" + "Public": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Public" + } + }, + "Restricted": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Restricted" + } + }, + "Draft": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Draft" + } + } } }, "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException": { diff --git a/codegen/sdk-codegen/aws-models/marketplace-deployment.json b/codegen/sdk-codegen/aws-models/marketplace-deployment.json new file mode 100644 index 00000000000..8912d05750b --- /dev/null +++ b/codegen/sdk-codegen/aws-models/marketplace-deployment.json @@ -0,0 +1,1426 @@ +{ + "smithy": "2.0", + "shapes": { + "com.amazonaws.marketplacedeployment#AWSMPDeploymentParametersService": { + "type": "service", + "version": "2023-01-25", + "operations": [ + { + "target": "com.amazonaws.marketplacedeployment#ListTagsForResource" + }, + { + "target": "com.amazonaws.marketplacedeployment#TagResource" + }, + { + "target": "com.amazonaws.marketplacedeployment#UntagResource" + } + ], + "resources": [ + { + "target": "com.amazonaws.marketplacedeployment#DeploymentParameter" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "Marketplace Deployment", + "arnNamespace": "aws-marketplace", + "endpointPrefix": "deployment-marketplace" + }, + "aws.auth#sigv4": { + "name": "aws-marketplace" + }, + "aws.protocols#restJson1": {}, + "smithy.api#cors": {}, + "smithy.api#documentation": "The AWS Marketplace Deployment Service supports the Quick Launch experience, which is a deployment option for software as a service (SaaS) products. Quick Launch simplifies and reduces the time, resources, and steps required to configure, deploy, and launch a products. The AWS Marketplace Deployment Service provides sellers with a secure method for passing deployment parameters (for example, API keys and external IDs) to buyers during the Quick Launch experience.
", + "smithy.api#title": "AWS Marketplace Deployment Service", + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "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, + "default": false, + "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" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://deployment-marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "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": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://deployment-marketplace-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "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": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://deployment-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://deployment-marketplace.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://deployment-marketplace-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://deployment-marketplace-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://deployment-marketplace.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", + "expect": { + "endpoint": { + "url": "https://deployment-marketplace.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://deployment-marketplace-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://deployment-marketplace-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://deployment-marketplace.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://deployment-marketplace.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://deployment-marketplace-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://deployment-marketplace-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://deployment-marketplace.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://deployment-marketplace.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://deployment-marketplace-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://deployment-marketplace.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://deployment-marketplace-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://deployment-marketplace.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" + } + } + }, + "com.amazonaws.marketplacedeployment#AccessDeniedException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "You do not have sufficient access to perform this action.
", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.marketplacedeployment#Catalog": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z_-]+$" + } + }, + "com.amazonaws.marketplacedeployment#ClientToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 32, + "max": 64 + }, + "smithy.api#pattern": "^[a-zA-Z0-9/_+=.:@-]+$" + } + }, + "com.amazonaws.marketplacedeployment#ConflictException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "resourceId": { + "target": "com.amazonaws.marketplacedeployment#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier for the resource associated with the error.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The request configuration has conflicts. For details, see the accompanying error message.
", + "smithy.api#error": "client", + "smithy.api#httpError": 409 + } + }, + "com.amazonaws.marketplacedeployment#DeploymentParameter": { + "type": "resource", + "identifiers": { + "catalog": { + "target": "com.amazonaws.marketplacedeployment#Catalog" + }, + "productId": { + "target": "com.amazonaws.marketplacedeployment#ResourceId" + }, + "deploymentParameterId": { + "target": "com.amazonaws.marketplacedeployment#DeploymentParameterResourceIdentifier" + } + }, + "create": { + "target": "com.amazonaws.marketplacedeployment#PutDeploymentParameter" + }, + "traits": { + "aws.api#arn": { + "template": "DeploymentParameter:catalogs/{catalog}/products/{productId}/{deploymentParameterId}" + } + } + }, + "com.amazonaws.marketplacedeployment#DeploymentParameterInput": { + "type": "structure", + "members": { + "name": { + "target": "com.amazonaws.marketplacedeployment#DeploymentParameterName", + "traits": { + "smithy.api#documentation": "The desired name of the deployment parameter. This is the identifier on which deployment parameters are keyed for a given buyer and product. If this name matches an existing deployment parameter, this request will update the existing resource.
", + "smithy.api#required": {} + } + }, + "secretString": { + "target": "com.amazonaws.marketplacedeployment#SecretString", + "traits": { + "smithy.api#documentation": "The text to encrypt and store in the secret.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The shape containing the requested deployment parameter name and secretString.
" + } + }, + "com.amazonaws.marketplacedeployment#DeploymentParameterName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 400 + }, + "smithy.api#pattern": "^[a-zA-Z0-9/_+=.@-]+$" + } + }, + "com.amazonaws.marketplacedeployment#DeploymentParameterResourceIdentifier": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32 + }, + "smithy.api#pattern": "^dp-[a-zA-Z0-9]+$" + } + }, + "com.amazonaws.marketplacedeployment#InternalServerException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "There was an internal service exception.
", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.marketplacedeployment#ListTagsForResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacedeployment#ListTagsForResourceRequest" + }, + "output": { + "target": "com.amazonaws.marketplacedeployment#ListTagsForResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.marketplacedeployment#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplacedeployment#InternalServerException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ValidationException" + } + ], + "traits": { + "aws.iam#actionPermissionDescription": "Grants permission to list all tags on a DeploymentParameter resource", + "smithy.api#documentation": "Lists all tags that have been added to a deployment parameter resource.
", + "smithy.api#examples": [ + { + "title": "Listing tags for a deployment parameter", + "documentation": "The following example demonstrates listing the tags for a deployment parameter. If no tags are present, the API will return an empty map.", + "input": { + "resourceArn": "arn:aws:aws-marketplace:us-east-1:123456789012:DeploymentParameter:catalogs/AWSMarketplace/products/product-1234/dp-uniqueidentifier" + }, + "output": { + "tags": { + "FooKey": "BarValue", + "HelloKey": "WorldValue" + } + } + } + ], + "smithy.api#http": { + "method": "GET", + "uri": "/tags/{resourceArn}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.marketplacedeployment#ListTagsForResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) associated with the deployment parameter resource you want to list tags on.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacedeployment#ListTagsForResourceResponse": { + "type": "structure", + "members": { + "tags": { + "target": "com.amazonaws.marketplacedeployment#Tags", + "traits": { + "smithy.api#documentation": "A map of key-value pairs, where each pair represents a tag present on the resource.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacedeployment#PutDeploymentParameter": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacedeployment#PutDeploymentParameterRequest" + }, + "output": { + "target": "com.amazonaws.marketplacedeployment#PutDeploymentParameterResponse" + }, + "errors": [ + { + "target": "com.amazonaws.marketplacedeployment#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ConflictException" + }, + { + "target": "com.amazonaws.marketplacedeployment#InternalServerException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates or updates a deployment parameter and is targeted by catalog
and agreementId
.
The catalog related to the request. Fixed value: AWS Marketplace
\n
The product for which AWS Marketplace will save secrets for the buyer’s account.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "agreementId": { + "target": "com.amazonaws.marketplacedeployment#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier of the agreement.
", + "smithy.api#required": {} + } + }, + "deploymentParameter": { + "target": "com.amazonaws.marketplacedeployment#DeploymentParameterInput", + "traits": { + "smithy.api#documentation": "The deployment parameter targeted to the acceptor of an agreement for which to create the AWS Secret Manager resource.
", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.marketplacedeployment#TagsMap", + "traits": { + "smithy.api#documentation": "A map of key-value pairs, where each pair represents a tag saved to the resource. Tags will only be applied for create operations, and they'll be ignored if the resource already exists.
" + } + }, + "expirationDate": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "The date when deployment parameters expire and are scheduled for deletion.
", + "smithy.api#timestampFormat": "date-time" + } + }, + "clientToken": { + "target": "com.amazonaws.marketplacedeployment#ClientToken", + "traits": { + "smithy.api#documentation": "The idempotency token for deployment parameters. A unique identifier for the new version.
", + "smithy.api#idempotencyToken": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacedeployment#PutDeploymentParameterResponse": { + "type": "structure", + "members": { + "resourceArn": { + "target": "com.amazonaws.marketplacedeployment#ResourceArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) associated with the deployment parameter resource you want to create or update.
", + "smithy.api#required": {} + } + }, + "agreementId": { + "target": "com.amazonaws.marketplacedeployment#ResourceId", + "traits": { + "smithy.api#documentation": "The unique identifier of the agreement.
", + "smithy.api#required": {} + } + }, + "deploymentParameterId": { + "target": "com.amazonaws.marketplacedeployment#DeploymentParameterResourceIdentifier", + "traits": { + "smithy.api#documentation": "The unique identifier of the deployment parameter.
", + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.marketplacedeployment#TagsMap", + "traits": { + "smithy.api#documentation": "A map of key-value pairs, where each pair represents a tag saved to the resource. Tags will only be applied for create operations, and they'll be ignored if the resource already exists.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacedeployment#ResourceArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + }, + "smithy.api#pattern": "^[a-zA-Z0-9:*/-]+$" + } + }, + "com.amazonaws.marketplacedeployment#ResourceId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 64 + }, + "smithy.api#pattern": "^[A-Za-z0-9_/-]+$" + } + }, + "com.amazonaws.marketplacedeployment#ResourceNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The specified resource wasn't found.
", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.marketplacedeployment#SecretString": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 15000 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The maximum number of requests per account has been exceeded.
", + "smithy.api#error": "client", + "smithy.api#httpError": 402 + } + }, + "com.amazonaws.marketplacedeployment#StringList": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.marketplacedeployment#TagKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 128 + }, + "smithy.api#pattern": "^[a-zA-Z0-9/_+=.:@-]+$" + } + }, + "com.amazonaws.marketplacedeployment#TagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacedeployment#TagResourceRequest" + }, + "output": { + "target": "com.amazonaws.marketplacedeployment#TagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.marketplacedeployment#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ConflictException" + }, + { + "target": "com.amazonaws.marketplacedeployment#InternalServerException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ValidationException" + } + ], + "traits": { + "aws.iam#actionPermissionDescription": "Grants permission to add or overwrite one or more tags for the specified DeploymentParameter resource", + "smithy.api#documentation": "Tags a resource.
", + "smithy.api#examples": [ + { + "title": "Adding tags to a deployment parameter", + "documentation": "The following example demonstrates adding two tags to a deployment parameter. There is no output from this API.", + "input": { + "resourceArn": "arn:aws:aws-marketplace:us-east-1:123456789012:DeploymentParameter:catalogs/AWSMarketplace/products/product-1234/dp-uniqueidentifier", + "tags": { + "FooKey": "BarValue", + "HelloKey": "WorldValue" + } + }, + "output": {} + } + ], + "smithy.api#http": { + "method": "POST", + "uri": "/tags/{resourceArn}", + "code": 204 + } + } + }, + "com.amazonaws.marketplacedeployment#TagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) associated with the resource you want to tag.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tags": { + "target": "com.amazonaws.marketplacedeployment#Tags", + "traits": { + "smithy.api#documentation": "A map of key-value pairs, where each pair represents a tag present on the resource.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacedeployment#TagResourceResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacedeployment#TagValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^[a-zA-Z0-9/_+=.:@-]+$" + } + }, + "com.amazonaws.marketplacedeployment#Tags": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.marketplacedeployment#TagsMap": { + "type": "map", + "key": { + "target": "com.amazonaws.marketplacedeployment#TagKey" + }, + "value": { + "target": "com.amazonaws.marketplacedeployment#TagValue" + }, + "traits": { + "smithy.api#length": { + "max": 50 + } + } + }, + "com.amazonaws.marketplacedeployment#ThrottlingException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Too many requests.
", + "smithy.api#error": "client", + "smithy.api#httpError": 429, + "smithy.api#retryable": { + "throttling": true + } + } + }, + "com.amazonaws.marketplacedeployment#UntagResource": { + "type": "operation", + "input": { + "target": "com.amazonaws.marketplacedeployment#UntagResourceRequest" + }, + "output": { + "target": "com.amazonaws.marketplacedeployment#UntagResourceResponse" + }, + "errors": [ + { + "target": "com.amazonaws.marketplacedeployment#AccessDeniedException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ConflictException" + }, + { + "target": "com.amazonaws.marketplacedeployment#InternalServerException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ThrottlingException" + }, + { + "target": "com.amazonaws.marketplacedeployment#ValidationException" + } + ], + "traits": { + "aws.iam#actionPermissionDescription": "Grants permission to disassociate one or more tags from the specified DeploymentParameter resource", + "smithy.api#documentation": "Removes a tag or list of tags from a resource.
", + "smithy.api#examples": [ + { + "title": "Removing tags from a deployment parameter", + "documentation": "The following example demonstrates removing two tags from a deployment parameter. For each, both the tag and the associated value are removed. There is no output from this API.", + "input": { + "resourceArn": "arn:aws:aws-marketplace:us-east-1:123456789012:DeploymentParameter:catalogs/AWSMarketplace/products/product-1234/dp-uniqueidentifier", + "tagKeys": [ + "FooKey", + "HelloKey" + ] + }, + "output": {} + } + ], + "smithy.api#http": { + "method": "DELETE", + "uri": "/tags/{resourceArn}", + "code": 204 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.marketplacedeployment#UntagResourceRequest": { + "type": "structure", + "members": { + "resourceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "tagKeys": { + "target": "com.amazonaws.marketplacedeployment#StringList", + "traits": { + "smithy.api#documentation": "A list of key names of tags to be removed.
", + "smithy.api#httpQuery": "tagKeys", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.marketplacedeployment#UntagResourceResponse": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.marketplacedeployment#ValidationException": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#required": {} + } + }, + "fieldName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The field name associated with the error.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "An error occurred during validation.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + } + } +} \ No newline at end of file diff --git a/codegen/sdk-codegen/aws-models/medialive.json b/codegen/sdk-codegen/aws-models/medialive.json index dba1a003782..608fb335957 100644 --- a/codegen/sdk-codegen/aws-models/medialive.json +++ b/codegen/sdk-codegen/aws-models/medialive.json @@ -3347,6 +3347,90 @@ "smithy.api#output": {} } }, + "com.amazonaws.medialive#ColorCorrection": { + "type": "structure", + "members": { + "InputColorSpace": { + "target": "com.amazonaws.medialive#ColorSpace", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The color space of the input.", + "smithy.api#jsonName": "inputColorSpace", + "smithy.api#required": {} + } + }, + "OutputColorSpace": { + "target": "com.amazonaws.medialive#ColorSpace", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The color space of the output.", + "smithy.api#jsonName": "outputColorSpace", + "smithy.api#required": {} + } + }, + "Uri": { + "target": "com.amazonaws.medialive#__string", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The URI of the 3D LUT file. The protocol must be 's3:' or 's3ssl:':.", + "smithy.api#jsonName": "uri", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Property of ColorCorrectionSettings. Used for custom color space conversion. The object identifies one 3D LUT file and specifies the input/output color space combination that the file will be used for." + } + }, + "com.amazonaws.medialive#ColorCorrectionSettings": { + "type": "structure", + "members": { + "GlobalColorCorrections": { + "target": "com.amazonaws.medialive#__listOfColorCorrection", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "An array of colorCorrections that applies when you are using 3D LUT files to perform color conversion on video. Each colorCorrection contains one 3D LUT file (that defines the color mapping for converting an input color space to an output color space), and the input/output combination that this 3D LUT file applies to. MediaLive reads the color space in the input metadata, determines the color space that you have specified for the output, and finds and uses the LUT file that applies to this combination.", + "smithy.api#jsonName": "globalColorCorrections", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Property of encoderSettings. Controls color conversion when you are using 3D LUT files to perform color conversion on video." + } + }, + "com.amazonaws.medialive#ColorSpace": { + "type": "enum", + "members": { + "HDR10": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HDR10" + } + }, + "HLG_2020": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HLG_2020" + } + }, + "REC_601": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REC_601" + } + }, + "REC_709": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REC_709" + } + } + }, + "traits": { + "smithy.api#documentation": "Property of colorCorrections. When you are using 3D LUT files to perform color conversion on video, these are the supported color spaces." + } + }, "com.amazonaws.medialive#ColorSpacePassthroughSettings": { "type": "structure", "members": {}, @@ -8514,6 +8598,13 @@ "smithy.api#jsonName": "captionDescriptions" } }, + "ColorCorrectionSettings": { + "target": "com.amazonaws.medialive#ColorCorrectionSettings", + "traits": { + "smithy.api#documentation": "Color correction settings", + "smithy.api#jsonName": "colorCorrectionSettings" + } + }, "FeatureActivations": { "target": "com.amazonaws.medialive#FeatureActivations", "traits": { @@ -25736,6 +25827,15 @@ "smithy.api#documentation": "Placeholder documentation for __listOfChannelSummary" } }, + "com.amazonaws.medialive#__listOfColorCorrection": { + "type": "list", + "member": { + "target": "com.amazonaws.medialive#ColorCorrection" + }, + "traits": { + "smithy.api#documentation": "Placeholder documentation for __listOfColorCorrection" + } + }, "com.amazonaws.medialive#__listOfFailoverCondition": { "type": "list", "member": { diff --git a/codegen/sdk-codegen/aws-models/qconnect.json b/codegen/sdk-codegen/aws-models/qconnect.json index 116df8f1ce0..83508b15623 100644 --- a/codegen/sdk-codegen/aws-models/qconnect.json +++ b/codegen/sdk-codegen/aws-models/qconnect.json @@ -67,6 +67,9 @@ { "target": "com.amazonaws.qconnect#NotifyRecommendationsReceived" }, + { + "target": "com.amazonaws.qconnect#PutFeedback" + }, { "target": "com.amazonaws.qconnect#QueryAssistant" }, @@ -287,7 +290,7 @@ } }, "traits": { - "smithy.api#documentation": "The capability configuration for a Amazon Q assistant.
" + "smithy.api#documentation": "The capability configuration for an Amazon Q assistant.
" } }, "com.amazonaws.qconnect#AssistantCapabilityType": { @@ -793,6 +796,20 @@ "smithy.api#documentation": "Details about the content data.
" } }, + "com.amazonaws.qconnect#ContentFeedbackData": { + "type": "union", + "members": { + "generativeContentFeedbackData": { + "target": "com.amazonaws.qconnect#GenerativeContentFeedbackData", + "traits": { + "smithy.api#documentation": "Information about the feedback for a generative target type.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Information about the feedback.
" + } + }, "com.amazonaws.qconnect#ContentMetadata": { "type": "map", "key": { @@ -1386,7 +1403,7 @@ } ], "traits": { - "smithy.api#documentation": "Creates a Amazon Q quick response.
", + "smithy.api#documentation": "Creates an Amazon Q quick response.
", "smithy.api#http": { "uri": "/knowledgeBases/{knowledgeBaseId}/quickResponses", "method": "POST" @@ -2115,6 +2132,21 @@ ] } }, + "com.amazonaws.qconnect#GenerativeContentFeedbackData": { + "type": "structure", + "members": { + "relevance": { + "target": "com.amazonaws.qconnect#Relevance", + "traits": { + "smithy.api#documentation": "The relevance of the feedback.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The feedback information for a generative target type.
" + } + }, "com.amazonaws.qconnect#GenerativeDataDetails": { "type": "structure", "members": { @@ -4072,6 +4104,114 @@ ] } }, + "com.amazonaws.qconnect#PutFeedback": { + "type": "operation", + "input": { + "target": "com.amazonaws.qconnect#PutFeedbackRequest" + }, + "output": { + "target": "com.amazonaws.qconnect#PutFeedbackResponse" + }, + "errors": [ + { + "target": "com.amazonaws.qconnect#AccessDeniedException" + }, + { + "target": "com.amazonaws.qconnect#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.qconnect#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Provides feedback against the specified assistant for the specified target. This API only supports generative targets.
", + "smithy.api#http": { + "uri": "/assistants/{assistantId}/feedback", + "method": "PUT" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.qconnect#PutFeedbackRequest": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "The identifier of the Amazon Q assistant.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "targetId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "The identifier of the feedback target.
", + "smithy.api#required": {} + } + }, + "targetType": { + "target": "com.amazonaws.qconnect#TargetType", + "traits": { + "smithy.api#documentation": "The type of the feedback target.
", + "smithy.api#required": {} + } + }, + "contentFeedback": { + "target": "com.amazonaws.qconnect#ContentFeedbackData", + "traits": { + "smithy.api#documentation": "Information about the feedback provided.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.qconnect#PutFeedbackResponse": { + "type": "structure", + "members": { + "assistantId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "The identifier of the Amazon Q assistant.
", + "smithy.api#required": {} + } + }, + "assistantArn": { + "target": "com.amazonaws.qconnect#UuidOrArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Amazon Q assistant.
", + "smithy.api#required": {} + } + }, + "targetId": { + "target": "com.amazonaws.qconnect#Uuid", + "traits": { + "smithy.api#documentation": "The identifier of the feedback target.
", + "smithy.api#required": {} + } + }, + "targetType": { + "target": "com.amazonaws.qconnect#TargetType", + "traits": { + "smithy.api#documentation": "The type of the feedback target.
", + "smithy.api#required": {} + } + }, + "contentFeedback": { + "target": "com.amazonaws.qconnect#ContentFeedbackData", + "traits": { + "smithy.api#documentation": "Information about the feedback provided.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.qconnect#QueryAssistant": { "type": "operation", "input": { @@ -5279,6 +5419,21 @@ ] } }, + "com.amazonaws.qconnect#Relevance": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "HELPFUL", + "name": "HELPFUL" + }, + { + "value": "NOT_HELPFUL", + "name": "NOT_HELPFUL" + } + ] + } + }, "com.amazonaws.qconnect#RelevanceLevel": { "type": "string", "traits": { @@ -5563,7 +5718,7 @@ } ], "traits": { - "smithy.api#documentation": "Searches existing Amazon Q quick responses in a Amazon Q knowledge base.
", + "smithy.api#documentation": "Searches existing Amazon Q quick responses in an Amazon Q knowledge base.
", "smithy.api#http": { "uri": "/knowledgeBases/{knowledgeBaseId}/search/quickResponses", "method": "POST" @@ -6228,6 +6383,21 @@ "target": "com.amazonaws.qconnect#TagValue" } }, + "com.amazonaws.qconnect#TargetType": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "RECOMMENDATION", + "name": "RECOMMENDATION" + }, + { + "value": "RESULT", + "name": "RESULT" + } + ] + } + }, "com.amazonaws.qconnect#TextData": { "type": "structure", "members": { @@ -6713,7 +6883,7 @@ }, "aws.protocols#restJson1": {}, "smithy.api#cors": {}, - "smithy.api#documentation": "Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution\n of Amazon Connect Wisdom that delivers real-time recommendations to help contact center\n agents resolve customer issues quickly and accurately.
\nAmazon Q automatically detects customer intent during calls and chats using\n conversational analytics and natural language understanding (NLU). It then provides agents\n with immediate, real-time generative responses and suggested actions, and links to relevant\n documents and articles. Agents can also query Amazon Q directly using natural language or\n keywords to answer customer requests.
\nUse the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or\n manage content by uploading custom files.
\nFor more information, see Use Amazon Q in Connect for generative AI\n powered agent assistance in real-time in the Amazon Connect\n Administrator Guide.
", + "smithy.api#documentation": "\n Powered by Amazon Bedrock: Amazon Web Services implements automated abuse\n detection. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full\n advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the\n responsible use of artificial intelligence (AI).
\nAmazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution\n of Amazon Connect Wisdom that delivers real-time recommendations to help contact center\n agents resolve customer issues quickly and accurately.
\nAmazon Q automatically detects customer intent during calls and chats using\n conversational analytics and natural language understanding (NLU). It then provides agents\n with immediate, real-time generative responses and suggested actions, and links to relevant\n documents and articles. Agents can also query Amazon Q directly using natural language or\n keywords to answer customer requests.
\nUse the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or\n manage content by uploading custom files.
\nFor more information, see Use Amazon Q in Connect for generative AI\n powered agent assistance in real-time in the Amazon Connect\n Administrator Guide.
", "smithy.api#title": "Amazon Q Connect", "smithy.rules#endpointRuleSet": { "version": "1.0", diff --git a/codegen/sdk-codegen/aws-models/rbin.json b/codegen/sdk-codegen/aws-models/rbin.json index 8749707767c..63d8601fe58 100644 --- a/codegen/sdk-codegen/aws-models/rbin.json +++ b/codegen/sdk-codegen/aws-models/rbin.json @@ -76,7 +76,7 @@ "name": "rbin" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "This is the Recycle Bin API Reference. This documentation provides \n descriptions and syntax for each of the actions and data types in Recycle Bin.
\nRecycle Bin is a resource recovery feature that enables you to restore accidentally \n deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are \n deleted, they are retained in the Recycle Bin for a time period that you specify.
\nYou can restore a resource from the Recycle Bin at any time before its retention period \n expires. After you restore a resource from the Recycle Bin, the resource is removed from the \n Recycle Bin, and you can then use it in the same way you use any other resource of that type \n in your account. If the retention period expires and the resource is not restored, the resource \n is permanently deleted from the Recycle Bin and is no longer available for recovery. For more \n information about Recycle Bin, see \n Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
", + "smithy.api#documentation": "This is the Recycle Bin API Reference. This documentation provides \n descriptions and syntax for each of the actions and data types in Recycle Bin.
\nRecycle Bin is a resource recovery feature that enables you to restore accidentally \n deleted snapshots and EBS-backed AMIs. When using Recycle Bin, if your resources are \n deleted, they are retained in the Recycle Bin for a time period that you specify.
\nYou can restore a resource from the Recycle Bin at any time before its retention period \n expires. After you restore a resource from the Recycle Bin, the resource is removed from the \n Recycle Bin, and you can then use it in the same way you use any other resource of that type \n in your account. If the retention period expires and the resource is not restored, the resource \n is permanently deleted from the Recycle Bin and is no longer available for recovery. For more \n information about Recycle Bin, see \n Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
", "smithy.api#title": "Amazon Recycle Bin", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -120,7 +120,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -163,7 +162,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -176,7 +176,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -190,7 +189,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -213,7 +211,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -248,7 +245,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -259,14 +255,16 @@ }, "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": [ @@ -280,14 +278,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -296,11 +292,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -311,14 +307,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -332,7 +330,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -352,7 +349,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -363,14 +359,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -381,9 +379,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -1125,6 +1125,12 @@ "traits": { "smithy.api#documentation": "The lock state for the retention rule.
\n\n locked
- The retention rule is locked and can't be modified or deleted.
\n pending_unlock
- The retention rule has been unlocked but it is still within \n the unlock delay period. The retention rule can be modified or deleted only after the unlock \n delay period has expired.
\n unlocked
- The retention rule is unlocked and it can be modified or deleted by \n any user with the required permissions.
\n null
- The retention rule has never been locked. Once a retention rule has \n been locked, it can transition between the locked
and unlocked
states \n only; it can never transition back to null
.
The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -1294,6 +1300,12 @@ "traits": { "smithy.api#documentation": "The date and time at which the unlock delay is set to expire. Only returned \n for retention rules that have been unlocked and that are still within the unlock \n delay period.
" } + }, + "RuleArn": { + "target": "com.amazonaws.rbin#RuleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -1577,6 +1589,12 @@ "traits": { "smithy.api#documentation": "The lock state for the retention rule.
\n\n locked
- The retention rule is locked and can't be modified or deleted.
\n pending_unlock
- The retention rule has been unlocked but it is still within \n the unlock delay period. The retention rule can be modified or deleted only after the unlock \n delay period has expired.
\n unlocked
- The retention rule is unlocked and it can be modified or deleted by \n any user with the required permissions.
\n null
- The retention rule has never been locked. Once a retention rule has \n been locked, it can transition between the locked
and unlocked
states \n only; it can never transition back to null
.
The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -1814,6 +1832,12 @@ "traits": { "smithy.api#documentation": "The lock state for the retention rule.
\n\n locked
- The retention rule is locked and can't be modified or deleted.
\n pending_unlock
- The retention rule has been unlocked but it is still within \n the unlock delay period. The retention rule can be modified or deleted only after the unlock \n delay period has expired.
\n unlocked
- The retention rule is unlocked and it can be modified or deleted by \n any user with the required permissions.
\n null
- The retention rule has never been locked. Once a retention rule has \n been locked, it can transition between the locked
and unlocked
states \n only; it can never transition back to null
.
The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -2128,6 +2152,12 @@ "traits": { "smithy.api#documentation": "The date and time at which the unlock delay is set to expire. Only returned \n for retention rules that have been unlocked and that are still within the unlock \n delay period.
" } + }, + "RuleArn": { + "target": "com.amazonaws.rbin#RuleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { @@ -2211,6 +2241,9 @@ { "target": "com.amazonaws.rbin#ResourceNotFoundException" }, + { + "target": "com.amazonaws.rbin#ServiceQuotaExceededException" + }, { "target": "com.amazonaws.rbin#ValidationException" } @@ -2311,6 +2344,12 @@ "traits": { "smithy.api#documentation": "The date and time at which the unlock delay is set to expire. Only returned \n for retention rules that have been unlocked and that are still within the unlock \n delay period.
" } + }, + "RuleArn": { + "target": "com.amazonaws.rbin#RuleArn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the retention rule.
" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/redshift-serverless.json b/codegen/sdk-codegen/aws-models/redshift-serverless.json index 8b4cc5d0641..b567e038396 100644 --- a/codegen/sdk-codegen/aws-models/redshift-serverless.json +++ b/codegen/sdk-codegen/aws-models/redshift-serverless.json @@ -77,7 +77,7 @@ "parameterKey": { "target": "com.amazonaws.redshiftserverless#ParameterKey", "traits": { - "smithy.api#documentation": "The key of the parameter. The\n options are auto_mv
, datestyle
, enable_case_sensitivity_identifier
, enable_user_activity_logging
,\n query_group
, search_path
, and query monitoring metrics that let \n you define performance boundaries. For more information about query monitoring rules and available metrics, see \n Query monitoring metrics for Amazon Redshift Serverless.
The key of the parameter. The\n options are auto_mv
, datestyle
, enable_case_sensitive_identifier
, enable_user_activity_logging
,\n query_group
, search_path
, and query monitoring metrics that let \n you define performance boundaries. For more information about query monitoring rules and available metrics, see \n Query monitoring metrics for Amazon Redshift Serverless.
The unique identifiers of the security group that defines the ports, \n protocols, and sources for inbound traffic that you are authorizing into your endpoint.
" } + }, + "ownerAccount": { + "target": "com.amazonaws.redshiftserverless#OwnerAccount", + "traits": { + "smithy.api#documentation": "The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
" + } } }, "traits": { @@ -491,6 +497,113 @@ "smithy.api#output": {} } }, + "com.amazonaws.redshiftserverless#CreateScheduledAction": { + "type": "operation", + "input": { + "target": "com.amazonaws.redshiftserverless#CreateScheduledActionRequest" + }, + "output": { + "target": "com.amazonaws.redshiftserverless#CreateScheduledActionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.redshiftserverless#ConflictException" + }, + { + "target": "com.amazonaws.redshiftserverless#InternalServerException" + }, + { + "target": "com.amazonaws.redshiftserverless#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.redshiftserverless#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Creates a scheduled action. A scheduled action contains a schedule and an Amazon Redshift API action. \n For example, you can create a schedule of when to run the CreateSnapshot
API operation.
The name of the scheduled action.
", + "smithy.api#required": {} + } + }, + "targetAction": { + "target": "com.amazonaws.redshiftserverless#TargetAction", + "traits": { + "smithy.api#required": {} + } + }, + "schedule": { + "target": "com.amazonaws.redshiftserverless#Schedule", + "traits": { + "smithy.api#documentation": "The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
\nFormat of at expressions is \"at(yyyy-mm-ddThh:mm:ss)
\". For example, \"at(2016-03-04T17:27:00)
\".
Format of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)
\". For example, \"cron(0 10 ? * MON *)
\". For more information, see \n Cron Expressions in the Amazon CloudWatch Events User Guide.
The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift Serverless API operation in the scheduled action. \n This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots. (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. \n For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for \n Amazon Redshift in the Amazon Redshift Cluster Management Guide
", + "smithy.api#required": {} + } + }, + "namespaceName": { + "target": "com.amazonaws.redshiftserverless#NamespaceName", + "traits": { + "smithy.api#documentation": "The name of the namespace for which to create a scheduled action.
", + "smithy.api#required": {} + } + }, + "enabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Indicates whether the schedule is enabled. If false, the scheduled action does not trigger. For more information about state
\n of the scheduled action, see ScheduledAction.
The description of the scheduled action.
" + } + }, + "startTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
" + } + }, + "endTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#CreateScheduledActionResponse": { + "type": "structure", + "members": { + "scheduledAction": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionResponse", + "traits": { + "smithy.api#documentation": "The returned ScheduledAction
object that describes the properties of a scheduled action.
Creates a snapshot copy configuration that lets you copy snapshots to another Amazon Web Services Region.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.redshiftserverless#CreateSnapshotCopyConfigurationRequest": { + "type": "structure", + "members": { + "namespaceName": { + "target": "com.amazonaws.redshiftserverless#NamespaceName", + "traits": { + "smithy.api#documentation": "The name of the namespace to copy snapshots from.
", + "smithy.api#required": {} + } + }, + "destinationRegion": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The destination Amazon Web Services Region that you want to copy snapshots to.
", + "smithy.api#required": {} + } + }, + "snapshotRetentionPeriod": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "The retention period of the snapshots that you copy to the destination Amazon Web Services Region.
" + } + }, + "destinationKmsKeyId": { + "target": "com.amazonaws.redshiftserverless#KmsKeyId", + "traits": { + "smithy.api#documentation": "The KMS key to use to encrypt your snapshots in the destination Amazon Web Services Region.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#CreateSnapshotCopyConfigurationResponse": { + "type": "structure", + "members": { + "snapshotCopyConfiguration": { + "target": "com.amazonaws.redshiftserverless#SnapshotCopyConfiguration", + "traits": { + "smithy.api#documentation": "The snapshot copy configuration object that is returned.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.redshiftserverless#CreateSnapshotRequest": { "type": "structure", "members": { @@ -572,6 +767,40 @@ "smithy.api#output": {} } }, + "com.amazonaws.redshiftserverless#CreateSnapshotScheduleActionParameters": { + "type": "structure", + "members": { + "namespaceName": { + "target": "com.amazonaws.redshiftserverless#NamespaceName", + "traits": { + "smithy.api#documentation": "The name of the namespace for which you want to configure a scheduled action to create a snapshot.
", + "smithy.api#required": {} + } + }, + "snapshotNamePrefix": { + "target": "com.amazonaws.redshiftserverless#SnapshotNamePrefix", + "traits": { + "smithy.api#documentation": "A string prefix that is attached to the name of the snapshot created by the scheduled action. The final \n name of the snapshot is the string prefix appended by the date and time of when the snapshot was created.
", + "smithy.api#required": {} + } + }, + "retentionPeriod": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "The retention period of the snapshot created by the scheduled action.
" + } + }, + "tags": { + "target": "com.amazonaws.redshiftserverless#TagList", + "traits": { + "smithy.api#documentation": "An array of Tag objects to associate with the snapshot.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The parameters that you can use to configure a scheduled action to create a snapshot. For more information about creating a scheduled action, see \n CreateScheduledAction.
" + } + }, "com.amazonaws.redshiftserverless#CreateUsageLimit": { "type": "operation", "input": { @@ -722,7 +951,7 @@ "configParameters": { "target": "com.amazonaws.redshiftserverless#ConfigParameterList", "traits": { - "smithy.api#documentation": "An array of parameters to set for advanced control over a database. The\n options are auto_mv
, datestyle
, enable_case_sensitivity_identifier
, enable_user_activity_logging
,\n query_group
, search_path
, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.
An array of parameters to set for advanced control over a database. The\n options are auto_mv
, datestyle
, enable_case_sensitive_identifier
, enable_user_activity_logging
,\n query_group
, search_path
, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.
Deletes a scheduled action.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.redshiftserverless#DeleteScheduledActionRequest": { + "type": "structure", + "members": { + "scheduledActionName": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionName", + "traits": { + "smithy.api#documentation": "The name of the scheduled action to delete.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#DeleteScheduledActionResponse": { + "type": "structure", + "members": { + "scheduledAction": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionResponse", + "traits": { + "smithy.api#documentation": "The deleted scheduled action object.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.redshiftserverless#DeleteSnapshot": { "type": "operation", "input": { @@ -1093,6 +1375,66 @@ "smithy.api#idempotent": {} } }, + "com.amazonaws.redshiftserverless#DeleteSnapshotCopyConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.redshiftserverless#DeleteSnapshotCopyConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.redshiftserverless#DeleteSnapshotCopyConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.redshiftserverless#AccessDeniedException" + }, + { + "target": "com.amazonaws.redshiftserverless#ConflictException" + }, + { + "target": "com.amazonaws.redshiftserverless#InternalServerException" + }, + { + "target": "com.amazonaws.redshiftserverless#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.redshiftserverless#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes a snapshot copy configuration
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.redshiftserverless#DeleteSnapshotCopyConfigurationRequest": { + "type": "structure", + "members": { + "snapshotCopyConfigurationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The ID of the snapshot copy configuration to delete.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#DeleteSnapshotCopyConfigurationResponse": { + "type": "structure", + "members": { + "snapshotCopyConfiguration": { + "target": "com.amazonaws.redshiftserverless#SnapshotCopyConfiguration", + "traits": { + "smithy.api#documentation": "The deleted snapshot copy configuration object.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.redshiftserverless#DeleteSnapshotRequest": { "type": "structure", "members": { @@ -1729,6 +2071,59 @@ "smithy.api#output": {} } }, + "com.amazonaws.redshiftserverless#GetScheduledAction": { + "type": "operation", + "input": { + "target": "com.amazonaws.redshiftserverless#GetScheduledActionRequest" + }, + "output": { + "target": "com.amazonaws.redshiftserverless#GetScheduledActionResponse" + }, + "errors": [ + { + "target": "com.amazonaws.redshiftserverless#InternalServerException" + }, + { + "target": "com.amazonaws.redshiftserverless#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.redshiftserverless#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns information about a scheduled action.
", + "smithy.api#readonly": {} + } + }, + "com.amazonaws.redshiftserverless#GetScheduledActionRequest": { + "type": "structure", + "members": { + "scheduledActionName": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionName", + "traits": { + "smithy.api#documentation": "The name of the scheduled action.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#GetScheduledActionResponse": { + "type": "structure", + "members": { + "scheduledAction": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionResponse", + "traits": { + "smithy.api#documentation": "The returned scheduled action object.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.redshiftserverless#GetSnapshot": { "type": "operation", "input": { @@ -2176,6 +2571,12 @@ "traits": { "smithy.api#documentation": "The unique identifier of the virtual private cloud with access to Amazon Redshift Serverless.
" } + }, + "ownerAccount": { + "target": "com.amazonaws.redshiftserverless#OwnerAccount", + "traits": { + "smithy.api#documentation": "The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
" + } } }, "traits": { @@ -2342,13 +2743,188 @@ "namespaceName": { "target": "com.amazonaws.redshiftserverless#NamespaceName", "traits": { - "smithy.api#documentation": "The name of the namespace to list recovery points for.
" + "smithy.api#documentation": "The name of the namespace to list recovery points for.
" + } + }, + "namespaceArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the namespace from which to list recovery points.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#ListRecoveryPointsResponse": { + "type": "structure", + "members": { + "recoveryPoints": { + "target": "com.amazonaws.redshiftserverless#RecoveryPointList", + "traits": { + "smithy.api#documentation": "The returned recovery point objects.
" + } + }, + "nextToken": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "If nextToken
is returned, there are more results available. \n The value of nextToken
is a unique pagination token for each page. \n Make the call again using the returned token to retrieve the next page.
Returns a list of scheduled actions. You can use the flags to filter the list of returned scheduled actions.
", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "scheduledActions" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.redshiftserverless#ListScheduledActionsRequest": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.redshiftserverless#PaginationToken", + "traits": { + "smithy.api#documentation": "If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. \n Make the call again using the returned token to retrieve the next page.
An optional parameter that specifies the maximum number of results to return. Use nextToken
to display the next page of results.
The name of namespace associated with the scheduled action to retrieve.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#ListScheduledActionsResponse": { + "type": "structure", + "members": { + "nextToken": { + "target": "com.amazonaws.redshiftserverless#PaginationToken", + "traits": { + "smithy.api#documentation": "If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
" + } + }, + "scheduledActions": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionsList", + "traits": { + "smithy.api#documentation": "All of the returned scheduled action objects.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.redshiftserverless#ListSnapshotCopyConfigurations": { + "type": "operation", + "input": { + "target": "com.amazonaws.redshiftserverless#ListSnapshotCopyConfigurationsRequest" + }, + "output": { + "target": "com.amazonaws.redshiftserverless#ListSnapshotCopyConfigurationsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.redshiftserverless#ConflictException" + }, + { + "target": "com.amazonaws.redshiftserverless#InternalServerException" + }, + { + "target": "com.amazonaws.redshiftserverless#InvalidPaginationException" + }, + { + "target": "com.amazonaws.redshiftserverless#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.redshiftserverless#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Returns a list of snapshot copy configurations.
", + "smithy.api#paginated": { + "inputToken": "nextToken", + "outputToken": "nextToken", + "pageSize": "maxResults", + "items": "snapshotCopyConfigurations" + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.redshiftserverless#ListSnapshotCopyConfigurationsRequest": { + "type": "structure", + "members": { + "namespaceName": { + "target": "com.amazonaws.redshiftserverless#NamespaceName", + "traits": { + "smithy.api#documentation": "The namespace from which to list all snapshot copy configurations.
" + } + }, + "nextToken": { + "target": "com.amazonaws.redshiftserverless#PaginationToken", + "traits": { + "smithy.api#documentation": "If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using \n the returned token to retrieve the next page.
The Amazon Resource Name (ARN) of the namespace from which to list recovery points.
" + "smithy.api#default": null, + "smithy.api#documentation": "An optional parameter that specifies the maximum number of results to return. You can use nextToken
to display the next page of results.
The returned recovery point objects.
" + "smithy.api#documentation": "If nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using \n the returned token to retrieve the next page.
If nextToken
is returned, there are more results available. \n The value of nextToken
is a unique pagination token for each page. \n Make the call again using the returned token to retrieve the next page.
All of the returned snapshot copy configurations.
", + "smithy.api#required": {} } } }, @@ -2771,6 +3348,12 @@ "max": 100 } } + }, + "ownerAccount": { + "target": "com.amazonaws.redshiftserverless#OwnerAccount", + "traits": { + "smithy.api#documentation": "The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
" + } } }, "traits": { @@ -3018,6 +3601,22 @@ "target": "com.amazonaws.redshiftserverless#NetworkInterface" } }, + "com.amazonaws.redshiftserverless#NextInvocationsList": { + "type": "list", + "member": { + "target": "smithy.api#Timestamp" + } + }, + "com.amazonaws.redshiftserverless#OwnerAccount": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 12 + }, + "smithy.api#pattern": "(\\d{12})" + } + }, "com.amazonaws.redshiftserverless#PaginationToken": { "type": "string", "traits": { @@ -3163,6 +3762,9 @@ }, { "target": "com.amazonaws.redshiftserverless#RestoreFromRecoveryPoint" + }, + { + "target": "com.amazonaws.redshiftserverless#RestoreTableFromRecoveryPoint" } ] }, @@ -3226,6 +3828,9 @@ { "target": "com.amazonaws.redshiftserverless#RecoveryPointResource" }, + { + "target": "com.amazonaws.redshiftserverless#ScheduledActionResource" + }, { "target": "com.amazonaws.redshiftserverless#SnapshotResource" }, @@ -4236,6 +4841,117 @@ "smithy.api#output": {} } }, + "com.amazonaws.redshiftserverless#RestoreTableFromRecoveryPoint": { + "type": "operation", + "input": { + "target": "com.amazonaws.redshiftserverless#RestoreTableFromRecoveryPointRequest" + }, + "output": { + "target": "com.amazonaws.redshiftserverless#RestoreTableFromRecoveryPointResponse" + }, + "errors": [ + { + "target": "com.amazonaws.redshiftserverless#ConflictException" + }, + { + "target": "com.amazonaws.redshiftserverless#InternalServerException" + }, + { + "target": "com.amazonaws.redshiftserverless#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.redshiftserverless#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Restores a table from a recovery point to your Amazon Redshift Serverless instance. You can't use this operation to restore tables with interleaved sort keys.
" + } + }, + "com.amazonaws.redshiftserverless#RestoreTableFromRecoveryPointRequest": { + "type": "structure", + "members": { + "namespaceName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "Namespace of the recovery point to restore from.
", + "smithy.api#required": {} + } + }, + "workgroupName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The workgroup to restore the table to.
", + "smithy.api#required": {} + } + }, + "recoveryPointId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The ID of the recovery point to restore the table from.
", + "smithy.api#required": {} + } + }, + "sourceDatabaseName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the source database that contains the table being restored.
", + "smithy.api#required": {} + } + }, + "sourceSchemaName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the source schema that contains the table being restored.
" + } + }, + "sourceTableName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the source table being restored.
", + "smithy.api#required": {} + } + }, + "targetDatabaseName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the database to restore the table to.
" + } + }, + "targetSchemaName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the schema to restore the table to.
" + } + }, + "newTableName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the table to create from the restore operation.
", + "smithy.api#required": {} + } + }, + "activateCaseSensitiveIdentifier": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Indicates whether name identifiers for database, schema, and table are case sensitive. If true, the names are case sensitive. If false, the names are not case sensitive. The default is false.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#RestoreTableFromRecoveryPointResponse": { + "type": "structure", + "members": { + "tableRestoreStatus": { + "target": "com.amazonaws.redshiftserverless#TableRestoreStatus" + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.redshiftserverless#RestoreTableFromSnapshot": { "type": "operation", "input": { @@ -4286,68 +5002,195 @@ "smithy.api#required": {} } }, - "sourceDatabaseName": { - "target": "smithy.api#String", + "sourceDatabaseName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the source database that contains the table being restored.
", + "smithy.api#required": {} + } + }, + "sourceSchemaName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the source schema that contains the table being restored.
" + } + }, + "sourceTableName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the source table being restored.
", + "smithy.api#required": {} + } + }, + "targetDatabaseName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the database to restore the table to.
" + } + }, + "targetSchemaName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the schema to restore the table to.
" + } + }, + "newTableName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The name of the table to create from the restore operation.
", + "smithy.api#required": {} + } + }, + "activateCaseSensitiveIdentifier": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Indicates whether name identifiers for database, schema, and table \n are case sensitive. If true, the names are case sensitive. If \n false, the names are not case sensitive. The default is false.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#RestoreTableFromSnapshotResponse": { + "type": "structure", + "members": { + "tableRestoreStatus": { + "target": "com.amazonaws.redshiftserverless#TableRestoreStatus", + "traits": { + "smithy.api#documentation": "The TableRestoreStatus object that contains the status of the restore operation.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.redshiftserverless#Schedule": { + "type": "union", + "members": { + "at": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "The timestamp of when Amazon Redshift Serverless should run the scheduled action. Format of at expressions is \"at(yyyy-mm-ddThh:mm:ss)
\". For example, \"at(2016-03-04T17:27:00)
\".
The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour.
\nFormat of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)
\". For example, \"cron(0 10 ? * MON *)
\". For more information, see \n Cron Expressions in the Amazon CloudWatch Events User Guide.
The schedule of when Amazon Redshift Serverless should run the scheduled action.
" + } + }, + "com.amazonaws.redshiftserverless#ScheduledActionName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 3, + "max": 60 + }, + "smithy.api#pattern": "^[a-z0-9-]+$" + } + }, + "com.amazonaws.redshiftserverless#ScheduledActionResource": { + "type": "resource", + "operations": [ + { + "target": "com.amazonaws.redshiftserverless#CreateScheduledAction" + }, + { + "target": "com.amazonaws.redshiftserverless#DeleteScheduledAction" + }, + { + "target": "com.amazonaws.redshiftserverless#GetScheduledAction" + }, + { + "target": "com.amazonaws.redshiftserverless#ListScheduledActions" + }, + { + "target": "com.amazonaws.redshiftserverless#UpdateScheduledAction" + } + ] + }, + "com.amazonaws.redshiftserverless#ScheduledActionResponse": { + "type": "structure", + "members": { + "scheduledActionName": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionName", + "traits": { + "smithy.api#documentation": "The name of the scheduled action.
" + } + }, + "schedule": { + "target": "com.amazonaws.redshiftserverless#Schedule", + "traits": { + "smithy.api#documentation": "The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
\nFormat of at expressions is \"at(yyyy-mm-ddThh:mm:ss)
\". For example, \"at(2016-03-04T17:27:00)
\".
Format of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)
\". For example, \"cron(0 10 ? * MON *)
\". For more information, see \n Cron Expressions in the Amazon CloudWatch Events User Guide.
The description of the scheduled action.
" + } + }, + "nextInvocations": { + "target": "com.amazonaws.redshiftserverless#NextInvocationsList", "traits": { - "smithy.api#documentation": "The name of the source database that contains the table being restored.
", - "smithy.api#required": {} + "smithy.api#documentation": "An array of timestamps of when the next scheduled actions will trigger.
" } }, - "sourceSchemaName": { - "target": "smithy.api#String", + "roleArn": { + "target": "com.amazonaws.redshiftserverless#IamRoleArn", "traits": { - "smithy.api#documentation": "The name of the source schema that contains the table being restored.
" + "smithy.api#documentation": "The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift Serverless API operation in the scheduled action. \n This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots. (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. \n For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for \n Amazon Redshift in the Amazon Redshift Cluster Management Guide
" } }, - "sourceTableName": { - "target": "smithy.api#String", + "state": { + "target": "com.amazonaws.redshiftserverless#State", "traits": { - "smithy.api#documentation": "The name of the source table being restored.
", - "smithy.api#required": {} + "smithy.api#documentation": "The state of the scheduled action.
" } }, - "targetDatabaseName": { - "target": "smithy.api#String", + "startTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "The name of the database to restore the table to.
" + "smithy.api#documentation": "The start time in UTC when the schedule is active. Before this time, the scheduled action does not trigger.
" } }, - "targetSchemaName": { - "target": "smithy.api#String", + "endTime": { + "target": "smithy.api#Timestamp", "traits": { - "smithy.api#documentation": "The name of the schema to restore the table to.
" + "smithy.api#documentation": "The end time of
" } }, - "newTableName": { - "target": "smithy.api#String", + "targetAction": { + "target": "com.amazonaws.redshiftserverless#TargetAction" + }, + "namespaceName": { + "target": "com.amazonaws.redshiftserverless#NamespaceName", "traits": { - "smithy.api#documentation": "The name of the table to create from the restore operation.
", - "smithy.api#required": {} + "smithy.api#documentation": "The end time in UTC when the schedule is no longer active. After this time, the scheduled action does not trigger.
" } }, - "activateCaseSensitiveIdentifier": { - "target": "smithy.api#Boolean", + "scheduledActionUuid": { + "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "Indicates whether name identifiers for database, schema, and table \n are case sensitive. If true, the names are case sensitive. If \n false, the names are not case sensitive. The default is false.
" + "smithy.api#documentation": "The uuid of the scheduled action.
" } } }, "traits": { - "smithy.api#input": {} + "smithy.api#documentation": "The returned scheduled action object.
" } }, - "com.amazonaws.redshiftserverless#RestoreTableFromSnapshotResponse": { - "type": "structure", - "members": { - "tableRestoreStatus": { - "target": "com.amazonaws.redshiftserverless#TableRestoreStatus", - "traits": { - "smithy.api#documentation": "The TableRestoreStatus object that contains the status of the restore operation.
" - } - } - }, - "traits": { - "smithy.api#output": {} + "com.amazonaws.redshiftserverless#ScheduledActionsList": { + "type": "list", + "member": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionName" } }, "com.amazonaws.redshiftserverless#SecurityGroupId": { @@ -4517,27 +5360,101 @@ "smithy.api#documentation": "A snapshot object that contains databases.
" } }, + "com.amazonaws.redshiftserverless#SnapshotCopyConfiguration": { + "type": "structure", + "members": { + "snapshotCopyConfigurationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The ID of the snapshot copy configuration object.
" + } + }, + "snapshotCopyConfigurationArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The ARN of the snapshot copy configuration object.
" + } + }, + "namespaceName": { + "target": "com.amazonaws.redshiftserverless#NamespaceName", + "traits": { + "smithy.api#documentation": "The name of the namespace to copy snapshots from in the source Amazon Web Services Region.
" + } + }, + "destinationRegion": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The destination Amazon Web Services Region to copy snapshots to.
" + } + }, + "snapshotRetentionPeriod": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "The retention period of snapshots that are copied to the destination Amazon Web Services Region.
" + } + }, + "destinationKmsKeyId": { + "target": "com.amazonaws.redshiftserverless#KmsKeyId", + "traits": { + "smithy.api#documentation": "The ID of the KMS key to use to encrypt your snapshots in the destination Amazon Web Services Region.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The object that you configure to copy snapshots from one namespace to a namespace in another Amazon Web Services Region.
" + } + }, + "com.amazonaws.redshiftserverless#SnapshotCopyConfigurations": { + "type": "list", + "member": { + "target": "com.amazonaws.redshiftserverless#SnapshotCopyConfiguration" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + } + } + }, "com.amazonaws.redshiftserverless#SnapshotList": { "type": "list", "member": { "target": "com.amazonaws.redshiftserverless#Snapshot" } }, + "com.amazonaws.redshiftserverless#SnapshotNamePrefix": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 235 + } + } + }, "com.amazonaws.redshiftserverless#SnapshotResource": { "type": "resource", "operations": [ { "target": "com.amazonaws.redshiftserverless#CreateSnapshot" }, + { + "target": "com.amazonaws.redshiftserverless#CreateSnapshotCopyConfiguration" + }, { "target": "com.amazonaws.redshiftserverless#DeleteSnapshot" }, + { + "target": "com.amazonaws.redshiftserverless#DeleteSnapshotCopyConfiguration" + }, { "target": "com.amazonaws.redshiftserverless#GetSnapshot" }, { "target": "com.amazonaws.redshiftserverless#GetTableRestoreStatus" }, + { + "target": "com.amazonaws.redshiftserverless#ListSnapshotCopyConfigurations" + }, { "target": "com.amazonaws.redshiftserverless#ListSnapshots" }, @@ -4552,6 +5469,9 @@ }, { "target": "com.amazonaws.redshiftserverless#UpdateSnapshot" + }, + { + "target": "com.amazonaws.redshiftserverless#UpdateSnapshotCopyConfiguration" } ] }, @@ -4586,6 +5506,21 @@ ] } }, + "com.amazonaws.redshiftserverless#State": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "name": "ACTIVE", + "value": "ACTIVE" + }, + { + "name": "DISABLED", + "value": "DISABLED" + } + ] + } + }, "com.amazonaws.redshiftserverless#SubnetId": { "type": "string" }, @@ -4607,13 +5542,13 @@ "status": { "target": "smithy.api#String", "traits": { - "smithy.api#documentation": "A value that describes the current state of the table restore request. \n Possible values include SUCCEEDED
, FAILED
, CANCELED
, PENDING
, IN_PROGRESS
.
A value that describes the current state of the table restore request. \n Possible values are SUCCEEDED
, FAILED
, CANCELED
, PENDING
, and IN_PROGRESS
.
A description of the status of the table restore request. \n Status values include SUCCEEDED
, FAILED
, CANCELED
, PENDING
, IN_PROGRESS
.
A message that explains the returned status. For example, if the status of the operation is FAILED
, the message explains why the operation failed.
The name of the table to create from the restore operation.
" } + }, + "recoveryPointId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The ID of the recovery point being restored from.
" + } } }, "traits": { @@ -4821,6 +5762,17 @@ } } }, + "com.amazonaws.redshiftserverless#TargetAction": { + "type": "union", + "members": { + "createSnapshot": { + "target": "com.amazonaws.redshiftserverless#CreateSnapshotScheduleActionParameters" + } + }, + "traits": { + "smithy.api#documentation": "A JSON format string of the Amazon Redshift Serverless API operation with input parameters. The following is an example of a target action.
\n\n \"{\"CreateSnapshot\": {\"NamespaceName\": \"sampleNamespace\",\"SnapshotName\": \"sampleSnapshot\", \"retentionPeriod\": \"1\"}}\"
\n
Updates a scheduled action.
", + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.redshiftserverless#UpdateScheduledActionRequest": { + "type": "structure", + "members": { + "scheduledActionName": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionName", + "traits": { + "smithy.api#documentation": "The name of the scheduled action to update to.
", + "smithy.api#required": {} + } + }, + "targetAction": { + "target": "com.amazonaws.redshiftserverless#TargetAction" + }, + "schedule": { + "target": "com.amazonaws.redshiftserverless#Schedule", + "traits": { + "smithy.api#documentation": "The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be separated by at least one hour.
\nFormat of at expressions is \"at(yyyy-mm-ddThh:mm:ss)
\". For example, \"at(2016-03-04T17:27:00)
\".
Format of cron expressions is \"cron(Minutes Hours Day-of-month Month Day-of-week Year)
\". For example, \"cron(0 10 ? * MON *)
\". For more information, see \n Cron Expressions in the Amazon CloudWatch Events User Guide.
The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift Serverless API operation in the scheduled action. \n This IAM role must allow the Amazon Redshift scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. \n For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for \n Amazon Redshift in the Amazon Redshift Cluster Management Guide
" + } + }, + "enabled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "Specifies whether to enable the scheduled action.
" + } + }, + "scheduledActionDescription": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The descripion of the scheduled action to update to.
" + } + }, + "startTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "The start time in UTC of the scheduled action to update to.
" + } + }, + "endTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "The end time in UTC of the scheduled action to update.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#UpdateScheduledActionResponse": { + "type": "structure", + "members": { + "scheduledAction": { + "target": "com.amazonaws.redshiftserverless#ScheduledActionResponse", + "traits": { + "smithy.api#documentation": "The ScheduledAction object that was updated.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.redshiftserverless#UpdateSnapshot": { "type": "operation", "input": { @@ -5200,6 +6247,71 @@ "smithy.api#documentation": "Updates a snapshot.
" } }, + "com.amazonaws.redshiftserverless#UpdateSnapshotCopyConfiguration": { + "type": "operation", + "input": { + "target": "com.amazonaws.redshiftserverless#UpdateSnapshotCopyConfigurationRequest" + }, + "output": { + "target": "com.amazonaws.redshiftserverless#UpdateSnapshotCopyConfigurationResponse" + }, + "errors": [ + { + "target": "com.amazonaws.redshiftserverless#AccessDeniedException" + }, + { + "target": "com.amazonaws.redshiftserverless#ConflictException" + }, + { + "target": "com.amazonaws.redshiftserverless#InternalServerException" + }, + { + "target": "com.amazonaws.redshiftserverless#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.redshiftserverless#ValidationException" + } + ], + "traits": { + "smithy.api#documentation": "Updates a snapshot copy configuration.
" + } + }, + "com.amazonaws.redshiftserverless#UpdateSnapshotCopyConfigurationRequest": { + "type": "structure", + "members": { + "snapshotCopyConfigurationId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "The ID of the snapshot copy configuration to update.
", + "smithy.api#required": {} + } + }, + "snapshotRetentionPeriod": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "The new retention period of how long to keep a snapshot in the destination Amazon Web Services Region.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.redshiftserverless#UpdateSnapshotCopyConfigurationResponse": { + "type": "structure", + "members": { + "snapshotCopyConfiguration": { + "target": "com.amazonaws.redshiftserverless#SnapshotCopyConfiguration", + "traits": { + "smithy.api#documentation": "The updated snapshot copy configuration object.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.redshiftserverless#UpdateSnapshotRequest": { "type": "structure", "members": { @@ -5356,7 +6468,7 @@ "configParameters": { "target": "com.amazonaws.redshiftserverless#ConfigParameterList", "traits": { - "smithy.api#documentation": "An array of parameters to set for advanced control over a database. The\n options are auto_mv
, datestyle
, enable_case_sensitivity_identifier
, enable_user_activity_logging
,\n query_group
, search_path
, and query monitoring metrics that let you \n define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.
An array of parameters to set for advanced control over a database. The\n options are auto_mv
, datestyle
, enable_case_sensitive_identifier
, enable_user_activity_logging
,\n query_group
, search_path
, and query monitoring metrics that let you \n define performance boundaries. For more information about query monitoring rules and available metrics, see \n \n Query monitoring metrics for Amazon Redshift Serverless.
An array of parameters to set for advanced control over a database. The\n options are auto_mv
, datestyle
, enable_case_sensitivity_identifier
, enable_user_activity_logging
,\n query_group
, , search_path
, and query monitoring metrics that let you define performance boundaries. \n For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
An array of parameters to set for advanced control over a database. The\n options are auto_mv
, datestyle
, enable_case_sensitive_identifier
, enable_user_activity_logging
,\n query_group
, search_path
, and query monitoring metrics that let you define performance boundaries. \n For more information about query monitoring rules and available metrics, see Query monitoring metrics for Amazon Redshift Serverless.
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.
" } + }, + "crossAccountVpcs": { + "target": "com.amazonaws.redshiftserverless#VpcIds", + "traits": { + "smithy.api#documentation": "A list of VPCs. Each entry is the unique identifier of a virtual private cloud with access to Amazon Redshift Serverless. If all of the VPCs for the grantee are allowed, it shows an asterisk.
" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/sagemaker.json b/codegen/sdk-codegen/aws-models/sagemaker.json index 370908efe0d..91ff6dd9d77 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker.json +++ b/codegen/sdk-codegen/aws-models/sagemaker.json @@ -911,6 +911,9 @@ "traits": { "smithy.api#documentation": "The name of the space.
" } + }, + "ResourceSpec": { + "target": "com.amazonaws.sagemaker#ResourceSpec" } }, "traits": { @@ -959,6 +962,12 @@ "traits": { "smithy.api#documentation": "The configuration for the file system and kernels in the SageMaker image.
" } + }, + "JupyterLabAppImageConfig": { + "target": "com.amazonaws.sagemaker#JupyterLabAppImageConfig", + "traits": { + "smithy.api#documentation": "The configuration for the file system and the runtime, such as the environment variables and entry point.
" + } } }, "traits": { @@ -1546,6 +1555,18 @@ "traits": { "smithy.api#enumValue": "RSessionGateway" } + }, + "JupyterLab": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "JupyterLab" + } + }, + "CodeEditor": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CodeEditor" + } } } }, @@ -6484,6 +6505,23 @@ } } }, + "com.amazonaws.sagemaker#CodeEditorAppSettings": { + "type": "structure", + "members": { + "DefaultResourceSpec": { + "target": "com.amazonaws.sagemaker#ResourceSpec" + }, + "LifecycleConfigArns": { + "target": "com.amazonaws.sagemaker#LifecycleConfigArns", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the Code Editor application \n lifecycle configuration.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The Code Editor application settings.
\nFor more information about Code Editor, see Get started with Code \n Editor in Amazon SageMaker.
" + } + }, "com.amazonaws.sagemaker#CodeRepositories": { "type": "list", "member": { @@ -7088,6 +7126,32 @@ } } }, + "com.amazonaws.sagemaker#ContainerConfig": { + "type": "structure", + "members": { + "ContainerArguments": { + "target": "com.amazonaws.sagemaker#CustomImageContainerArguments", + "traits": { + "smithy.api#documentation": "The arguments for the container when you're running the application.
" + } + }, + "ContainerEntrypoint": { + "target": "com.amazonaws.sagemaker#CustomImageContainerEntrypoint", + "traits": { + "smithy.api#documentation": "The entrypoint used to run the application in the container.
" + } + }, + "ContainerEnvironmentVariables": { + "target": "com.amazonaws.sagemaker#CustomImageContainerEnvironmentVariables", + "traits": { + "smithy.api#documentation": "The environment variables to set in the container
" + } + } + }, + "traits": { + "smithy.api#documentation": "The configuration used to run the application image container.
" + } + }, "com.amazonaws.sagemaker#ContainerDefinition": { "type": "structure", "members": { @@ -7708,6 +7772,12 @@ "traits": { "smithy.api#documentation": "The KernelGatewayImageConfig. You can only specify one image kernel in the \n\tAppImageConfig API. This kernel will be shown to users before the \n\timage starts. Once the image runs, all kernels are visible in JupyterLab.
" } + }, + "JupyterLabAppImageConfig": { + "target": "com.amazonaws.sagemaker#JupyterLabAppImageConfig", + "traits": { + "smithy.api#documentation": "The JupyterLabAppImageConfig
. You can only specify one image kernel in the AppImageConfig
API. This kernel is shown to users before the image starts. After the image runs, all kernels are visible in JupyterLab.
The name of the space. If this value is not set, then UserProfileName
must be set.
The name of the space. If this value is not set, then UserProfileName
\n must be set.
Tags to associated with the space. Each tag consists of a key and an optional value.\n Tag keys must be unique for each resource. Tags are searchable using the\n Search
API.
Tags to associated with the space. Each tag consists of a key and an optional value.\n Tag keys must be unique for each resource. Tags are searchable using the\n Search
API.
A collection of space settings.
" } + }, + "SpaceDisplayName": { + "target": "com.amazonaws.sagemaker#NonEmptyString64", + "traits": { + "smithy.api#documentation": "The name of the space that appears in the SageMaker Studio UI.
" + } + }, + "OwnershipSettings": { + "target": "com.amazonaws.sagemaker#OwnershipSettings", + "traits": { + "smithy.api#documentation": "A collection of ownership settings.
" + } + }, + "SpaceSharingSettings": { + "target": "com.amazonaws.sagemaker#SpaceSharingSettings", + "traits": { + "smithy.api#documentation": "A collection of space sharing settings.
" + } } }, "traits": { @@ -12618,6 +12706,58 @@ } } }, + "com.amazonaws.sagemaker#CustomFileSystem": { + "type": "union", + "members": { + "EFSFileSystem": { + "target": "com.amazonaws.sagemaker#EFSFileSystem", + "traits": { + "smithy.api#documentation": "A custom file system in Amazon EFS.
" + } + } + }, + "traits": { + "smithy.api#documentation": "A file system, created by you, that you assign to a user profile or space for an\n Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
" + } + }, + "com.amazonaws.sagemaker#CustomFileSystemConfig": { + "type": "union", + "members": { + "EFSFileSystemConfig": { + "target": "com.amazonaws.sagemaker#EFSFileSystemConfig", + "traits": { + "smithy.api#documentation": "The settings for a custom Amazon EFS file system.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The settings for assigning a custom file system to a user profile or space for an\n Amazon SageMaker Domain. Permitted users can access this file system in Amazon SageMaker Studio.
" + } + }, + "com.amazonaws.sagemaker#CustomFileSystemConfigs": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#CustomFileSystemConfig" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 2 + } + } + }, + "com.amazonaws.sagemaker#CustomFileSystems": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#CustomFileSystem" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1 + } + } + }, "com.amazonaws.sagemaker#CustomImage": { "type": "structure", "members": { @@ -12648,6 +12788,45 @@ "smithy.api#documentation": "A custom SageMaker image. For more information, see\n Bring your own SageMaker image.
" } }, + "com.amazonaws.sagemaker#CustomImageContainerArguments": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#NonEmptyString64" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 50 + } + } + }, + "com.amazonaws.sagemaker#CustomImageContainerEntrypoint": { + "type": "list", + "member": { + "target": "com.amazonaws.sagemaker#NonEmptyString256" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1 + } + } + }, + "com.amazonaws.sagemaker#CustomImageContainerEnvironmentVariables": { + "type": "map", + "key": { + "target": "com.amazonaws.sagemaker#NonEmptyString256" + }, + "value": { + "target": "com.amazonaws.sagemaker#String256" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 25 + } + } + }, "com.amazonaws.sagemaker#CustomImages": { "type": "list", "member": { @@ -12660,6 +12839,30 @@ } } }, + "com.amazonaws.sagemaker#CustomPosixUserConfig": { + "type": "structure", + "members": { + "Uid": { + "target": "com.amazonaws.sagemaker#Uid", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The POSIX user ID.
", + "smithy.api#required": {} + } + }, + "Gid": { + "target": "com.amazonaws.sagemaker#Gid", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The POSIX group ID.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "Details about the POSIX identity that is used for file system operations.
" + } + }, "com.amazonaws.sagemaker#CustomerMetadataKey": { "type": "string", "traits": { @@ -13230,6 +13433,30 @@ } } }, + "com.amazonaws.sagemaker#DefaultEbsStorageSettings": { + "type": "structure", + "members": { + "DefaultEbsVolumeSizeInGb": { + "target": "com.amazonaws.sagemaker#SpaceEbsVolumeSizeInGb", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The default size of the EBS storage volume for a private space.
", + "smithy.api#required": {} + } + }, + "MaximumEbsVolumeSizeInGb": { + "target": "com.amazonaws.sagemaker#SpaceEbsVolumeSizeInGb", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The maximum size of the EBS storage volume for a private space.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A collection of default EBS storage settings that applies to private spaces created within a domain or user profile.
" + } + }, "com.amazonaws.sagemaker#DefaultGid": { "type": "integer", "traits": { @@ -13265,6 +13492,20 @@ "smithy.api#documentation": "A collection of settings that apply to spaces created in the Domain.
" } }, + "com.amazonaws.sagemaker#DefaultSpaceStorageSettings": { + "type": "structure", + "members": { + "DefaultEbsStorageSettings": { + "target": "com.amazonaws.sagemaker#DefaultEbsStorageSettings", + "traits": { + "smithy.api#documentation": "The default EBS storage settings for a private space.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The default storage settings for a private space.
" + } + }, "com.amazonaws.sagemaker#DefaultUid": { "type": "integer", "traits": { @@ -13438,7 +13679,7 @@ "SpaceName": { "target": "com.amazonaws.sagemaker#SpaceName", "traits": { - "smithy.api#documentation": "The name of the space. If this value is not set, then UserProfileName
must be set.
The name of the space. If this value is not set, then UserProfileName
\n must be set.
The configuration of a KernelGateway app.
" } + }, + "JupyterLabAppImageConfig": { + "target": "com.amazonaws.sagemaker#JupyterLabAppImageConfig", + "traits": { + "smithy.api#documentation": "The configuration of the JupyterLab app.
" + } } }, "traits": { @@ -15808,7 +16055,7 @@ "SpaceName": { "target": "com.amazonaws.sagemaker#SpaceName", "traits": { - "smithy.api#documentation": "The name of the space. If this value is not set, then UserProfileName
must be set.
The name of the space. If this value is not set, then UserProfileName
\n must be set.
Returns the URL of the space. If the space is created with Amazon Web Services IAM Identity Center (Successor to Amazon Web Services Single Sign-On) authentication, users can navigate to the URL after appending the respective redirect parameter for the application type to be federated through Amazon Web Services IAM Identity Center.
\nThe following application types are supported:
\nStudio Classic: &redirect=JupyterServer
\n
JupyterLab: &redirect=JupyterLab
\n
The name of the space that appears in the Amazon SageMaker Studio UI.
" + } + }, + "OwnershipSettings": { + "target": "com.amazonaws.sagemaker#OwnershipSettings", + "traits": { + "smithy.api#documentation": "The collection of ownership settings for a space.
" + } + }, + "SpaceSharingSettings": { + "target": "com.amazonaws.sagemaker#SpaceSharingSettings", + "traits": { + "smithy.api#documentation": "The collection of space sharing settings for a space.
" + } } }, "traits": { @@ -24261,6 +24526,44 @@ "smithy.api#documentation": "An object with the recommended values for you to specify when creating an autoscaling policy.
" } }, + "com.amazonaws.sagemaker#EFSFileSystem": { + "type": "structure", + "members": { + "FileSystemId": { + "target": "com.amazonaws.sagemaker#FileSystemId", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The ID of your Amazon EFS file system.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A file system, created by you in Amazon EFS, that you assign to a user profile\n or space for an Amazon SageMaker Domain. Permitted users can access this file\n system in Amazon SageMaker Studio.
" + } + }, + "com.amazonaws.sagemaker#EFSFileSystemConfig": { + "type": "structure", + "members": { + "FileSystemId": { + "target": "com.amazonaws.sagemaker#FileSystemId", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The ID of your Amazon EFS file system.
", + "smithy.api#required": {} + } + }, + "FileSystemPath": { + "target": "com.amazonaws.sagemaker#FileSystemPath", + "traits": { + "smithy.api#documentation": "The path to the file system directory that is accessible in Amazon SageMaker\n Studio. Permitted users can access only this directory and below.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The settings for assigning a custom Amazon EFS file system to a user profile\n or space for an Amazon SageMaker Domain.
" + } + }, "com.amazonaws.sagemaker#EMRStepMetadata": { "type": "structure", "members": { @@ -24293,6 +24596,22 @@ "smithy.api#documentation": "The configurations and outcomes of an Amazon EMR step execution.
" } }, + "com.amazonaws.sagemaker#EbsStorageSettings": { + "type": "structure", + "members": { + "EbsVolumeSizeInGb": { + "target": "com.amazonaws.sagemaker#SpaceEbsVolumeSizeInGb", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The size of an EBS storage volume for a private space.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A collection of EBS storage settings that applies to private spaces.
" + } + }, "com.amazonaws.sagemaker#Edge": { "type": "structure", "members": { @@ -26648,7 +26967,17 @@ "smithy.api#length": { "min": 11 }, - "smithy.api#pattern": ".*" + "smithy.api#pattern": "^(fs-[0-9a-f]{8,})$" + } + }, + "com.amazonaws.sagemaker#FileSystemPath": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + }, + "smithy.api#pattern": "^\\/\\S*$" } }, "com.amazonaws.sagemaker#FileSystemType": { @@ -27586,6 +27915,15 @@ "smithy.api#output": {} } }, + "com.amazonaws.sagemaker#Gid": { + "type": "long", + "traits": { + "smithy.api#range": { + "min": 1001, + "max": 4000000 + } + } + }, "com.amazonaws.sagemaker#GitConfig": { "type": "structure", "members": { @@ -32083,6 +32421,46 @@ } } }, + "com.amazonaws.sagemaker#JupyterLabAppImageConfig": { + "type": "structure", + "members": { + "ContainerConfig": { + "target": "com.amazonaws.sagemaker#ContainerConfig" + } + }, + "traits": { + "smithy.api#documentation": "The configuration for the file system and kernels in a SageMaker image running as a JupyterLab app.
" + } + }, + "com.amazonaws.sagemaker#JupyterLabAppSettings": { + "type": "structure", + "members": { + "DefaultResourceSpec": { + "target": "com.amazonaws.sagemaker#ResourceSpec" + }, + "CustomImages": { + "target": "com.amazonaws.sagemaker#CustomImages", + "traits": { + "smithy.api#documentation": "A list of custom SageMaker images that are configured to run as a JupyterLab app.
" + } + }, + "LifecycleConfigArns": { + "target": "com.amazonaws.sagemaker#LifecycleConfigArns", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the lifecycle configurations attached to the user profile or domain. To remove a lifecycle config, you must set LifecycleConfigArns
to an empty list.
A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The settings for the JupyterLab application.
" + } + }, "com.amazonaws.sagemaker#JupyterServerAppSettings": { "type": "structure", "members": { @@ -33399,7 +33777,7 @@ "SpaceNameEquals": { "target": "com.amazonaws.sagemaker#SpaceName", "traits": { - "smithy.api#documentation": "A parameter to search by space name. If UserProfileNameEquals
is set, then this value cannot be set.
A parameter to search by space name. If UserProfileNameEquals
is set,\n then this value cannot be set.
If the previous response was truncated, you will receive this token.\n Use it in your next request to receive the next set of results.
" + "smithy.api#documentation": "If the previous response was truncated, you will receive this token. Use it in your\n next request to receive the next set of results.
" } }, "MaxResults": { "target": "com.amazonaws.sagemaker#MaxResults", "traits": { - "smithy.api#documentation": "The total number of items to return in the response. If the total\n number of items available is more than the value specified, a NextToken
\n is provided in the response. To resume pagination, provide the NextToken
\n value in the as part of a subsequent call. The default value is 10.
The total number of items to return in the response. If the total number of items\n available is more than the value specified, a NextToken
is provided in the\n response. To resume pagination, provide the NextToken
value in the as part\n of a subsequent call. The default value is 10.
The parameter by which to sort the results. The default is CreationTime
.
The parameter by which to sort the results. The default is\n CreationTime
.
If the previous response was truncated, you will receive this token.\n Use it in your next request to receive the next set of results.
" + "smithy.api#documentation": "If the previous response was truncated, you will receive this token. Use it in your\n next request to receive the next set of results.
" } } }, @@ -44875,6 +45253,26 @@ "smithy.api#pattern": ".*" } }, + "com.amazonaws.sagemaker#NonEmptyString256": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^(?!\\s*$).+$" + } + }, + "com.amazonaws.sagemaker#NonEmptyString64": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 64 + }, + "smithy.api#pattern": "^(?!\\s*$).+$" + } + }, "com.amazonaws.sagemaker#NotebookInstanceAcceleratorType": { "type": "enum", "members": { @@ -45909,6 +46307,36 @@ } } }, + "com.amazonaws.sagemaker#OwnershipSettings": { + "type": "structure", + "members": { + "OwnerUserProfileName": { + "target": "com.amazonaws.sagemaker#UserProfileName", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The user profile who is the owner of the private space.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The collection of ownership settings for a space.
" + } + }, + "com.amazonaws.sagemaker#OwnershipSettingsSummary": { + "type": "structure", + "members": { + "OwnerUserProfileName": { + "target": "com.amazonaws.sagemaker#UserProfileName", + "traits": { + "smithy.api#documentation": "The user profile who is the owner of the private space.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies summary information about the ownership settings.
" + } + }, "com.amazonaws.sagemaker#PaginationToken": { "type": "string", "traits": { @@ -55420,6 +55848,23 @@ "smithy.api#documentation": "Specifies options for sharing Amazon SageMaker Studio notebooks. These settings are\n specified as part of DefaultUserSettings
when the CreateDomain
\n API is called, and as part of UserSettings
when the CreateUserProfile
\n API is called. When SharingSettings
is not specified, notebook sharing\n isn't allowed.
The application settings for a Code Editor space.
" + } + }, "com.amazonaws.sagemaker#SpaceDetails": { "type": "structure", "members": { @@ -55847,12 +56303,62 @@ "traits": { "smithy.api#documentation": "The last modified time.
" } + }, + "SpaceDisplayName": { + "target": "com.amazonaws.sagemaker#NonEmptyString64", + "traits": { + "smithy.api#documentation": "The name of the space that appears in the Studio UI.
" + } + }, + "SpaceSettingsSummary": { + "target": "com.amazonaws.sagemaker#SpaceSettingsSummary", + "traits": { + "smithy.api#documentation": "Specifies summary information about the space settings.
" + } + }, + "SpaceSharingSettingsSummary": { + "target": "com.amazonaws.sagemaker#SpaceSharingSettingsSummary", + "traits": { + "smithy.api#documentation": "Specifies summary information about the space sharing settings.
" + } + }, + "OwnershipSettingsSummary": { + "target": "com.amazonaws.sagemaker#OwnershipSettingsSummary", + "traits": { + "smithy.api#documentation": "Specifies summary information about the ownership settings.
" + } } }, "traits": { "smithy.api#documentation": "The space's details.
" } }, + "com.amazonaws.sagemaker#SpaceEbsVolumeSizeInGb": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 5, + "max": 16384 + } + } + }, + "com.amazonaws.sagemaker#SpaceJupyterLabAppSettings": { + "type": "structure", + "members": { + "DefaultResourceSpec": { + "target": "com.amazonaws.sagemaker#ResourceSpec" + }, + "CodeRepositories": { + "target": "com.amazonaws.sagemaker#CodeRepositories", + "traits": { + "smithy.api#documentation": "A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The settings for the JupyterLab application within a space.
" + } + }, "com.amazonaws.sagemaker#SpaceList": { "type": "list", "member": { @@ -55877,12 +56383,92 @@ }, "KernelGatewayAppSettings": { "target": "com.amazonaws.sagemaker#KernelGatewayAppSettings" + }, + "JupyterLabAppSettings": { + "target": "com.amazonaws.sagemaker#SpaceJupyterLabAppSettings", + "traits": { + "smithy.api#documentation": "The settings for the JupyterLab application.
" + } + }, + "CodeEditorAppSettings": { + "target": "com.amazonaws.sagemaker#SpaceCodeEditorAppSettings", + "traits": { + "smithy.api#documentation": "The Code Editor application settings.
" + } + }, + "SpaceStorageSettings": { + "target": "com.amazonaws.sagemaker#SpaceStorageSettings", + "traits": { + "smithy.api#documentation": "The storage settings for a private space.
" + } + }, + "AppType": { + "target": "com.amazonaws.sagemaker#AppType", + "traits": { + "smithy.api#documentation": "The type of app created within the space.
" + } + }, + "CustomFileSystems": { + "target": "com.amazonaws.sagemaker#CustomFileSystems", + "traits": { + "smithy.api#documentation": "A file system, created by you, that you assign to a space for an Amazon SageMaker\n Domain. Permitted users can access this file system in Amazon SageMaker\n Studio.
" + } } }, "traits": { "smithy.api#documentation": "A collection of space settings.
" } }, + "com.amazonaws.sagemaker#SpaceSettingsSummary": { + "type": "structure", + "members": { + "AppType": { + "target": "com.amazonaws.sagemaker#AppType", + "traits": { + "smithy.api#documentation": "The type of app created within the space.
" + } + }, + "SpaceStorageSettings": { + "target": "com.amazonaws.sagemaker#SpaceStorageSettings", + "traits": { + "smithy.api#documentation": "The storage settings for a private space.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies summary information about the space settings.
" + } + }, + "com.amazonaws.sagemaker#SpaceSharingSettings": { + "type": "structure", + "members": { + "SharingType": { + "target": "com.amazonaws.sagemaker#SharingType", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "Specifies the sharing type of the space.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "A collection of space sharing settings.
" + } + }, + "com.amazonaws.sagemaker#SpaceSharingSettingsSummary": { + "type": "structure", + "members": { + "SharingType": { + "target": "com.amazonaws.sagemaker#SharingType", + "traits": { + "smithy.api#documentation": "Specifies the sharing type of the space.
" + } + } + }, + "traits": { + "smithy.api#documentation": "Specifies summary information about the space sharing settings.
" + } + }, "com.amazonaws.sagemaker#SpaceSortKey": { "type": "enum", "members": { @@ -55947,6 +56533,20 @@ } } }, + "com.amazonaws.sagemaker#SpaceStorageSettings": { + "type": "structure", + "members": { + "EbsStorageSettings": { + "target": "com.amazonaws.sagemaker#EbsStorageSettings", + "traits": { + "smithy.api#documentation": "A collection of EBS storage settings for a private space.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The storage settings for a private space.
" + } + }, "com.amazonaws.sagemaker#SpawnRate": { "type": "integer", "traits": { @@ -57100,6 +57700,18 @@ "traits": { "smithy.api#enumValue": "KernelGateway" } + }, + "JupyterLab": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "JupyterLab" + } + }, + "CodeEditor": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CodeEditor" + } } } }, @@ -61044,6 +61656,15 @@ "smithy.api#documentation": "Container for user interface template information.
" } }, + "com.amazonaws.sagemaker#Uid": { + "type": "long", + "traits": { + "smithy.api#range": { + "min": 10000, + "max": 4000000 + } + } + }, "com.amazonaws.sagemaker#UpdateAction": { "type": "operation", "input": { @@ -61151,6 +61772,12 @@ "traits": { "smithy.api#documentation": "The new KernelGateway app to run on the image.
" } + }, + "JupyterLabAppImageConfig": { + "target": "com.amazonaws.sagemaker#JupyterLabAppImageConfig", + "traits": { + "smithy.api#documentation": "The JupyterLab app running on the image.
" + } } }, "traits": { @@ -63091,6 +63718,12 @@ "traits": { "smithy.api#documentation": "A collection of space settings.
" } + }, + "SpaceDisplayName": { + "target": "com.amazonaws.sagemaker#NonEmptyString64", + "traits": { + "smithy.api#documentation": "The name of the space that appears in the Amazon SageMaker Studio UI.
" + } } }, "traits": { @@ -63772,6 +64405,24 @@ "smithy.api#documentation": "The Canvas app settings.
" } }, + "JupyterLabAppSettings": { + "target": "com.amazonaws.sagemaker#JupyterLabAppSettings", + "traits": { + "smithy.api#documentation": "The settings for the JupyterLab application.
" + } + }, + "CodeEditorAppSettings": { + "target": "com.amazonaws.sagemaker#CodeEditorAppSettings", + "traits": { + "smithy.api#documentation": "The Code Editor application settings.
" + } + }, + "SpaceStorageSettings": { + "target": "com.amazonaws.sagemaker#DefaultSpaceStorageSettings", + "traits": { + "smithy.api#documentation": "The storage settings for a private space.
" + } + }, "DefaultLandingUri": { "target": "com.amazonaws.sagemaker#LandingUri", "traits": { @@ -63783,6 +64434,18 @@ "traits": { "smithy.api#documentation": "Whether the user can access Studio. If this value is set to DISABLED
, the user cannot access Studio, even if that is the default experience for the domain.
Details about the POSIX identity that is used for file system operations.
" + } + }, + "CustomFileSystemConfigs": { + "target": "com.amazonaws.sagemaker#CustomFileSystemConfigs", + "traits": { + "smithy.api#documentation": "The settings for assigning a custom file system to a user profile. Permitted users can\n access this file system in Amazon SageMaker Studio.
" + } } }, "traits": { diff --git a/codegen/sdk-codegen/aws-models/service-catalog-appregistry.json b/codegen/sdk-codegen/aws-models/service-catalog-appregistry.json index bfa4362084b..746be551b06 100644 --- a/codegen/sdk-codegen/aws-models/service-catalog-appregistry.json +++ b/codegen/sdk-codegen/aws-models/service-catalog-appregistry.json @@ -1108,17 +1108,6 @@ "expect": { "error": "Invalid Configuration: Missing Region" } - }, - { - "documentation": "Partition doesn't support DualStack", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } } ], "version": "1.0" @@ -1452,7 +1441,7 @@ } ], "traits": { - "smithy.api#documentation": "\n Associates a resource with an application. \n The resource can be specified by its ARN or name. \n The application can be specified by ARN, ID, or name.\n
\n\n Minimum permissions\n
\n\n You must have the following permissions to associate a resource using the OPTIONS
parameter set to APPLY_APPLICATION_TAG
.\n
\n tag:GetResources
\n
\n tag:TagResources
\n
\n You must also have these additional permissions if you don't use the AWSServiceCatalogAppRegistryFullAccess
policy. \n For more information, see AWSServiceCatalogAppRegistryFullAccess in the AppRegistry Administrator Guide.\n
\n resource-groups:DisassociateResource
\n
\n cloudformation:UpdateStack
\n
\n cloudformation:DescribeStacks
\n
\n In addition, you must have the tagging permission defined by the Amazon Web Services service that creates the resource. \n For more information, see TagResources in the Resource Groups Tagging API Reference.\n
\n\n Associates a resource with an application. \n The resource can be specified by its ARN or name. \n The application can be specified by ARN, ID, or name.\n
\n\n Minimum permissions\n
\n\n You must have the following permissions to associate a resource using the OPTIONS
parameter set to APPLY_APPLICATION_TAG
.\n
\n tag:GetResources
\n
\n tag:TagResources
\n
\n You must also have these additional permissions if you don't use the AWSServiceCatalogAppRegistryFullAccess
policy. \n For more information, see AWSServiceCatalogAppRegistryFullAccess in the AppRegistry Administrator Guide.\n
\n resource-groups:AssociateResource
\n
\n cloudformation:UpdateStack
\n
\n cloudformation:DescribeStacks
\n
\n In addition, you must have the tagging permission defined by the Amazon Web Services service that creates the resource. \n For more information, see TagResources in the Resource Groups Tagging API Reference.\n
\nMakes a series of decisions about multiple authorization requests for one principal or\n resource. Each request contains the equivalent content of an IsAuthorized
\n request: principal, action, resource, and context. Either the principal
or\n the resource
parameter must be identical across all requests. For example,\n Verified Permissions won't evaluate a pair of requests where bob
views\n photo1
and alice
views photo2
. Authorization\n of bob
to view photo1
and photo2
, or\n bob
and alice
to view photo1
, are valid\n batches.
The request is evaluated against all policies in the specified policy store that match the\n entities that you declare. The result of the decisions is a series of Allow
\n or Deny
responses, along with the IDs of the policies that produced each\n decision.
The entities
of a BatchIsAuthorized
API request can contain up to 100 principals and up\n to 100 resources. The requests
of a BatchIsAuthorized
API request can contain up to 30\n requests.
Makes a series of decisions about multiple authorization requests for one principal or\n resource. Each request contains the equivalent content of an IsAuthorized
\n request: principal, action, resource, and context. Either the principal
or\n the resource
parameter must be identical across all requests. For example,\n Verified Permissions won't evaluate a pair of requests where bob
views\n photo1
and alice
views photo2
. Authorization\n of bob
to view photo1
and photo2
, or\n bob
and alice
to view photo1
, are valid\n batches.
The request is evaluated against all policies in the specified policy store that match the\n entities that you declare. The result of the decisions is a series of Allow
\n or Deny
responses, along with the IDs of the policies that produced each\n decision.
The entities
of a BatchIsAuthorized
API request can contain\n up to 100 principals and up to 100 resources. The requests
of a\n BatchIsAuthorized
API request can contain up to 30 requests.
The BatchIsAuthorized
operation doesn't have its own IAM\n permission. To authorize this operation for Amazon Web Services principals, include the permission\n verifiedpermissions:IsAuthorized
in their IAM policies.
Specifies the validation setting for this policy store.
\nCurrently, the only valid and required value is Mode
.
We recommend that you turn on STRICT
mode only after you define a\n schema. If a schema doesn't exist, then STRICT
mode causes any policy\n to fail validation, and Verified Permissions rejects the policy. You can turn off validation by\n using the UpdatePolicyStore. Then, when you have a schema defined, use UpdatePolicyStore again to turn validation back on.
Descriptive text that you can provide to help with identification \n of the current policy store.
" + } } }, "traits": { @@ -1401,6 +1407,12 @@ "smithy.api#documentation": "The date and time that the policy store was last updated.
", "smithy.api#required": {} } + }, + "description": { + "target": "com.amazonaws.verifiedpermissions#PolicyStoreDescription", + "traits": { + "smithy.api#documentation": "Descriptive text that you can provide to help with identification \n of the current policy store.
" + } } }, "traits": { @@ -1563,6 +1575,12 @@ "smithy.api#documentation": "The date and time that the schema was most recently updated.
", "smithy.api#required": {} } + }, + "namespaces": { + "target": "com.amazonaws.verifiedpermissions#NamespaceList", + "traits": { + "smithy.api#documentation": "The namespaces of the entities referenced by this schema.
" + } } }, "traits": { @@ -2613,6 +2631,16 @@ "smithy.api#documentation": "Represents a policy store that you can place schema, policies, and policy templates in to validate authorization requests" } }, + "com.amazonaws.verifiedpermissions#PolicyStoreDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 150 + }, + "smithy.api#sensitive": {} + } + }, "com.amazonaws.verifiedpermissions#PolicyStoreId": { "type": "string", "traits": { @@ -2646,6 +2674,18 @@ "smithy.api#documentation": "The date and time the policy was created.
", "smithy.api#required": {} } + }, + "lastUpdatedDate": { + "target": "com.amazonaws.verifiedpermissions#TimestampFormat", + "traits": { + "smithy.api#documentation": "The date and time the policy store was most recently updated.
" + } + }, + "description": { + "target": "com.amazonaws.verifiedpermissions#PolicyStoreDescription", + "traits": { + "smithy.api#documentation": "Descriptive text that you can provide to help with identification \n of the current policy store.
" + } } }, "traits": { @@ -3542,6 +3582,12 @@ "smithy.api#documentation": "A structure that defines the validation settings that want to enable for the\n policy store.
", "smithy.api#required": {} } + }, + "description": { + "target": "com.amazonaws.verifiedpermissions#PolicyStoreDescription", + "traits": { + "smithy.api#documentation": "Descriptive text that you can provide to help with identification \n of the current policy store.
" + } } }, "traits": { diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointDiscoveryGenerator.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointDiscoveryGenerator.java index 0f424b1ea63..f56907cf437 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointDiscoveryGenerator.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointDiscoveryGenerator.java @@ -189,6 +189,7 @@ private static void generateAddDiscoverEndpointMiddleware( writer.write("EndpointDiscoveryEnableState: o.$L.$L,", ENDPOINT_DISCOVERY_OPTION, ENABLE_ENDPOINT_DISCOVERY_OPTION); writer.write("EndpointDiscoveryRequired: $L,", operationRequiresEndpointDiscovery(model, service, operation)); + writer.write("Region: o.Region,"); }); }); writer.write(""); @@ -216,11 +217,10 @@ private static void generateEndpointDiscoveryHandler( Symbol discoveryOperationInputSymbol = symbolProvider.toSymbol(discoveryOperationInput); writer.addUseImports(SmithyGoDependency.CONTEXT); - writer.openBlock("func (c *Client) $L(ctx context.Context, input $P, key string, opt $T) ($T, error) {", "}", + writer.openBlock("func (c *Client) $L(ctx context.Context, input $P, region, key string, opt $T) ($T, error) {", "}", DISCOVERY_ENDPOINT_HANDLER_NAME, discoveryOperationInputSymbol, DISCOVERY_ENDPOINT_OPTIONS, DISCOVERY_ENDPOINT_TYPE, () -> { - - if (serviceSupportsCustomDiscoveryEndpoint(model, service)) { +if (serviceSupportsCustomDiscoveryEndpoint(model, service)) { // check if endpoint resolver for endpoint discovery is of service-specific endpoint resolver type writer.writeDocs("assert endpoint resolver interface is of expected type."); writer.write("endpointResolver, ok := opt.$L.($T)", ENDPOINT_RESOLVER_USED_FOR_DISCOVERY, @@ -238,6 +238,7 @@ private static void generateEndpointDiscoveryHandler( // fetch endpoint via making discovery call writer.openBlock("output, err := c.$T(ctx, input, func(o *Options) {", "})", discoveryOperationSymbol, () -> { + writer.write("o.Region = region").write(""); writer.write("o.EndpointOptions.$L = opt.$L", DISABLE_HTTPS, DISABLE_HTTPS); writer.write("o.Logger = opt.Logger"); @@ -329,7 +330,7 @@ private static void generateFetchDiscoveredEndpointFunction( writer.addUseImports(SmithyGoDependency.CONTEXT); writer.openBlock( - "func (c *Client) $L(ctx context.Context, optFns ...func($P)) ($T, error) {", "}", + "func (c *Client) $L(ctx context.Context, region string, optFns ...func($P)) ($T, error) {", "}", fetchDiscoveredEndpointFuncName, DISCOVERY_ENDPOINT_OPTIONS, DISCOVERY_ENDPOINT_WEIGHTED_ADDRESS, () -> { writer.write("input := getOperationInput(ctx)"); @@ -346,6 +347,10 @@ private static void generateFetchDiscoveredEndpointFunction( String IDENTIFIER_MAP = "identifierMap"; writer.write("$L := make(map[string]string, 0)", IDENTIFIER_MAP); + // include region at a minimum + // see https://github.com/aws/aws-sdk-go-v2/issues/2163 + writer.write("$L[$S] = region", IDENTIFIER_MAP, "sdk#Region"); + for (MemberShape member : getMembersUsedAsIdForDiscovery(model, service, operation)) { String memberName = member.getMemberName(); Shape targetShape = model.expectShape(member.getTarget()); @@ -385,13 +390,13 @@ private static void generateFetchDiscoveredEndpointFunction( // if discovery not required, then spin up a unblocking go routine if (!operationRequiresEndpointDiscovery(model, service, operation)) { - writer.write("go c.$L(ctx, $L, key, opt)", DISCOVERY_ENDPOINT_HANDLER_NAME, + writer.write("go c.$L(ctx, $L, region, key, opt)", DISCOVERY_ENDPOINT_HANDLER_NAME, DISCOVERY_OPERATION_INPUT_NAME); writer.write("return $T{}, nil", DISCOVERY_ENDPOINT_WEIGHTED_ADDRESS); return; } - writer.write("endpoint, err := c.$L(ctx, $L, key, opt)", DISCOVERY_ENDPOINT_HANDLER_NAME, + writer.write("endpoint, err := c.$L(ctx, $L, region, key, opt)", DISCOVERY_ENDPOINT_HANDLER_NAME, DISCOVERY_OPERATION_INPUT_NAME); writer.write("if err != nil { return $T{}, err }", DISCOVERY_ENDPOINT_WEIGHTED_ADDRESS); writer.write(""); diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java index 9ef37ee873c..437372a1ec0 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/SdkGoTypes.java @@ -31,6 +31,7 @@ public static final class Aws { public static final Symbol FIPSEndpointStateEnabled = AwsGoDependency.AWS_CORE.valueSymbol("FIPSEndpointStateEnabled"); public static final Symbol DualStackEndpointStateEnabled = AwsGoDependency.AWS_CORE.valueSymbol("DualStackEndpointStateEnabled"); + public static final Symbol IsCredentialsProvider = AwsGoDependency.AWS_CORE.valueSymbol("IsCredentialsProvider"); public static final Symbol AnonymousCredentials = AwsGoDependency.AWS_CORE.pointableSymbol("AnonymousCredentials"); public static final class Middleware { diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java index e30f879c23c..bd51b8f3a5d 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/auth/IgnoreAnonymousCredentials.java @@ -70,10 +70,10 @@ public void writeAdditionalFiles( private GoWriter.Writable generateResolver() { return goTemplate(""" func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.($T); ok { + if $T(options.Credentials, ($P)(nil)) { options.Credentials = nil } } - """, SdkGoTypes.Aws.AnonymousCredentials); + """, SdkGoTypes.Aws.IsCredentialsProvider, SdkGoTypes.Aws.AnonymousCredentials); } } diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json index 5607d660137..a6d021a14f8 100644 --- a/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json +++ b/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen/endpoints.json @@ -405,6 +405,11 @@ } } }, + "agreement-marketplace" : { + "endpoints" : { + "us-east-1" : { } + } + }, "airflow" : { "endpoints" : { "ap-northeast-1" : { }, @@ -15868,6 +15873,30 @@ "deprecated" : true, "hostname" : "signer-fips.us-west-2.amazonaws.com" }, + "fips-verification-us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "verification.signer-fips.us-east-1.amazonaws.com" + }, + "fips-verification-us-east-2" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "verification.signer-fips.us-east-2.amazonaws.com" + }, + "fips-verification-us-west-1" : { + "credentialScope" : { + "region" : "us-west-1" + }, + "hostname" : "verification.signer-fips.us-west-1.amazonaws.com" + }, + "fips-verification-us-west-2" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "verification.signer-fips.us-west-2.amazonaws.com" + }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { @@ -15893,6 +15922,126 @@ "hostname" : "signer-fips.us-west-2.amazonaws.com", "tags" : [ "fips" ] } ] + }, + "verification-af-south-1" : { + "credentialScope" : { + "region" : "af-south-1" + }, + "hostname" : "verification.signer.af-south-1.amazonaws.com" + }, + "verification-ap-east-1" : { + "credentialScope" : { + "region" : "ap-east-1" + }, + "hostname" : "verification.signer.ap-east-1.amazonaws.com" + }, + "verification-ap-northeast-1" : { + "credentialScope" : { + "region" : "ap-northeast-1" + }, + "hostname" : "verification.signer.ap-northeast-1.amazonaws.com" + }, + "verification-ap-northeast-2" : { + "credentialScope" : { + "region" : "ap-northeast-2" + }, + "hostname" : "verification.signer.ap-northeast-2.amazonaws.com" + }, + "verification-ap-south-1" : { + "credentialScope" : { + "region" : "ap-south-1" + }, + "hostname" : "verification.signer.ap-south-1.amazonaws.com" + }, + "verification-ap-southeast-1" : { + "credentialScope" : { + "region" : "ap-southeast-1" + }, + "hostname" : "verification.signer.ap-southeast-1.amazonaws.com" + }, + "verification-ap-southeast-2" : { + "credentialScope" : { + "region" : "ap-southeast-2" + }, + "hostname" : "verification.signer.ap-southeast-2.amazonaws.com" + }, + "verification-ca-central-1" : { + "credentialScope" : { + "region" : "ca-central-1" + }, + "hostname" : "verification.signer.ca-central-1.amazonaws.com" + }, + "verification-eu-central-1" : { + "credentialScope" : { + "region" : "eu-central-1" + }, + "hostname" : "verification.signer.eu-central-1.amazonaws.com" + }, + "verification-eu-north-1" : { + "credentialScope" : { + "region" : "eu-north-1" + }, + "hostname" : "verification.signer.eu-north-1.amazonaws.com" + }, + "verification-eu-south-1" : { + "credentialScope" : { + "region" : "eu-south-1" + }, + "hostname" : "verification.signer.eu-south-1.amazonaws.com" + }, + "verification-eu-west-1" : { + "credentialScope" : { + "region" : "eu-west-1" + }, + "hostname" : "verification.signer.eu-west-1.amazonaws.com" + }, + "verification-eu-west-2" : { + "credentialScope" : { + "region" : "eu-west-2" + }, + "hostname" : "verification.signer.eu-west-2.amazonaws.com" + }, + "verification-eu-west-3" : { + "credentialScope" : { + "region" : "eu-west-3" + }, + "hostname" : "verification.signer.eu-west-3.amazonaws.com" + }, + "verification-me-south-1" : { + "credentialScope" : { + "region" : "me-south-1" + }, + "hostname" : "verification.signer.me-south-1.amazonaws.com" + }, + "verification-sa-east-1" : { + "credentialScope" : { + "region" : "sa-east-1" + }, + "hostname" : "verification.signer.sa-east-1.amazonaws.com" + }, + "verification-us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "verification.signer.us-east-1.amazonaws.com" + }, + "verification-us-east-2" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "verification.signer.us-east-2.amazonaws.com" + }, + "verification-us-west-1" : { + "credentialScope" : { + "region" : "us-west-1" + }, + "hostname" : "verification.signer.us-west-1.amazonaws.com" + }, + "verification-us-west-2" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "verification.signer.us-west-2.amazonaws.com" } } }, @@ -20019,6 +20168,11 @@ "cn-northwest-1" : { } } }, + "redshift-serverless" : { + "endpoints" : { + "cn-north-1" : { } + } + }, "resource-explorer-2" : { "defaults" : { "dnsSuffix" : "api.amazonwebservices.com.cn", @@ -20218,7 +20372,19 @@ "signer" : { "endpoints" : { "cn-north-1" : { }, - "cn-northwest-1" : { } + "cn-northwest-1" : { }, + "verification-cn-north-1" : { + "credentialScope" : { + "region" : "cn-north-1" + }, + "hostname" : "verification.signer.cn-north-1.amazonaws.com.cn" + }, + "verification-cn-northwest-1" : { + "credentialScope" : { + "region" : "cn-northwest-1" + }, + "hostname" : "verification.signer.cn-northwest-1.amazonaws.com.cn" + } } }, "sms" : { @@ -25713,8 +25879,32 @@ }, "redshift" : { "endpoints" : { - "us-iso-east-1" : { }, - "us-iso-west-1" : { } + "fips-us-iso-east-1" : { + "credentialScope" : { + "region" : "us-iso-east-1" + }, + "deprecated" : true, + "hostname" : "redshift-fips.us-iso-east-1.c2s.ic.gov" + }, + "fips-us-iso-west-1" : { + "credentialScope" : { + "region" : "us-iso-west-1" + }, + "deprecated" : true, + "hostname" : "redshift-fips.us-iso-west-1.c2s.ic.gov" + }, + "us-iso-east-1" : { + "variants" : [ { + "hostname" : "redshift-fips.us-iso-east-1.c2s.ic.gov", + "tags" : [ "fips" ] + } ] + }, + "us-iso-west-1" : { + "variants" : [ { + "hostname" : "redshift-fips.us-iso-west-1.c2s.ic.gov", + "tags" : [ "fips" ] + } ] + } } }, "resource-groups" : { @@ -26252,7 +26442,19 @@ }, "redshift" : { "endpoints" : { - "us-isob-east-1" : { } + "fips-us-isob-east-1" : { + "credentialScope" : { + "region" : "us-isob-east-1" + }, + "deprecated" : true, + "hostname" : "redshift-fips.us-isob-east-1.sc2s.sgov.gov" + }, + "us-isob-east-1" : { + "variants" : [ { + "hostname" : "redshift-fips.us-isob-east-1.sc2s.sgov.gov", + "tags" : [ "fips" ] + } ] + } } }, "resource-groups" : { diff --git a/config/CHANGELOG.md b/config/CHANGELOG.md index f7924490ff2..dbe24d3e125 100644 --- a/config/CHANGELOG.md +++ b/config/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.25.11 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.10 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.9 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/config/go.mod b/config/go.mod index 945d9b4d3e2..114fe0525ab 100644 --- a/config/go.mod +++ b/config/go.mod @@ -3,22 +3,22 @@ module github.com/aws/aws-sdk-go-v2/config go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) require ( - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../ diff --git a/config/go.sum b/config/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/config/go.sum +++ b/config/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/config/go_module_metadata.go b/config/go_module_metadata.go index c7ed0df3465..50962ab387f 100644 --- a/config/go_module_metadata.go +++ b/config/go_module_metadata.go @@ -3,4 +3,4 @@ package config // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.9" +const goModuleVersion = "1.25.11" diff --git a/credentials/CHANGELOG.md b/credentials/CHANGELOG.md index e56b5b126ee..529591f9c02 100644 --- a/credentials/CHANGELOG.md +++ b/credentials/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.16.9 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.8 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.7 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/credentials/go.mod b/credentials/go.mod index eecf698b4f6..5522b32a615 100644 --- a/credentials/go.mod +++ b/credentials/go.mod @@ -3,20 +3,20 @@ module github.com/aws/aws-sdk-go-v2/credentials go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) require ( - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../ diff --git a/credentials/go.sum b/credentials/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/credentials/go.sum +++ b/credentials/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/credentials/go_module_metadata.go b/credentials/go_module_metadata.go index e64542e9953..16aacea8d22 100644 --- a/credentials/go_module_metadata.go +++ b/credentials/go_module_metadata.go @@ -3,4 +3,4 @@ package credentials // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.7" +const goModuleVersion = "1.16.9" diff --git a/example/service/dynamodb/createTable/go.mod b/example/service/dynamodb/createTable/go.mod index 7d25394bf7f..e0a89628f94 100644 --- a/example/service/dynamodb/createTable/go.mod +++ b/example/service/dynamodb/createTable/go.mod @@ -3,24 +3,24 @@ module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/createTable go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.3 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect + github.com/aws/smithy-go v1.18.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/example/service/dynamodb/createTable/go.sum b/example/service/dynamodb/createTable/go.sum index 2e9ae349c0d..36364b014f6 100644 --- a/example/service/dynamodb/createTable/go.sum +++ b/example/service/dynamodb/createTable/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/dynamodb/scanItems/go.mod b/example/service/dynamodb/scanItems/go.mod index 6cc42292a18..6968e3388ba 100644 --- a/example/service/dynamodb/scanItems/go.mod +++ b/example/service/dynamodb/scanItems/go.mod @@ -3,26 +3,26 @@ module github.com/aws/aws-sdk-go-v2/example/service/dynamodb/listItems go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.12.6 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.12.9 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.3 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect + github.com/aws/smithy-go v1.18.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/example/service/dynamodb/scanItems/go.sum b/example/service/dynamodb/scanItems/go.sum index 2e9ae349c0d..36364b014f6 100644 --- a/example/service/dynamodb/scanItems/go.sum +++ b/example/service/dynamodb/scanItems/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/s3/listObjects/go.mod b/example/service/s3/listObjects/go.mod index 8aca94f4dc5..eefd1f7cbd1 100644 --- a/example/service/s3/listObjects/go.mod +++ b/example/service/s3/listObjects/go.mod @@ -3,27 +3,27 @@ module github.com/aws/aws-sdk-go-v2/example/service/s3/listObjects go 1.19 require ( - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/service/s3 v1.47.0 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/service/s3 v1.47.2 ) require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 // indirect - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2 v1.23.5 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect + github.com/aws/smithy-go v1.18.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../ diff --git a/example/service/s3/listObjects/go.sum b/example/service/s3/listObjects/go.sum index 4a236cdfa85..e5153680047 100644 --- a/example/service/s3/listObjects/go.sum +++ b/example/service/s3/listObjects/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/example/service/s3/usingPrivateLink/go.mod b/example/service/s3/usingPrivateLink/go.mod index ef1cd7ccc6e..321746dd52f 100644 --- a/example/service/s3/usingPrivateLink/go.mod +++ b/example/service/s3/usingPrivateLink/go.mod @@ -3,28 +3,28 @@ module github.com/aws/aws-sdk-go-v2/example/service/s3/usingPrivateLink go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/service/s3 v1.47.0 - github.com/aws/aws-sdk-go-v2/service/s3control v1.41.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/service/s3 v1.47.2 + github.com/aws/aws-sdk-go-v2/service/s3control v1.41.2 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect + github.com/aws/smithy-go v1.18.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../ diff --git a/example/service/s3/usingPrivateLink/go.sum b/example/service/s3/usingPrivateLink/go.sum index 4a236cdfa85..e5153680047 100644 --- a/example/service/s3/usingPrivateLink/go.sum +++ b/example/service/s3/usingPrivateLink/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/cloudfront/sign/CHANGELOG.md b/feature/cloudfront/sign/CHANGELOG.md index e6490a22607..7c7fa61c817 100644 --- a/feature/cloudfront/sign/CHANGELOG.md +++ b/feature/cloudfront/sign/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.5.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/cloudfront/sign/go.mod b/feature/cloudfront/sign/go.mod index 5b26ac78761..8d57fddaa67 100644 --- a/feature/cloudfront/sign/go.mod +++ b/feature/cloudfront/sign/go.mod @@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/feature/cloudfront/sign go 1.19 -require github.com/aws/aws-sdk-go-v2 v1.23.3 +require github.com/aws/aws-sdk-go-v2 v1.23.5 -require github.com/aws/smithy-go v1.18.0 // indirect +require github.com/aws/smithy-go v1.18.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/cloudfront/sign/go.sum b/feature/cloudfront/sign/go.sum index 4a236cdfa85..e5153680047 100644 --- a/feature/cloudfront/sign/go.sum +++ b/feature/cloudfront/sign/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/cloudfront/sign/go_module_metadata.go b/feature/cloudfront/sign/go_module_metadata.go index 79a587af57a..b2a0ea19500 100644 --- a/feature/cloudfront/sign/go_module_metadata.go +++ b/feature/cloudfront/sign/go_module_metadata.go @@ -3,4 +3,4 @@ package sign // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.6" +const goModuleVersion = "1.5.8" diff --git a/feature/dynamodb/attributevalue/CHANGELOG.md b/feature/dynamodb/attributevalue/CHANGELOG.md index a97f3066a22..089bd025dd5 100644 --- a/feature/dynamodb/attributevalue/CHANGELOG.md +++ b/feature/dynamodb/attributevalue/CHANGELOG.md @@ -1,3 +1,15 @@ +# v1.12.9 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.12.8 (2023-11-30.2) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.12.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/dynamodb/attributevalue/go.mod b/feature/dynamodb/attributevalue/go.mod index 393c7e22215..7dee4b3daa6 100644 --- a/feature/dynamodb/attributevalue/go.mod +++ b/feature/dynamodb/attributevalue/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.0 - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.3 + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/dynamodb/attributevalue/go.sum b/feature/dynamodb/attributevalue/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/feature/dynamodb/attributevalue/go.sum +++ b/feature/dynamodb/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodb/attributevalue/go_module_metadata.go b/feature/dynamodb/attributevalue/go_module_metadata.go index 14e704107b9..d6d8b633e4a 100644 --- a/feature/dynamodb/attributevalue/go_module_metadata.go +++ b/feature/dynamodb/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.6" +const goModuleVersion = "1.12.9" diff --git a/feature/dynamodb/expression/CHANGELOG.md b/feature/dynamodb/expression/CHANGELOG.md index d39131fd69f..393d85c1298 100644 --- a/feature/dynamodb/expression/CHANGELOG.md +++ b/feature/dynamodb/expression/CHANGELOG.md @@ -1,3 +1,15 @@ +# v1.6.9 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.8 (2023-11-30.2) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/dynamodb/expression/go.mod b/feature/dynamodb/expression/go.mod index 244aa97628d..9c4619a8000 100644 --- a/feature/dynamodb/expression/go.mod +++ b/feature/dynamodb/expression/go.mod @@ -3,19 +3,19 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.12.6 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.12.9 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.3 github.com/google/go-cmp v0.5.8 ) require ( - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 // indirect + github.com/aws/smithy-go v1.18.1 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/feature/dynamodb/expression/go.sum b/feature/dynamodb/expression/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/feature/dynamodb/expression/go.sum +++ b/feature/dynamodb/expression/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodb/expression/go_module_metadata.go b/feature/dynamodb/expression/go_module_metadata.go index ef2057ecb62..149941f67d9 100644 --- a/feature/dynamodb/expression/go_module_metadata.go +++ b/feature/dynamodb/expression/go_module_metadata.go @@ -3,4 +3,4 @@ package expression // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.6" +const goModuleVersion = "1.6.9" diff --git a/feature/dynamodbstreams/attributevalue/CHANGELOG.md b/feature/dynamodbstreams/attributevalue/CHANGELOG.md index fe2d331e5f5..f10a719f72d 100644 --- a/feature/dynamodbstreams/attributevalue/CHANGELOG.md +++ b/feature/dynamodbstreams/attributevalue/CHANGELOG.md @@ -1,3 +1,15 @@ +# v1.12.9 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.12.8 (2023-11-30.2) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.12.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/dynamodbstreams/attributevalue/go.mod b/feature/dynamodbstreams/attributevalue/go.mod index 1bb46e770c7..7da0c46f5bb 100644 --- a/feature/dynamodbstreams/attributevalue/go.mod +++ b/feature/dynamodbstreams/attributevalue/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/feature/dynamodbstreams/attributevalue go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.0 - github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.3 + github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.18.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/dynamodbstreams/attributevalue/go.sum b/feature/dynamodbstreams/attributevalue/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/feature/dynamodbstreams/attributevalue/go.sum +++ b/feature/dynamodbstreams/attributevalue/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/dynamodbstreams/attributevalue/go_module_metadata.go b/feature/dynamodbstreams/attributevalue/go_module_metadata.go index 14e704107b9..d6d8b633e4a 100644 --- a/feature/dynamodbstreams/attributevalue/go_module_metadata.go +++ b/feature/dynamodbstreams/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.6" +const goModuleVersion = "1.12.9" diff --git a/feature/ec2/imds/CHANGELOG.md b/feature/ec2/imds/CHANGELOG.md index a7d7b875fca..3381934716f 100644 --- a/feature/ec2/imds/CHANGELOG.md +++ b/feature/ec2/imds/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.14.9 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.14.8 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.7 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/ec2/imds/go.mod b/feature/ec2/imds/go.mod index 7d5dc11dfc7..a684ffff68b 100644 --- a/feature/ec2/imds/go.mod +++ b/feature/ec2/imds/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/feature/ec2/imds go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/feature/ec2/imds/go.sum b/feature/ec2/imds/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/feature/ec2/imds/go.sum +++ b/feature/ec2/imds/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/feature/ec2/imds/go_module_metadata.go b/feature/ec2/imds/go_module_metadata.go index 015ad00b0f9..9979479a91a 100644 --- a/feature/ec2/imds/go_module_metadata.go +++ b/feature/ec2/imds/go_module_metadata.go @@ -3,4 +3,4 @@ package imds // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.7" +const goModuleVersion = "1.14.9" diff --git a/feature/ec2/imds/internal/configtesting/go.mod b/feature/ec2/imds/internal/configtesting/go.mod index 173b534eab3..ea0e1f59fd7 100644 --- a/feature/ec2/imds/internal/configtesting/go.mod +++ b/feature/ec2/imds/internal/configtesting/go.mod @@ -3,22 +3,22 @@ module github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/configtesting go 1.19 require ( - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 ) require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2 v1.23.5 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect + github.com/aws/smithy-go v1.18.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../../ diff --git a/feature/ec2/imds/internal/configtesting/go.sum b/feature/ec2/imds/internal/configtesting/go.sum index 4a236cdfa85..e5153680047 100644 --- a/feature/ec2/imds/internal/configtesting/go.sum +++ b/feature/ec2/imds/internal/configtesting/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/rds/auth/CHANGELOG.md b/feature/rds/auth/CHANGELOG.md index 4a3ef7afd95..69cd9ed0452 100644 --- a/feature/rds/auth/CHANGELOG.md +++ b/feature/rds/auth/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.3.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.3.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.3.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/rds/auth/go.mod b/feature/rds/auth/go.mod index 7f67bb625d6..1fa479e14b8 100644 --- a/feature/rds/auth/go.mod +++ b/feature/rds/auth/go.mod @@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/feature/rds/auth go 1.19 -require github.com/aws/aws-sdk-go-v2 v1.23.3 +require github.com/aws/aws-sdk-go-v2 v1.23.5 -require github.com/aws/smithy-go v1.18.0 // indirect +require github.com/aws/smithy-go v1.18.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/feature/rds/auth/go.sum b/feature/rds/auth/go.sum index 4a236cdfa85..e5153680047 100644 --- a/feature/rds/auth/go.sum +++ b/feature/rds/auth/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/rds/auth/go_module_metadata.go b/feature/rds/auth/go_module_metadata.go index f50614cd309..04653c39713 100644 --- a/feature/rds/auth/go_module_metadata.go +++ b/feature/rds/auth/go_module_metadata.go @@ -3,4 +3,4 @@ package auth // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.3.6" +const goModuleVersion = "1.3.8" diff --git a/feature/s3/manager/CHANGELOG.md b/feature/s3/manager/CHANGELOG.md index c4a4480d127..bd498b130db 100644 --- a/feature/s3/manager/CHANGELOG.md +++ b/feature/s3/manager/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.15.4 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.3 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.2 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/feature/s3/manager/go.mod b/feature/s3/manager/go.mod index 15e5a4887c9..d4a6d060baf 100644 --- a/feature/s3/manager/go.mod +++ b/feature/s3/manager/go.mod @@ -3,28 +3,28 @@ module github.com/aws/aws-sdk-go-v2/feature/s3/manager go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/service/s3 v1.47.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/service/s3 v1.47.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/feature/s3/manager/go.sum b/feature/s3/manager/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/feature/s3/manager/go.sum +++ b/feature/s3/manager/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/feature/s3/manager/go_module_metadata.go b/feature/s3/manager/go_module_metadata.go index 0db21714b1c..e5da58bab0a 100644 --- a/feature/s3/manager/go_module_metadata.go +++ b/feature/s3/manager/go_module_metadata.go @@ -3,4 +3,4 @@ package manager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.2" +const goModuleVersion = "1.15.4" diff --git a/go.mod b/go.mod index bbc471af8b1..9b99a100d60 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/aws/aws-sdk-go-v2 require ( - github.com/aws/smithy-go v1.18.0 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/go.sum b/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/internal/auth/smithy/bearer_token_adapter.go b/internal/auth/smithy/bearer_token_adapter.go index 94dda3ed877..f059b5d391f 100644 --- a/internal/auth/smithy/bearer_token_adapter.go +++ b/internal/auth/smithy/bearer_token_adapter.go @@ -36,7 +36,7 @@ func (v *BearerTokenProviderAdapter) GetIdentity(ctx context.Context, _ smithy.P ) { token, err := v.Provider.RetrieveBearerToken(ctx) if err != nil { - return nil, fmt.Errorf("get token: %v", err) + return nil, fmt.Errorf("get token: %w", err) } return &BearerTokenAdapter{Token: token}, nil diff --git a/internal/auth/smithy/bearer_token_signer_adapter.go b/internal/auth/smithy/bearer_token_signer_adapter.go index 081cd82991e..a88281527c0 100644 --- a/internal/auth/smithy/bearer_token_signer_adapter.go +++ b/internal/auth/smithy/bearer_token_signer_adapter.go @@ -27,7 +27,7 @@ func (v *BearerTokenSignerAdapter) SignRequest(ctx context.Context, r *smithyhtt signed, err := v.Signer.SignWithBearerToken(ctx, ca.Token, r) if err != nil { - return fmt.Errorf("sign request: %v", err) + return fmt.Errorf("sign request: %w", err) } *r = *signed.(*smithyhttp.Request) diff --git a/internal/auth/smithy/credentials_adapter.go b/internal/auth/smithy/credentials_adapter.go index 6017044f438..f926c4aaa76 100644 --- a/internal/auth/smithy/credentials_adapter.go +++ b/internal/auth/smithy/credentials_adapter.go @@ -39,7 +39,7 @@ func (v *CredentialsProviderAdapter) GetIdentity(ctx context.Context, _ smithy.P creds, err := v.Provider.Retrieve(ctx) if err != nil { - return nil, fmt.Errorf("get credentials: %v", err) + return nil, fmt.Errorf("get credentials: %w", err) } return &CredentialsAdapter{Credentials: creds}, nil diff --git a/internal/auth/smithy/v4signer_adapter.go b/internal/auth/smithy/v4signer_adapter.go index 919156edd9b..0c5a2d40c9f 100644 --- a/internal/auth/smithy/v4signer_adapter.go +++ b/internal/auth/smithy/v4signer_adapter.go @@ -46,7 +46,7 @@ func (v *V4SignerAdapter) SignRequest(ctx context.Context, r *smithyhttp.Request o.LogSigning = v.LogSigning }) if err != nil { - return fmt.Errorf("sign http: %v", err) + return fmt.Errorf("sign http: %w", err) } return nil diff --git a/internal/configsources/CHANGELOG.md b/internal/configsources/CHANGELOG.md index 01c7278dc4e..8ad41847f8b 100644 --- a/internal/configsources/CHANGELOG.md +++ b/internal/configsources/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.2.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.2.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.2.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/internal/configsources/configtesting/go.mod b/internal/configsources/configtesting/go.mod index b08302e30dd..0f6a3b4a518 100644 --- a/internal/configsources/configtesting/go.mod +++ b/internal/configsources/configtesting/go.mod @@ -3,22 +3,22 @@ module github.com/aws/aws-sdk-go-v2/internal/configsources/configtesting go 1.19 require ( - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 ) require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2 v1.23.5 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect + github.com/aws/smithy-go v1.18.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/internal/configsources/configtesting/go.sum b/internal/configsources/configtesting/go.sum index 4a236cdfa85..e5153680047 100644 --- a/internal/configsources/configtesting/go.sum +++ b/internal/configsources/configtesting/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/internal/configsources/go.mod b/internal/configsources/go.mod index c74808ab77c..471001f672e 100644 --- a/internal/configsources/go.mod +++ b/internal/configsources/go.mod @@ -2,8 +2,8 @@ module github.com/aws/aws-sdk-go-v2/internal/configsources go 1.19 -require github.com/aws/aws-sdk-go-v2 v1.23.3 +require github.com/aws/aws-sdk-go-v2 v1.23.5 -require github.com/aws/smithy-go v1.18.0 // indirect +require github.com/aws/smithy-go v1.18.1 // indirect replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/internal/configsources/go.sum b/internal/configsources/go.sum index 4a236cdfa85..e5153680047 100644 --- a/internal/configsources/go.sum +++ b/internal/configsources/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/internal/configsources/go_module_metadata.go b/internal/configsources/go_module_metadata.go index f6f10bb65e4..44c5156ac2a 100644 --- a/internal/configsources/go_module_metadata.go +++ b/internal/configsources/go_module_metadata.go @@ -3,4 +3,4 @@ package configsources // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.2.6" +const goModuleVersion = "1.2.8" diff --git a/internal/endpoints/v2/CHANGELOG.md b/internal/endpoints/v2/CHANGELOG.md index 0cdbed75f7e..172f6228638 100644 --- a/internal/endpoints/v2/CHANGELOG.md +++ b/internal/endpoints/v2/CHANGELOG.md @@ -1,3 +1,11 @@ +# v2.5.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v2.5.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v2.5.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/internal/endpoints/v2/go.mod b/internal/endpoints/v2/go.mod index 6072ea87d1f..7063c6d6ec2 100644 --- a/internal/endpoints/v2/go.mod +++ b/internal/endpoints/v2/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/endpoints/v2/go.sum b/internal/endpoints/v2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/endpoints/v2/go.sum +++ b/internal/endpoints/v2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/endpoints/v2/go_module_metadata.go b/internal/endpoints/v2/go_module_metadata.go index 99f6139139c..3f2d7085307 100644 --- a/internal/endpoints/v2/go_module_metadata.go +++ b/internal/endpoints/v2/go_module_metadata.go @@ -3,4 +3,4 @@ package endpoints // goModuleVersion is the tagged release for this module -const goModuleVersion = "2.5.6" +const goModuleVersion = "2.5.8" diff --git a/internal/protocoltest/awsrestjson/api_client.go b/internal/protocoltest/awsrestjson/api_client.go index 3ac0663d3ca..e7457c47f19 100644 --- a/internal/protocoltest/awsrestjson/api_client.go +++ b/internal/protocoltest/awsrestjson/api_client.go @@ -135,7 +135,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -144,7 +144,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/internal/protocoltest/awsrestjson/auth.go b/internal/protocoltest/awsrestjson/auth.go index 0741a556a6e..ce4a98539cb 100644 --- a/internal/protocoltest/awsrestjson/auth.go +++ b/internal/protocoltest/awsrestjson/auth.go @@ -103,7 +103,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -183,7 +183,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -232,7 +232,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/internal/protocoltest/awsrestjson/go.mod b/internal/protocoltest/awsrestjson/go.mod index 931fab499e8..b9faa7b4edb 100644 --- a/internal/protocoltest/awsrestjson/go.mod +++ b/internal/protocoltest/awsrestjson/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/awsrestjson go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/awsrestjson/go.sum b/internal/protocoltest/awsrestjson/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/protocoltest/awsrestjson/go.sum +++ b/internal/protocoltest/awsrestjson/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/ec2query/api_client.go b/internal/protocoltest/ec2query/api_client.go index a9316cafd29..a4d0cae06c8 100644 --- a/internal/protocoltest/ec2query/api_client.go +++ b/internal/protocoltest/ec2query/api_client.go @@ -135,7 +135,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -144,7 +144,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/internal/protocoltest/ec2query/auth.go b/internal/protocoltest/ec2query/auth.go index c5544bedba0..7f42d8b47b9 100644 --- a/internal/protocoltest/ec2query/auth.go +++ b/internal/protocoltest/ec2query/auth.go @@ -103,7 +103,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -183,7 +183,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -232,7 +232,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/internal/protocoltest/ec2query/go.mod b/internal/protocoltest/ec2query/go.mod index 14a5c430f01..48838014acb 100644 --- a/internal/protocoltest/ec2query/go.mod +++ b/internal/protocoltest/ec2query/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/ec2query go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/ec2query/go.sum b/internal/protocoltest/ec2query/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/protocoltest/ec2query/go.sum +++ b/internal/protocoltest/ec2query/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc/api_client.go b/internal/protocoltest/jsonrpc/api_client.go index 4175fc87cbb..ab76e2fd578 100644 --- a/internal/protocoltest/jsonrpc/api_client.go +++ b/internal/protocoltest/jsonrpc/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/internal/protocoltest/jsonrpc/auth.go b/internal/protocoltest/jsonrpc/auth.go index 2a439685961..80a1e42aa9e 100644 --- a/internal/protocoltest/jsonrpc/auth.go +++ b/internal/protocoltest/jsonrpc/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/internal/protocoltest/jsonrpc/go.mod b/internal/protocoltest/jsonrpc/go.mod index 332cf735fb9..631e391d2d3 100644 --- a/internal/protocoltest/jsonrpc/go.mod +++ b/internal/protocoltest/jsonrpc/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/jsonrpc/go.sum b/internal/protocoltest/jsonrpc/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/protocoltest/jsonrpc/go.sum +++ b/internal/protocoltest/jsonrpc/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/jsonrpc/options.go b/internal/protocoltest/jsonrpc/options.go index 9afe73b87c7..d796e15c361 100644 --- a/internal/protocoltest/jsonrpc/options.go +++ b/internal/protocoltest/jsonrpc/options.go @@ -220,7 +220,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/internal/protocoltest/jsonrpc10/api_client.go b/internal/protocoltest/jsonrpc10/api_client.go index 490758537ee..52762ecef24 100644 --- a/internal/protocoltest/jsonrpc10/api_client.go +++ b/internal/protocoltest/jsonrpc10/api_client.go @@ -131,7 +131,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -140,7 +140,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/internal/protocoltest/jsonrpc10/auth.go b/internal/protocoltest/jsonrpc10/auth.go index 2dbf6497d82..56c9f2f295b 100644 --- a/internal/protocoltest/jsonrpc10/auth.go +++ b/internal/protocoltest/jsonrpc10/auth.go @@ -103,7 +103,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -183,7 +183,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -232,7 +232,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/internal/protocoltest/jsonrpc10/go.mod b/internal/protocoltest/jsonrpc10/go.mod index 6df9fb8c512..27901251938 100644 --- a/internal/protocoltest/jsonrpc10/go.mod +++ b/internal/protocoltest/jsonrpc10/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/jsonrpc10 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/jsonrpc10/go.sum b/internal/protocoltest/jsonrpc10/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/protocoltest/jsonrpc10/go.sum +++ b/internal/protocoltest/jsonrpc10/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/query/api_client.go b/internal/protocoltest/query/api_client.go index 77c473410b9..931a16467ed 100644 --- a/internal/protocoltest/query/api_client.go +++ b/internal/protocoltest/query/api_client.go @@ -135,7 +135,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -144,7 +144,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/internal/protocoltest/query/auth.go b/internal/protocoltest/query/auth.go index a30edf7c24c..618c6952a97 100644 --- a/internal/protocoltest/query/auth.go +++ b/internal/protocoltest/query/auth.go @@ -103,7 +103,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -183,7 +183,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -232,7 +232,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/internal/protocoltest/query/go.mod b/internal/protocoltest/query/go.mod index 5f8fb34dc3e..c48b553c4ce 100644 --- a/internal/protocoltest/query/go.mod +++ b/internal/protocoltest/query/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/query go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/query/go.sum b/internal/protocoltest/query/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/protocoltest/query/go.sum +++ b/internal/protocoltest/query/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxml/api_client.go b/internal/protocoltest/restxml/api_client.go index fd539bfc17c..91534445bf8 100644 --- a/internal/protocoltest/restxml/api_client.go +++ b/internal/protocoltest/restxml/api_client.go @@ -135,7 +135,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -144,7 +144,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/internal/protocoltest/restxml/auth.go b/internal/protocoltest/restxml/auth.go index 19c79af1078..64247bdfa83 100644 --- a/internal/protocoltest/restxml/auth.go +++ b/internal/protocoltest/restxml/auth.go @@ -103,7 +103,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -183,7 +183,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -232,7 +232,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/internal/protocoltest/restxml/go.mod b/internal/protocoltest/restxml/go.mod index 6063bd81298..563316f53a0 100644 --- a/internal/protocoltest/restxml/go.mod +++ b/internal/protocoltest/restxml/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxml go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/restxml/go.sum b/internal/protocoltest/restxml/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/protocoltest/restxml/go.sum +++ b/internal/protocoltest/restxml/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/protocoltest/restxmlwithnamespace/api_client.go b/internal/protocoltest/restxmlwithnamespace/api_client.go index 9c87c0f7e37..dc57bbef46a 100644 --- a/internal/protocoltest/restxmlwithnamespace/api_client.go +++ b/internal/protocoltest/restxmlwithnamespace/api_client.go @@ -131,7 +131,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -140,7 +140,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/internal/protocoltest/restxmlwithnamespace/auth.go b/internal/protocoltest/restxmlwithnamespace/auth.go index 4d3e2a11757..41559150738 100644 --- a/internal/protocoltest/restxmlwithnamespace/auth.go +++ b/internal/protocoltest/restxmlwithnamespace/auth.go @@ -103,7 +103,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -183,7 +183,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -232,7 +232,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/internal/protocoltest/restxmlwithnamespace/go.mod b/internal/protocoltest/restxmlwithnamespace/go.mod index 90d72d3af9c..881c9159fab 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.mod +++ b/internal/protocoltest/restxmlwithnamespace/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/internal/protocoltest/restxmlwithnamespace go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/protocoltest/restxmlwithnamespace/go.sum b/internal/protocoltest/restxmlwithnamespace/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/protocoltest/restxmlwithnamespace/go.sum +++ b/internal/protocoltest/restxmlwithnamespace/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/v4a/CHANGELOG.md b/internal/v4a/CHANGELOG.md index 6c2755c6cc9..ec0d69ed2d6 100644 --- a/internal/v4a/CHANGELOG.md +++ b/internal/v4a/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.2.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.2.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.2.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/internal/v4a/go.mod b/internal/v4a/go.mod index 649df85e626..e28949bd7a8 100644 --- a/internal/v4a/go.mod +++ b/internal/v4a/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/internal/v4a go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/internal/v4a/go.sum b/internal/v4a/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/internal/v4a/go.sum +++ b/internal/v4a/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/internal/v4a/go_module_metadata.go b/internal/v4a/go_module_metadata.go index d7b7efc41ce..31d022423c8 100644 --- a/internal/v4a/go_module_metadata.go +++ b/internal/v4a/go_module_metadata.go @@ -3,4 +3,4 @@ package v4a // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.2.6" +const goModuleVersion = "1.2.8" diff --git a/internal/v4a/smithy.go b/internal/v4a/smithy.go index a3a2dc1c60f..516d459d5dc 100644 --- a/internal/v4a/smithy.go +++ b/internal/v4a/smithy.go @@ -39,7 +39,7 @@ func (v *CredentialsProviderAdapter) GetIdentity(ctx context.Context, _ smithy.P ) { creds, err := v.Provider.RetrievePrivateKey(ctx) if err != nil { - return nil, fmt.Errorf("get credentials: %v", err) + return nil, fmt.Errorf("get credentials: %w", err) } return &CredentialsAdapter{Credentials: creds}, nil @@ -79,7 +79,7 @@ func (v *SignerAdapter) SignRequest(ctx context.Context, r *smithyhttp.Request, o.LogSigning = v.LogSigning }) if err != nil { - return fmt.Errorf("sign http: %v", err) + return fmt.Errorf("sign http: %w", err) } return nil diff --git a/modman.toml b/modman.toml index baa8ad5633f..57cf56a12cc 100644 --- a/modman.toml +++ b/modman.toml @@ -1,7 +1,7 @@ [dependencies] "github.com/aws/aws-sdk-go" = "v1.44.28" - "github.com/aws/smithy-go" = "v1.18.0" + "github.com/aws/smithy-go" = "v1.18.1" "github.com/google/go-cmp" = "v0.5.8" "github.com/jmespath/go-jmespath" = "v0.4.0" "golang.org/x/net" = "v0.19.0" diff --git a/service/accessanalyzer/CHANGELOG.md b/service/accessanalyzer/CHANGELOG.md index b5eab0f9461..bed3a52b093 100644 --- a/service/accessanalyzer/CHANGELOG.md +++ b/service/accessanalyzer/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/accessanalyzer/api_client.go b/service/accessanalyzer/api_client.go index 2409700c37e..37269568003 100644 --- a/service/accessanalyzer/api_client.go +++ b/service/accessanalyzer/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/accessanalyzer/auth.go b/service/accessanalyzer/auth.go index 166e74f2d8e..85954a008e2 100644 --- a/service/accessanalyzer/auth.go +++ b/service/accessanalyzer/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/accessanalyzer/go.mod b/service/accessanalyzer/go.mod index 4c3fdab6929..3b6b8076005 100644 --- a/service/accessanalyzer/go.mod +++ b/service/accessanalyzer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/accessanalyzer go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/accessanalyzer/go.sum b/service/accessanalyzer/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/accessanalyzer/go.sum +++ b/service/accessanalyzer/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/accessanalyzer/go_module_metadata.go b/service/accessanalyzer/go_module_metadata.go index ed2e3a7ddef..a6d80422a35 100644 --- a/service/accessanalyzer/go_module_metadata.go +++ b/service/accessanalyzer/go_module_metadata.go @@ -3,4 +3,4 @@ package accessanalyzer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/accessanalyzer/options.go b/service/accessanalyzer/options.go index c94c5c30ce8..c974c390cf3 100644 --- a/service/accessanalyzer/options.go +++ b/service/accessanalyzer/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/account/CHANGELOG.md b/service/account/CHANGELOG.md index d0c9410ba65..a36a44059dc 100644 --- a/service/account/CHANGELOG.md +++ b/service/account/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.14.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.14.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/account/api_client.go b/service/account/api_client.go index c3351550e40..f9822b51fda 100644 --- a/service/account/api_client.go +++ b/service/account/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/account/auth.go b/service/account/auth.go index b7dc3425d15..2a479e1705e 100644 --- a/service/account/auth.go +++ b/service/account/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/account/go.mod b/service/account/go.mod index 2e9c50a77e8..6b0a2489d9e 100644 --- a/service/account/go.mod +++ b/service/account/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/account go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/account/go.sum b/service/account/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/account/go.sum +++ b/service/account/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/account/go_module_metadata.go b/service/account/go_module_metadata.go index 7fa4a7f8d20..4c897cee976 100644 --- a/service/account/go_module_metadata.go +++ b/service/account/go_module_metadata.go @@ -3,4 +3,4 @@ package account // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.14.2" diff --git a/service/account/options.go b/service/account/options.go index 70fd633ad7d..ac766c6e7a8 100644 --- a/service/account/options.go +++ b/service/account/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/acm/CHANGELOG.md b/service/acm/CHANGELOG.md index 0e13d985af6..8fc0354bc9c 100644 --- a/service/acm/CHANGELOG.md +++ b/service/acm/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/acm/api_client.go b/service/acm/api_client.go index 594734092d9..64709493ee1 100644 --- a/service/acm/api_client.go +++ b/service/acm/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/acm/auth.go b/service/acm/auth.go index a5cc32c8768..a2511252b21 100644 --- a/service/acm/auth.go +++ b/service/acm/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/acm/go.mod b/service/acm/go.mod index cbbbac39c97..a5a1301e85a 100644 --- a/service/acm/go.mod +++ b/service/acm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/acm go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acm/go.sum b/service/acm/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/acm/go.sum +++ b/service/acm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/acm/go_module_metadata.go b/service/acm/go_module_metadata.go index c5dce55047c..ce0cff66650 100644 --- a/service/acm/go_module_metadata.go +++ b/service/acm/go_module_metadata.go @@ -3,4 +3,4 @@ package acm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/acm/options.go b/service/acm/options.go index 57a458e668c..38e0fcffb29 100644 --- a/service/acm/options.go +++ b/service/acm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/acmpca/CHANGELOG.md b/service/acmpca/CHANGELOG.md index 5dc5097401e..f2af4a95a91 100644 --- a/service/acmpca/CHANGELOG.md +++ b/service/acmpca/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/acmpca/api_client.go b/service/acmpca/api_client.go index a19773c9c62..02996cbb462 100644 --- a/service/acmpca/api_client.go +++ b/service/acmpca/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/acmpca/auth.go b/service/acmpca/auth.go index 8f8f2bfd0de..33447889035 100644 --- a/service/acmpca/auth.go +++ b/service/acmpca/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/acmpca/go.mod b/service/acmpca/go.mod index 54ad078c13f..1ab01c6e7b1 100644 --- a/service/acmpca/go.mod +++ b/service/acmpca/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/acmpca go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/acmpca/go.sum b/service/acmpca/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/acmpca/go.sum +++ b/service/acmpca/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/acmpca/go_module_metadata.go b/service/acmpca/go_module_metadata.go index f332c046627..3c75ee652f6 100644 --- a/service/acmpca/go_module_metadata.go +++ b/service/acmpca/go_module_metadata.go @@ -3,4 +3,4 @@ package acmpca // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/acmpca/options.go b/service/acmpca/options.go index 75916ee78ec..4f100a8919f 100644 --- a/service/acmpca/options.go +++ b/service/acmpca/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/alexaforbusiness/CHANGELOG.md b/service/alexaforbusiness/CHANGELOG.md index f6703d17a16..f97fc73a9ae 100644 --- a/service/alexaforbusiness/CHANGELOG.md +++ b/service/alexaforbusiness/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/alexaforbusiness/api_client.go b/service/alexaforbusiness/api_client.go index ca5cb6980ce..167c31f6441 100644 --- a/service/alexaforbusiness/api_client.go +++ b/service/alexaforbusiness/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/alexaforbusiness/auth.go b/service/alexaforbusiness/auth.go index c0b69f5e5c0..7ae52913d92 100644 --- a/service/alexaforbusiness/auth.go +++ b/service/alexaforbusiness/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/alexaforbusiness/go.mod b/service/alexaforbusiness/go.mod index b3f13da858b..22c56423560 100644 --- a/service/alexaforbusiness/go.mod +++ b/service/alexaforbusiness/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/alexaforbusiness go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/alexaforbusiness/go.sum b/service/alexaforbusiness/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/alexaforbusiness/go.sum +++ b/service/alexaforbusiness/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/alexaforbusiness/go_module_metadata.go b/service/alexaforbusiness/go_module_metadata.go index d8a4b40e37d..46d37b0354c 100644 --- a/service/alexaforbusiness/go_module_metadata.go +++ b/service/alexaforbusiness/go_module_metadata.go @@ -3,4 +3,4 @@ package alexaforbusiness // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/alexaforbusiness/options.go b/service/alexaforbusiness/options.go index 26d0934cab6..99d69ee43bb 100644 --- a/service/alexaforbusiness/options.go +++ b/service/alexaforbusiness/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amp/CHANGELOG.md b/service/amp/CHANGELOG.md index 56b1c33410d..1009766f3da 100644 --- a/service/amp/CHANGELOG.md +++ b/service/amp/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/amp/api_client.go b/service/amp/api_client.go index ead779cd19a..7a61f00dd1f 100644 --- a/service/amp/api_client.go +++ b/service/amp/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/amp/auth.go b/service/amp/auth.go index b95220a0489..448bc422748 100644 --- a/service/amp/auth.go +++ b/service/amp/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/amp/go.mod b/service/amp/go.mod index 9c55de59821..e956c7debbc 100644 --- a/service/amp/go.mod +++ b/service/amp/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amp go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/amp/go.sum b/service/amp/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/amp/go.sum +++ b/service/amp/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/amp/go_module_metadata.go b/service/amp/go_module_metadata.go index 12aeebf88fb..f62e6073a09 100644 --- a/service/amp/go_module_metadata.go +++ b/service/amp/go_module_metadata.go @@ -3,4 +3,4 @@ package amp // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/amp/options.go b/service/amp/options.go index dbdf8835b2b..beb555a72bf 100644 --- a/service/amp/options.go +++ b/service/amp/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amplify/CHANGELOG.md b/service/amplify/CHANGELOG.md index 2399ccfda5a..0f9b6d9056b 100644 --- a/service/amplify/CHANGELOG.md +++ b/service/amplify/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/amplify/api_client.go b/service/amplify/api_client.go index 8fd16d4675e..c30e0480c55 100644 --- a/service/amplify/api_client.go +++ b/service/amplify/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/amplify/auth.go b/service/amplify/auth.go index 14bf2de6f3a..b8785fd4298 100644 --- a/service/amplify/auth.go +++ b/service/amplify/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/amplify/go.mod b/service/amplify/go.mod index 6ecb8e78b5a..d4c69c732e1 100644 --- a/service/amplify/go.mod +++ b/service/amplify/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplify go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplify/go.sum b/service/amplify/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/amplify/go.sum +++ b/service/amplify/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplify/go_module_metadata.go b/service/amplify/go_module_metadata.go index 8f6be88d261..0155c8178e0 100644 --- a/service/amplify/go_module_metadata.go +++ b/service/amplify/go_module_metadata.go @@ -3,4 +3,4 @@ package amplify // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/amplify/options.go b/service/amplify/options.go index fed5bb8ce76..a1186111ff3 100644 --- a/service/amplify/options.go +++ b/service/amplify/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amplifybackend/CHANGELOG.md b/service/amplifybackend/CHANGELOG.md index 346c6df6577..5d1ce2002bd 100644 --- a/service/amplifybackend/CHANGELOG.md +++ b/service/amplifybackend/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/amplifybackend/api_client.go b/service/amplifybackend/api_client.go index 198ea52f2c1..77de51bebb7 100644 --- a/service/amplifybackend/api_client.go +++ b/service/amplifybackend/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/amplifybackend/auth.go b/service/amplifybackend/auth.go index 08358a5f586..7ecbbb1cc54 100644 --- a/service/amplifybackend/auth.go +++ b/service/amplifybackend/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/amplifybackend/go.mod b/service/amplifybackend/go.mod index d5e9cc42859..aac5c0bef5a 100644 --- a/service/amplifybackend/go.mod +++ b/service/amplifybackend/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplifybackend go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplifybackend/go.sum b/service/amplifybackend/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/amplifybackend/go.sum +++ b/service/amplifybackend/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifybackend/go_module_metadata.go b/service/amplifybackend/go_module_metadata.go index cd912ef1c89..09fa96ef649 100644 --- a/service/amplifybackend/go_module_metadata.go +++ b/service/amplifybackend/go_module_metadata.go @@ -3,4 +3,4 @@ package amplifybackend // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/amplifybackend/options.go b/service/amplifybackend/options.go index fc4850de334..9962b349e30 100644 --- a/service/amplifybackend/options.go +++ b/service/amplifybackend/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/amplifyuibuilder/CHANGELOG.md b/service/amplifyuibuilder/CHANGELOG.md index 81f600e52c4..139af3ec7c1 100644 --- a/service/amplifyuibuilder/CHANGELOG.md +++ b/service/amplifyuibuilder/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.16.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/amplifyuibuilder/api_client.go b/service/amplifyuibuilder/api_client.go index 8e14a5a37b2..cd583f32193 100644 --- a/service/amplifyuibuilder/api_client.go +++ b/service/amplifyuibuilder/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/amplifyuibuilder/auth.go b/service/amplifyuibuilder/auth.go index e2c333422b3..62c3774e720 100644 --- a/service/amplifyuibuilder/auth.go +++ b/service/amplifyuibuilder/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/amplifyuibuilder/go.mod b/service/amplifyuibuilder/go.mod index 2e5858bff69..2067f85238f 100644 --- a/service/amplifyuibuilder/go.mod +++ b/service/amplifyuibuilder/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/amplifyuibuilder go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/amplifyuibuilder/go.sum b/service/amplifyuibuilder/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/amplifyuibuilder/go.sum +++ b/service/amplifyuibuilder/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/amplifyuibuilder/go_module_metadata.go b/service/amplifyuibuilder/go_module_metadata.go index e586f7ab367..8d6a2739c7f 100644 --- a/service/amplifyuibuilder/go_module_metadata.go +++ b/service/amplifyuibuilder/go_module_metadata.go @@ -3,4 +3,4 @@ package amplifyuibuilder // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.2" diff --git a/service/amplifyuibuilder/options.go b/service/amplifyuibuilder/options.go index 4c9743711a7..fdbb02a4e20 100644 --- a/service/amplifyuibuilder/options.go +++ b/service/amplifyuibuilder/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apigateway/CHANGELOG.md b/service/apigateway/CHANGELOG.md index 39a159d9b0a..b489becaf43 100644 --- a/service/apigateway/CHANGELOG.md +++ b/service/apigateway/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/apigateway/api_client.go b/service/apigateway/api_client.go index eb5d485d632..cef244e3570 100644 --- a/service/apigateway/api_client.go +++ b/service/apigateway/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/apigateway/auth.go b/service/apigateway/auth.go index d276ef7390c..13eec1d8419 100644 --- a/service/apigateway/auth.go +++ b/service/apigateway/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/apigateway/go.mod b/service/apigateway/go.mod index bce49120322..44eaf6b7c6f 100644 --- a/service/apigateway/go.mod +++ b/service/apigateway/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigateway go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigateway/go.sum b/service/apigateway/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/apigateway/go.sum +++ b/service/apigateway/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigateway/go_module_metadata.go b/service/apigateway/go_module_metadata.go index 724e123f1e8..799d0817368 100644 --- a/service/apigateway/go_module_metadata.go +++ b/service/apigateway/go_module_metadata.go @@ -3,4 +3,4 @@ package apigateway // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/apigateway/options.go b/service/apigateway/options.go index 8cacbcd5e23..56bb46790bb 100644 --- a/service/apigateway/options.go +++ b/service/apigateway/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apigatewaymanagementapi/CHANGELOG.md b/service/apigatewaymanagementapi/CHANGELOG.md index 83f8dc050db..09fa60fe86a 100644 --- a/service/apigatewaymanagementapi/CHANGELOG.md +++ b/service/apigatewaymanagementapi/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/apigatewaymanagementapi/api_client.go b/service/apigatewaymanagementapi/api_client.go index 64a8269cd99..792d8c27895 100644 --- a/service/apigatewaymanagementapi/api_client.go +++ b/service/apigatewaymanagementapi/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/apigatewaymanagementapi/auth.go b/service/apigatewaymanagementapi/auth.go index 68d9bc1dcaa..f4aaca5c51b 100644 --- a/service/apigatewaymanagementapi/auth.go +++ b/service/apigatewaymanagementapi/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/apigatewaymanagementapi/go.mod b/service/apigatewaymanagementapi/go.mod index f645db9cfd2..6213db905d3 100644 --- a/service/apigatewaymanagementapi/go.mod +++ b/service/apigatewaymanagementapi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewaymanagementapi go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigatewaymanagementapi/go.sum b/service/apigatewaymanagementapi/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/apigatewaymanagementapi/go.sum +++ b/service/apigatewaymanagementapi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewaymanagementapi/go_module_metadata.go b/service/apigatewaymanagementapi/go_module_metadata.go index 77726f8e79a..9d49592b287 100644 --- a/service/apigatewaymanagementapi/go_module_metadata.go +++ b/service/apigatewaymanagementapi/go_module_metadata.go @@ -3,4 +3,4 @@ package apigatewaymanagementapi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/apigatewaymanagementapi/options.go b/service/apigatewaymanagementapi/options.go index 7846d7b6867..a1e983f28d1 100644 --- a/service/apigatewaymanagementapi/options.go +++ b/service/apigatewaymanagementapi/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apigatewayv2/CHANGELOG.md b/service/apigatewayv2/CHANGELOG.md index 9e4e4416a29..7945639f57b 100644 --- a/service/apigatewayv2/CHANGELOG.md +++ b/service/apigatewayv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/apigatewayv2/api_client.go b/service/apigatewayv2/api_client.go index d1834308f55..0e05c268029 100644 --- a/service/apigatewayv2/api_client.go +++ b/service/apigatewayv2/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/apigatewayv2/auth.go b/service/apigatewayv2/auth.go index 44740df5471..5c5a490867a 100644 --- a/service/apigatewayv2/auth.go +++ b/service/apigatewayv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/apigatewayv2/go.mod b/service/apigatewayv2/go.mod index e4393256e84..fd7cf97aff0 100644 --- a/service/apigatewayv2/go.mod +++ b/service/apigatewayv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apigatewayv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apigatewayv2/go.sum b/service/apigatewayv2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/apigatewayv2/go.sum +++ b/service/apigatewayv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apigatewayv2/go_module_metadata.go b/service/apigatewayv2/go_module_metadata.go index 5ffc2a36de8..44d3a2d2c42 100644 --- a/service/apigatewayv2/go_module_metadata.go +++ b/service/apigatewayv2/go_module_metadata.go @@ -3,4 +3,4 @@ package apigatewayv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/apigatewayv2/options.go b/service/apigatewayv2/options.go index 24bcbccb8e4..e47bff6bb48 100644 --- a/service/apigatewayv2/options.go +++ b/service/apigatewayv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appconfig/CHANGELOG.md b/service/appconfig/CHANGELOG.md index 4eb3a2cbdca..1328d3f9e38 100644 --- a/service/appconfig/CHANGELOG.md +++ b/service/appconfig/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appconfig/api_client.go b/service/appconfig/api_client.go index cad75005444..d798cc35f36 100644 --- a/service/appconfig/api_client.go +++ b/service/appconfig/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appconfig/auth.go b/service/appconfig/auth.go index e1977a0a05e..53696e68e45 100644 --- a/service/appconfig/auth.go +++ b/service/appconfig/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appconfig/go.mod b/service/appconfig/go.mod index ed979e2e507..c96ee50a6f1 100644 --- a/service/appconfig/go.mod +++ b/service/appconfig/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appconfig go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appconfig/go.sum b/service/appconfig/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/appconfig/go.sum +++ b/service/appconfig/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfig/go_module_metadata.go b/service/appconfig/go_module_metadata.go index 45add07a204..390ba67c5fb 100644 --- a/service/appconfig/go_module_metadata.go +++ b/service/appconfig/go_module_metadata.go @@ -3,4 +3,4 @@ package appconfig // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/appconfig/options.go b/service/appconfig/options.go index 32a6e152c1c..6d9871341e4 100644 --- a/service/appconfig/options.go +++ b/service/appconfig/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appconfigdata/CHANGELOG.md b/service/appconfigdata/CHANGELOG.md index 1470760400a..f35f5292297 100644 --- a/service/appconfigdata/CHANGELOG.md +++ b/service/appconfigdata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.11.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.11.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.11.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appconfigdata/api_client.go b/service/appconfigdata/api_client.go index 41361f03c1e..4ed58aae57a 100644 --- a/service/appconfigdata/api_client.go +++ b/service/appconfigdata/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appconfigdata/auth.go b/service/appconfigdata/auth.go index a0c569a46f8..6451dcdc853 100644 --- a/service/appconfigdata/auth.go +++ b/service/appconfigdata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appconfigdata/go.mod b/service/appconfigdata/go.mod index e1fdd683aac..4855b2f7bbf 100644 --- a/service/appconfigdata/go.mod +++ b/service/appconfigdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appconfigdata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appconfigdata/go.sum b/service/appconfigdata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/appconfigdata/go.sum +++ b/service/appconfigdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appconfigdata/go_module_metadata.go b/service/appconfigdata/go_module_metadata.go index c9661a8dd5c..82555786f5b 100644 --- a/service/appconfigdata/go_module_metadata.go +++ b/service/appconfigdata/go_module_metadata.go @@ -3,4 +3,4 @@ package appconfigdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.11.0" +const goModuleVersion = "1.11.2" diff --git a/service/appconfigdata/options.go b/service/appconfigdata/options.go index d9ebd404f07..28f6e4bc7ae 100644 --- a/service/appconfigdata/options.go +++ b/service/appconfigdata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appfabric/CHANGELOG.md b/service/appfabric/CHANGELOG.md index 605945ee35a..741e4172ee9 100644 --- a/service/appfabric/CHANGELOG.md +++ b/service/appfabric/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appfabric/api_client.go b/service/appfabric/api_client.go index ffaba3855e6..9a05ba7625c 100644 --- a/service/appfabric/api_client.go +++ b/service/appfabric/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appfabric/auth.go b/service/appfabric/auth.go index ac12e298b92..6c71a420332 100644 --- a/service/appfabric/auth.go +++ b/service/appfabric/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appfabric/go.mod b/service/appfabric/go.mod index da12340c747..558f4a925a9 100644 --- a/service/appfabric/go.mod +++ b/service/appfabric/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appfabric go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appfabric/go.sum b/service/appfabric/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/appfabric/go.sum +++ b/service/appfabric/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appfabric/go_module_metadata.go b/service/appfabric/go_module_metadata.go index ee8920d61ea..96899588d07 100644 --- a/service/appfabric/go_module_metadata.go +++ b/service/appfabric/go_module_metadata.go @@ -3,4 +3,4 @@ package appfabric // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/appfabric/options.go b/service/appfabric/options.go index 02cefcf2035..17a46d604cb 100644 --- a/service/appfabric/options.go +++ b/service/appfabric/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appflow/CHANGELOG.md b/service/appflow/CHANGELOG.md index c1a7d068785..fef021e8283 100644 --- a/service/appflow/CHANGELOG.md +++ b/service/appflow/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.39.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.39.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appflow/api_client.go b/service/appflow/api_client.go index 9893aa2e55f..56a353c738c 100644 --- a/service/appflow/api_client.go +++ b/service/appflow/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appflow/auth.go b/service/appflow/auth.go index 7cd55773677..5b4bab64d33 100644 --- a/service/appflow/auth.go +++ b/service/appflow/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appflow/go.mod b/service/appflow/go.mod index ca2d2318036..6cc355558e5 100644 --- a/service/appflow/go.mod +++ b/service/appflow/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appflow go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appflow/go.sum b/service/appflow/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/appflow/go.sum +++ b/service/appflow/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appflow/go_module_metadata.go b/service/appflow/go_module_metadata.go index f11cc39f5de..8895e876230 100644 --- a/service/appflow/go_module_metadata.go +++ b/service/appflow/go_module_metadata.go @@ -3,4 +3,4 @@ package appflow // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.0" +const goModuleVersion = "1.39.2" diff --git a/service/appflow/options.go b/service/appflow/options.go index 6946ba3014c..69fa42c815f 100644 --- a/service/appflow/options.go +++ b/service/appflow/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appintegrations/CHANGELOG.md b/service/appintegrations/CHANGELOG.md index 60bc54b2f04..2e2001526cd 100644 --- a/service/appintegrations/CHANGELOG.md +++ b/service/appintegrations/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appintegrations/api_client.go b/service/appintegrations/api_client.go index df6e0c88d08..607a8b6fea8 100644 --- a/service/appintegrations/api_client.go +++ b/service/appintegrations/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appintegrations/auth.go b/service/appintegrations/auth.go index 43d00aeac06..784b8452c69 100644 --- a/service/appintegrations/auth.go +++ b/service/appintegrations/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appintegrations/go.mod b/service/appintegrations/go.mod index 1777ecb79c0..742ce66346f 100644 --- a/service/appintegrations/go.mod +++ b/service/appintegrations/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appintegrations go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appintegrations/go.sum b/service/appintegrations/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/appintegrations/go.sum +++ b/service/appintegrations/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appintegrations/go_module_metadata.go b/service/appintegrations/go_module_metadata.go index 0f331e5b518..0f00b41c03c 100644 --- a/service/appintegrations/go_module_metadata.go +++ b/service/appintegrations/go_module_metadata.go @@ -3,4 +3,4 @@ package appintegrations // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/appintegrations/options.go b/service/appintegrations/options.go index 0d7f13e6f75..b392e68c3f4 100644 --- a/service/appintegrations/options.go +++ b/service/appintegrations/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationautoscaling/CHANGELOG.md b/service/applicationautoscaling/CHANGELOG.md index c21604b516f..529acdff5ec 100644 --- a/service/applicationautoscaling/CHANGELOG.md +++ b/service/applicationautoscaling/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Amazon SageMaker customers can now use Application Auto Scaling to automatically scale the number of Inference Component copies across an endpoint to meet the varying demand of their workloads. diff --git a/service/applicationautoscaling/api_client.go b/service/applicationautoscaling/api_client.go index b2a92660cb3..1870113f01b 100644 --- a/service/applicationautoscaling/api_client.go +++ b/service/applicationautoscaling/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/applicationautoscaling/auth.go b/service/applicationautoscaling/auth.go index 98ca21c1769..173baae4230 100644 --- a/service/applicationautoscaling/auth.go +++ b/service/applicationautoscaling/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/applicationautoscaling/go.mod b/service/applicationautoscaling/go.mod index c7ae5ae819c..1c4de44f034 100644 --- a/service/applicationautoscaling/go.mod +++ b/service/applicationautoscaling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationautoscaling go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationautoscaling/go.sum b/service/applicationautoscaling/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/applicationautoscaling/go.sum +++ b/service/applicationautoscaling/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationautoscaling/go_module_metadata.go b/service/applicationautoscaling/go_module_metadata.go index 6a1955bcfdb..42738303976 100644 --- a/service/applicationautoscaling/go_module_metadata.go +++ b/service/applicationautoscaling/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationautoscaling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/applicationautoscaling/options.go b/service/applicationautoscaling/options.go index 4dd612645df..d7f07c47c99 100644 --- a/service/applicationautoscaling/options.go +++ b/service/applicationautoscaling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationcostprofiler/CHANGELOG.md b/service/applicationcostprofiler/CHANGELOG.md index c795035153b..a091e8eb57c 100644 --- a/service/applicationcostprofiler/CHANGELOG.md +++ b/service/applicationcostprofiler/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.15.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/applicationcostprofiler/api_client.go b/service/applicationcostprofiler/api_client.go index de8b737698b..c8366f3eb08 100644 --- a/service/applicationcostprofiler/api_client.go +++ b/service/applicationcostprofiler/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/applicationcostprofiler/auth.go b/service/applicationcostprofiler/auth.go index 91a717838b2..2e0a5485327 100644 --- a/service/applicationcostprofiler/auth.go +++ b/service/applicationcostprofiler/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/applicationcostprofiler/go.mod b/service/applicationcostprofiler/go.mod index 457ce0eb935..99b638d599f 100644 --- a/service/applicationcostprofiler/go.mod +++ b/service/applicationcostprofiler/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationcostprofiler go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationcostprofiler/go.sum b/service/applicationcostprofiler/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/applicationcostprofiler/go.sum +++ b/service/applicationcostprofiler/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationcostprofiler/go_module_metadata.go b/service/applicationcostprofiler/go_module_metadata.go index edba55458a5..e1bb9106d43 100644 --- a/service/applicationcostprofiler/go_module_metadata.go +++ b/service/applicationcostprofiler/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationcostprofiler // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.0" +const goModuleVersion = "1.15.2" diff --git a/service/applicationcostprofiler/options.go b/service/applicationcostprofiler/options.go index 28c8651435b..036c3d711d7 100644 --- a/service/applicationcostprofiler/options.go +++ b/service/applicationcostprofiler/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationdiscoveryservice/CHANGELOG.md b/service/applicationdiscoveryservice/CHANGELOG.md index 0801c7d59a4..c62c279b513 100644 --- a/service/applicationdiscoveryservice/CHANGELOG.md +++ b/service/applicationdiscoveryservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/applicationdiscoveryservice/api_client.go b/service/applicationdiscoveryservice/api_client.go index 4287d241cc3..0c5482c33b0 100644 --- a/service/applicationdiscoveryservice/api_client.go +++ b/service/applicationdiscoveryservice/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/applicationdiscoveryservice/auth.go b/service/applicationdiscoveryservice/auth.go index 8d58d58c12b..0439d49cbdf 100644 --- a/service/applicationdiscoveryservice/auth.go +++ b/service/applicationdiscoveryservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/applicationdiscoveryservice/go.mod b/service/applicationdiscoveryservice/go.mod index f11bc0bf6e5..4d9b9f8ba31 100644 --- a/service/applicationdiscoveryservice/go.mod +++ b/service/applicationdiscoveryservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationdiscoveryservice/go.sum b/service/applicationdiscoveryservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/applicationdiscoveryservice/go.sum +++ b/service/applicationdiscoveryservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationdiscoveryservice/go_module_metadata.go b/service/applicationdiscoveryservice/go_module_metadata.go index ce342570837..44413d7edc4 100644 --- a/service/applicationdiscoveryservice/go_module_metadata.go +++ b/service/applicationdiscoveryservice/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationdiscoveryservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/applicationdiscoveryservice/options.go b/service/applicationdiscoveryservice/options.go index fd7bde331dc..f3243c4210b 100644 --- a/service/applicationdiscoveryservice/options.go +++ b/service/applicationdiscoveryservice/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/applicationinsights/CHANGELOG.md b/service/applicationinsights/CHANGELOG.md index d5b3aa1687c..528a3168b10 100644 --- a/service/applicationinsights/CHANGELOG.md +++ b/service/applicationinsights/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/applicationinsights/api_client.go b/service/applicationinsights/api_client.go index 4923cb732a3..51a4a2e6e19 100644 --- a/service/applicationinsights/api_client.go +++ b/service/applicationinsights/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/applicationinsights/auth.go b/service/applicationinsights/auth.go index 5e0eb8631ff..40c02fa8813 100644 --- a/service/applicationinsights/auth.go +++ b/service/applicationinsights/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/applicationinsights/go.mod b/service/applicationinsights/go.mod index e62c30c56fa..e4b5c455c58 100644 --- a/service/applicationinsights/go.mod +++ b/service/applicationinsights/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/applicationinsights go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/applicationinsights/go.sum b/service/applicationinsights/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/applicationinsights/go.sum +++ b/service/applicationinsights/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/applicationinsights/go_module_metadata.go b/service/applicationinsights/go_module_metadata.go index 2108e78e815..8ef15a654ef 100644 --- a/service/applicationinsights/go_module_metadata.go +++ b/service/applicationinsights/go_module_metadata.go @@ -3,4 +3,4 @@ package applicationinsights // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/applicationinsights/options.go b/service/applicationinsights/options.go index c5f55d5abdf..881b0552fc1 100644 --- a/service/applicationinsights/options.go +++ b/service/applicationinsights/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appmesh/CHANGELOG.md b/service/appmesh/CHANGELOG.md index 3dcba852474..1d47289d63e 100644 --- a/service/appmesh/CHANGELOG.md +++ b/service/appmesh/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appmesh/api_client.go b/service/appmesh/api_client.go index c374fc5b5f8..6cbae369c0c 100644 --- a/service/appmesh/api_client.go +++ b/service/appmesh/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appmesh/auth.go b/service/appmesh/auth.go index ff8a0778e15..eb823e7223e 100644 --- a/service/appmesh/auth.go +++ b/service/appmesh/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appmesh/go.mod b/service/appmesh/go.mod index f143508831c..05936aeef4f 100644 --- a/service/appmesh/go.mod +++ b/service/appmesh/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appmesh go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appmesh/go.sum b/service/appmesh/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/appmesh/go.sum +++ b/service/appmesh/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appmesh/go_module_metadata.go b/service/appmesh/go_module_metadata.go index e0563e2ab0c..ed9293beb18 100644 --- a/service/appmesh/go_module_metadata.go +++ b/service/appmesh/go_module_metadata.go @@ -3,4 +3,4 @@ package appmesh // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/appmesh/options.go b/service/appmesh/options.go index cb9cb6eca42..9a2ace7d992 100644 --- a/service/appmesh/options.go +++ b/service/appmesh/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/apprunner/CHANGELOG.md b/service/apprunner/CHANGELOG.md index 8e777b69522..585c85aa1c1 100644 --- a/service/apprunner/CHANGELOG.md +++ b/service/apprunner/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/apprunner/api_client.go b/service/apprunner/api_client.go index 7348efefa0f..1c1e2975225 100644 --- a/service/apprunner/api_client.go +++ b/service/apprunner/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/apprunner/auth.go b/service/apprunner/auth.go index 9c59f1cb15e..8b49b81b937 100644 --- a/service/apprunner/auth.go +++ b/service/apprunner/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/apprunner/go.mod b/service/apprunner/go.mod index 0d9977d1602..268e9334e57 100644 --- a/service/apprunner/go.mod +++ b/service/apprunner/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/apprunner go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/apprunner/go.sum b/service/apprunner/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/apprunner/go.sum +++ b/service/apprunner/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/apprunner/go_module_metadata.go b/service/apprunner/go_module_metadata.go index b15d1b017e9..95fd2b69891 100644 --- a/service/apprunner/go_module_metadata.go +++ b/service/apprunner/go_module_metadata.go @@ -3,4 +3,4 @@ package apprunner // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/apprunner/options.go b/service/apprunner/options.go index 65374947a64..4f3741a09a9 100644 --- a/service/apprunner/options.go +++ b/service/apprunner/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appstream/CHANGELOG.md b/service/appstream/CHANGELOG.md index 7a8a8dc3ea5..2bb9815cf90 100644 --- a/service/appstream/CHANGELOG.md +++ b/service/appstream/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appstream/api_client.go b/service/appstream/api_client.go index 0288105fd58..cda9c3c932d 100644 --- a/service/appstream/api_client.go +++ b/service/appstream/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appstream/auth.go b/service/appstream/auth.go index ad46adacc46..86a6785a506 100644 --- a/service/appstream/auth.go +++ b/service/appstream/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appstream/go.mod b/service/appstream/go.mod index 87c41fc1f20..31ac299bb26 100644 --- a/service/appstream/go.mod +++ b/service/appstream/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appstream go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/appstream/go.sum b/service/appstream/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/appstream/go.sum +++ b/service/appstream/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/appstream/go_module_metadata.go b/service/appstream/go_module_metadata.go index 5e99f2ae8bc..5db8a179470 100644 --- a/service/appstream/go_module_metadata.go +++ b/service/appstream/go_module_metadata.go @@ -3,4 +3,4 @@ package appstream // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/appstream/options.go b/service/appstream/options.go index 5619fe4e9a8..24237ac9514 100644 --- a/service/appstream/options.go +++ b/service/appstream/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/appsync/CHANGELOG.md b/service/appsync/CHANGELOG.md index f1072761963..eabd6667940 100644 --- a/service/appsync/CHANGELOG.md +++ b/service/appsync/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/appsync/api_client.go b/service/appsync/api_client.go index fab98273c77..3c4cf87f208 100644 --- a/service/appsync/api_client.go +++ b/service/appsync/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/appsync/auth.go b/service/appsync/auth.go index 3dc37839653..619d50886b2 100644 --- a/service/appsync/auth.go +++ b/service/appsync/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/appsync/go.mod b/service/appsync/go.mod index 122305a3080..fcd926374f3 100644 --- a/service/appsync/go.mod +++ b/service/appsync/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/appsync go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/appsync/go.sum b/service/appsync/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/appsync/go.sum +++ b/service/appsync/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/appsync/go_module_metadata.go b/service/appsync/go_module_metadata.go index 45cd153d211..cb0ba4010f8 100644 --- a/service/appsync/go_module_metadata.go +++ b/service/appsync/go_module_metadata.go @@ -3,4 +3,4 @@ package appsync // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/appsync/options.go b/service/appsync/options.go index 8c8a3c67e9c..8b6b06cf28f 100644 --- a/service/appsync/options.go +++ b/service/appsync/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/arczonalshift/CHANGELOG.md b/service/arczonalshift/CHANGELOG.md index 6aaf4908f24..4e05154f8ef 100644 --- a/service/arczonalshift/CHANGELOG.md +++ b/service/arczonalshift/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.7.1 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.0 (2023-11-30.2) + +* **Feature**: This release adds a new capability, zonal autoshift. You can configure zonal autoshift so that AWS shifts traffic for a resource away from an Availability Zone, on your behalf, when AWS determines that there is an issue that could potentially affect customers in the Availability Zone. + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/arczonalshift/api_client.go b/service/arczonalshift/api_client.go index 80cf328710d..6f148cfa1c1 100644 --- a/service/arczonalshift/api_client.go +++ b/service/arczonalshift/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/arczonalshift/api_op_CancelZonalShift.go b/service/arczonalshift/api_op_CancelZonalShift.go index 5e0b5fbb974..8f17e310084 100644 --- a/service/arczonalshift/api_op_CancelZonalShift.go +++ b/service/arczonalshift/api_op_CancelZonalShift.go @@ -13,8 +13,11 @@ import ( "time" ) -// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller that -// you've started for a resource in your AWS account in an AWS Region. +// Cancel a zonal shift in Amazon Route 53 Application Recovery Controller. To +// cancel the zonal shift, specify the zonal shift ID. A zonal shift can be one +// that you've started for a resource in your Amazon Web Services account in an +// Amazon Web Services Region, or it can be a zonal shift started by a practice run +// with zonal autoshift. func (c *Client) CancelZonalShift(ctx context.Context, params *CancelZonalShiftInput, optFns ...func(*Options)) (*CancelZonalShiftOutput, error) { if params == nil { params = &CancelZonalShiftInput{} @@ -44,7 +47,8 @@ type CancelZonalShiftOutput struct { // The Availability Zone that traffic is moved away from for a resource when you // start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - // the resource is instead moved to other Availability Zones in the AWS Region. + // the resource is instead moved to other Availability Zones in the Amazon Web + // Services Region. // // This member is required. AwayFrom *string @@ -56,35 +60,35 @@ type CancelZonalShiftOutput struct { // This member is required. Comment *string - // The expiry time (expiration time) for the zonal shift. A zonal shift is - // temporary and must be set to expire when you start the zonal shift. You can - // initially set a zonal shift to expire in a maximum of three days (72 hours). + // The expiry time (expiration time) for a customer-started zonal shift. A zonal + // shift is temporary and must be set to expire when you start the zonal shift. You + // can initially set a zonal shift to expire in a maximum of three days (72 hours). // However, you can update a zonal shift to set a new expiration at any time. When // you start a zonal shift, you specify how long you want it to be active, which // Route 53 ARC converts to an expiry time (expiration time). You can cancel a - // zonal shift, for example, if you're ready to restore traffic to the Availability - // Zone. Or you can update the zonal shift to specify another length of time to - // expire in. + // zonal shift when you're ready to restore traffic to the Availability Zone, or + // just wait for it to expire. Or you can update the zonal shift to specify another + // length of time to expire in. // // This member is required. ExpiryTime *time.Time - // The identifier for the resource to include in a zonal shift. The identifier is - // the Amazon Resource Name (ARN) for the resource. At this time, you can only - // start a zonal shift for Network Load Balancers and Application Load Balancers - // with cross-zone load balancing turned off. + // The identifier for the resource to shift away traffic for. The identifier is + // the Amazon Resource Name (ARN) for the resource. At this time, supported + // resources are Network Load Balancers and Application Load Balancers with + // cross-zone load balancing turned off. // // This member is required. ResourceIdentifier *string - // The time (UTC) when the zonal shift is started. + // The time (UTC) when the zonal shift starts. // // This member is required. StartTime *time.Time // A status for a zonal shift. The Status for a zonal shift can have one of the // following values: - // - ACTIVE: The zonal shift is started and active. + // - ACTIVE: The zonal shift has been started and active. // - EXPIRED: The zonal shift has expired (the expiry time was exceeded). // - CANCELED: The zonal shift was canceled. // diff --git a/service/arczonalshift/api_op_CreatePracticeRunConfiguration.go b/service/arczonalshift/api_op_CreatePracticeRunConfiguration.go new file mode 100644 index 00000000000..c32e9058ac8 --- /dev/null +++ b/service/arczonalshift/api_op_CreatePracticeRunConfiguration.go @@ -0,0 +1,208 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package arczonalshift + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/arczonalshift/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// A practice run configuration for zonal autoshift is required when you enable +// zonal autoshift. A practice run configuration includes specifications for +// blocked dates and blocked time windows, and for Amazon CloudWatch alarms that +// you create to use with practice runs. The alarms that you specify are an outcome +// alarm, to monitor application health during practice runs and, optionally, a +// blocking alarm, to block practice runs from starting. For more information, see +// Considerations when you configure zonal autoshift (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.considerations.html) +// in the Amazon Route 53 Application Recovery Controller Developer Guide. +func (c *Client) CreatePracticeRunConfiguration(ctx context.Context, params *CreatePracticeRunConfigurationInput, optFns ...func(*Options)) (*CreatePracticeRunConfigurationOutput, error) { + if params == nil { + params = &CreatePracticeRunConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreatePracticeRunConfiguration", params, optFns, c.addOperationCreatePracticeRunConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreatePracticeRunConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreatePracticeRunConfigurationInput struct { + + // The outcome alarm for practice runs is a required Amazon CloudWatch alarm that + // you specify that ends a practice run when the alarm is in an ALARM state. + // Configure the alarm to monitor the health of your application when traffic is + // shifted away from an Availability Zone during each weekly practice run. You + // should configure the alarm to go into an ALARM state if your application is + // impacted by the zonal shift, and you want to stop the zonal shift, to let + // traffic for the resource return to the Availability Zone. + // + // This member is required. + OutcomeAlarms []types.ControlCondition + + // The identifier of the resource to shift away traffic for when a practice run + // starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the + // resource. At this time, supported resources are Network Load Balancers and + // Application Load Balancers with cross-zone load balancing turned off. + // + // This member is required. + ResourceIdentifier *string + + // Optionally, you can block Route 53 ARC from starting practice runs for a + // resource on specific calendar dates. The format for blocked dates is: + // YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for + // practice runs are in UTC. Separate multiple blocked dates with spaces. For + // example, if you have an application update scheduled to launch on May 1, 2024, + // and you don't want practice runs to shift traffic away at that time, you could + // set a blocked date for 2024-05-01 . + BlockedDates []string + + // Optionally, you can block Route 53 ARC from starting practice runs for specific + // windows of days and times. The format for blocked windows is: + // DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times + // for practice runs are in UTC. Also, be aware of potential time adjustments that + // might be required for daylight saving time differences. Separate multiple + // blocked windows with spaces. For example, say you run business report summaries + // three days a week. For this scenario, you might set the following recurring days + // and times as blocked windows, for example: MON-20:30-21:30 WED-20:30-21:30 + // FRI-20:30-21:30 . + BlockedWindows []string + + // An Amazon CloudWatch alarm that you can specify for zonal autoshift practice + // runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, + // and ends a practice run that's in progress, when the alarm is in an ALARM state. + BlockingAlarms []types.ControlCondition + + noSmithyDocumentSerde +} + +type CreatePracticeRunConfigurationOutput struct { + + // The Amazon Resource Name (ARN) of the resource that you configured the practice + // run for. + // + // This member is required. + Arn *string + + // The name of the resource that you configured the practice run for. + // + // This member is required. + Name *string + + // A practice run configuration for a resource. Configurations include the outcome + // alarm that you specify for practice runs, and, optionally, a blocking alarm and + // blocking dates and windows. + // + // This member is required. + PracticeRunConfiguration *types.PracticeRunConfiguration + + // The status for zonal autoshift for a resource. When you specify the autoshift + // status as ENABLED , Amazon Web Services shifts traffic away from shifts away + // application resource traffic from an Availability Zone, on your behalf, when + // Amazon Web Services determines that there's an issue in the Availability Zone + // that could potentially affect customers. When you enable zonal autoshift, you + // must also configure practice runs for the resource. + // + // This member is required. + ZonalAutoshiftStatus types.ZonalAutoshiftStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreatePracticeRunConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpCreatePracticeRunConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreatePracticeRunConfiguration{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreatePracticeRunConfiguration"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreatePracticeRunConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreatePracticeRunConfiguration(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreatePracticeRunConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreatePracticeRunConfiguration", + } +} diff --git a/service/arczonalshift/api_op_DeletePracticeRunConfiguration.go b/service/arczonalshift/api_op_DeletePracticeRunConfiguration.go new file mode 100644 index 00000000000..dc6e891f549 --- /dev/null +++ b/service/arczonalshift/api_op_DeletePracticeRunConfiguration.go @@ -0,0 +1,155 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package arczonalshift + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/arczonalshift/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes the practice run configuration for a resource. Before you can delete a +// practice run configuration for a resource., you must disable zonal autoshift for +// the resource. Practice runs must be configured for zonal autoshift to be +// enabled. +func (c *Client) DeletePracticeRunConfiguration(ctx context.Context, params *DeletePracticeRunConfigurationInput, optFns ...func(*Options)) (*DeletePracticeRunConfigurationOutput, error) { + if params == nil { + params = &DeletePracticeRunConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeletePracticeRunConfiguration", params, optFns, c.addOperationDeletePracticeRunConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeletePracticeRunConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeletePracticeRunConfigurationInput struct { + + // The identifier for the resource that you want to delete the practice run + // configuration for. The identifier is the Amazon Resource Name (ARN) for the + // resource. + // + // This member is required. + ResourceIdentifier *string + + noSmithyDocumentSerde +} + +type DeletePracticeRunConfigurationOutput struct { + + // The Amazon Resource Name (ARN) of the resource that you deleted the practice + // run for. + // + // This member is required. + Arn *string + + // The name of the resource that you deleted the practice run for. + // + // This member is required. + Name *string + + // The status of zonal autoshift for the resource. + // + // This member is required. + ZonalAutoshiftStatus types.ZonalAutoshiftStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeletePracticeRunConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpDeletePracticeRunConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeletePracticeRunConfiguration{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeletePracticeRunConfiguration"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeletePracticeRunConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeletePracticeRunConfiguration(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeletePracticeRunConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeletePracticeRunConfiguration", + } +} diff --git a/service/arczonalshift/api_op_GetManagedResource.go b/service/arczonalshift/api_op_GetManagedResource.go index dd772ba2c40..ab14aaf587f 100644 --- a/service/arczonalshift/api_op_GetManagedResource.go +++ b/service/arczonalshift/api_op_GetManagedResource.go @@ -13,10 +13,12 @@ import ( ) // Get information about a resource that's been registered for zonal shifts with -// Amazon Route 53 Application Recovery Controller in this AWS Region. Resources -// that are registered for zonal shifts are managed resources in Route 53 ARC. At -// this time, you can only start a zonal shift for Network Load Balancers and -// Application Load Balancers with cross-zone load balancing turned off. +// Amazon Route 53 Application Recovery Controller in this Amazon Web Services +// Region. Resources that are registered for zonal shifts are managed resources in +// Route 53 ARC. You can start zonal shifts and configure zonal autoshift for +// managed resources. At this time, you can only start a zonal shift or configure +// zonal autoshift for Network Load Balancers and Application Load Balancers with +// cross-zone load balancing turned off. func (c *Client) GetManagedResource(ctx context.Context, params *GetManagedResourceInput, optFns ...func(*Options)) (*GetManagedResourceOutput, error) { if params == nil { params = &GetManagedResourceInput{} @@ -34,10 +36,10 @@ func (c *Client) GetManagedResource(ctx context.Context, params *GetManagedResou type GetManagedResourceInput struct { - // The identifier for the resource to include in a zonal shift. The identifier is - // the Amazon Resource Name (ARN) for the resource. At this time, you can only - // start a zonal shift for Network Load Balancers and Application Load Balancers - // with cross-zone load balancing turned off. + // The identifier for the resource to shift away traffic for. The identifier is + // the Amazon Resource Name (ARN) for the resource. At this time, supported + // resources are Network Load Balancers and Application Load Balancers with + // cross-zone load balancing turned off. // // This member is required. ResourceIdentifier *string @@ -62,9 +64,23 @@ type GetManagedResourceOutput struct { // The Amazon Resource Name (ARN) for the resource. Arn *string + // An array of the autoshifts that are active for the resource. + Autoshifts []types.AutoshiftInResource + // The name of the resource. Name *string + // The practice run configuration for zonal autoshift that's associated with the + // resource. + PracticeRunConfiguration *types.PracticeRunConfiguration + + // The status for zonal autoshift for a resource. When the autoshift status is + // ENABLED , Amazon Web Services shifts traffic for a resource away from an + // Availability Zone, on your behalf, when Amazon Web Services determines that + // there's an issue in the Availability Zone that could potentially affect + // customers. + ZonalAutoshiftStatus types.ZonalAutoshiftStatus + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/arczonalshift/api_op_ListAutoshifts.go b/service/arczonalshift/api_op_ListAutoshifts.go new file mode 100644 index 00000000000..64920e3cf7c --- /dev/null +++ b/service/arczonalshift/api_op_ListAutoshifts.go @@ -0,0 +1,237 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package arczonalshift + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/arczonalshift/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns the active autoshifts for a specified resource. +func (c *Client) ListAutoshifts(ctx context.Context, params *ListAutoshiftsInput, optFns ...func(*Options)) (*ListAutoshiftsOutput, error) { + if params == nil { + params = &ListAutoshiftsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListAutoshifts", params, optFns, c.addOperationListAutoshiftsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListAutoshiftsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListAutoshiftsInput struct { + + // The number of objects that you want to return with this call. + MaxResults *int32 + + // Specifies that you want to receive the next page of results. Valid only if you + // received a NextToken response in the previous request. If you did, it indicates + // that more output is available. Set this parameter to the value provided by the + // previous call's NextToken response to request the next page of results. + NextToken *string + + // The status of the autoshift. + Status types.AutoshiftExecutionStatus + + noSmithyDocumentSerde +} + +type ListAutoshiftsOutput struct { + + // The items in the response list. + Items []types.AutoshiftSummary + + // Specifies that you want to receive the next page of results. Valid only if you + // received a NextToken response in the previous request. If you did, it indicates + // that more output is available. Set this parameter to the value provided by the + // previous call's NextToken response to request the next page of results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListAutoshiftsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListAutoshifts{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListAutoshifts{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListAutoshifts"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListAutoshifts(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListAutoshiftsAPIClient is a client that implements the ListAutoshifts +// operation. +type ListAutoshiftsAPIClient interface { + ListAutoshifts(context.Context, *ListAutoshiftsInput, ...func(*Options)) (*ListAutoshiftsOutput, error) +} + +var _ ListAutoshiftsAPIClient = (*Client)(nil) + +// ListAutoshiftsPaginatorOptions is the paginator options for ListAutoshifts +type ListAutoshiftsPaginatorOptions struct { + // The number of objects that you want to return with this call. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListAutoshiftsPaginator is a paginator for ListAutoshifts +type ListAutoshiftsPaginator struct { + options ListAutoshiftsPaginatorOptions + client ListAutoshiftsAPIClient + params *ListAutoshiftsInput + nextToken *string + firstPage bool +} + +// NewListAutoshiftsPaginator returns a new ListAutoshiftsPaginator +func NewListAutoshiftsPaginator(client ListAutoshiftsAPIClient, params *ListAutoshiftsInput, optFns ...func(*ListAutoshiftsPaginatorOptions)) *ListAutoshiftsPaginator { + if params == nil { + params = &ListAutoshiftsInput{} + } + + options := ListAutoshiftsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListAutoshiftsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListAutoshiftsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListAutoshifts page. +func (p *ListAutoshiftsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListAutoshiftsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListAutoshifts(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListAutoshifts(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListAutoshifts", + } +} diff --git a/service/arczonalshift/api_op_ListManagedResources.go b/service/arczonalshift/api_op_ListManagedResources.go index a1527206b57..8978771c6e8 100644 --- a/service/arczonalshift/api_op_ListManagedResources.go +++ b/service/arczonalshift/api_op_ListManagedResources.go @@ -12,11 +12,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the resources in your AWS account in this AWS Region that are managed -// for zonal shifts in Amazon Route 53 Application Recovery Controller, and -// information about them. The information includes their Amazon Resource Names -// (ARNs), the Availability Zones the resources are deployed in, and the resource -// name. +// Lists all the resources in your Amazon Web Services account in this Amazon Web +// Services Region that are managed for zonal shifts in Amazon Route 53 Application +// Recovery Controller, and information about them. The information includes the +// zonal autoshift status for the resource, as well as the Amazon Resource Name +// (ARN), the Availability Zones that each resource is deployed in, and the +// resource name. func (c *Client) ListManagedResources(ctx context.Context, params *ListManagedResourcesInput, optFns ...func(*Options)) (*ListManagedResourcesOutput, error) { if params == nil { params = &ListManagedResourcesInput{} diff --git a/service/arczonalshift/api_op_ListZonalShifts.go b/service/arczonalshift/api_op_ListZonalShifts.go index befd4ed35df..34c830009eb 100644 --- a/service/arczonalshift/api_op_ListZonalShifts.go +++ b/service/arczonalshift/api_op_ListZonalShifts.go @@ -12,8 +12,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the active zonal shifts in Amazon Route 53 Application Recovery -// Controller in your AWS account in this AWS Region. +// Lists all active and completed zonal shifts in Amazon Route 53 Application +// Recovery Controller in your Amazon Web Services account in this Amazon Web +// Services Region. ListZonalShifts returns customer-started zonal shifts, as well +// as practice run zonal shifts that Route 53 ARC started on your behalf for zonal +// autoshift. The ListZonalShifts operation does not list autoshifts. For more +// information about listing autoshifts, see ">ListAutoshifts (https://docs.aws.amazon.com/arc-zonal-shift/latest/api/API_ListAutoshifts.html) +// . func (c *Client) ListZonalShifts(ctx context.Context, params *ListZonalShiftsInput, optFns ...func(*Options)) (*ListZonalShiftsOutput, error) { if params == nil { params = &ListZonalShiftsInput{} @@ -40,9 +45,13 @@ type ListZonalShiftsInput struct { // previous call's NextToken response to request the next page of results. NextToken *string + // The identifier for the resource that you want to list zonal shifts for. The + // identifier is the Amazon Resource Name (ARN) for the resource. + ResourceIdentifier *string + // A status for a zonal shift. The Status for a zonal shift can have one of the // following values: - // - ACTIVE: The zonal shift is started and active. + // - ACTIVE: The zonal shift has been started and active. // - EXPIRED: The zonal shift has expired (the expiry time was exceeded). // - CANCELED: The zonal shift was canceled. Status types.ZonalShiftStatus diff --git a/service/arczonalshift/api_op_StartZonalShift.go b/service/arczonalshift/api_op_StartZonalShift.go index c081e7ef98e..b75a6d439d8 100644 --- a/service/arczonalshift/api_op_StartZonalShift.go +++ b/service/arczonalshift/api_op_StartZonalShift.go @@ -14,17 +14,18 @@ import ( ) // You start a zonal shift to temporarily move load balancer traffic away from an -// Availability Zone in a AWS Region, to help your application recover immediately, -// for example, from a developer's bad code deployment or from an AWS -// infrastructure failure in a single Availability Zone. You can start a zonal -// shift in Route 53 ARC only for managed resources in your account in an AWS -// Region. Resources are automatically registered with Route 53 ARC by AWS -// services. At this time, you can only start a zonal shift for Network Load -// Balancers and Application Load Balancers with cross-zone load balancing turned -// off. When you start a zonal shift, traffic for the resource is no longer routed -// to the Availability Zone. The zonal shift is created immediately in Route 53 -// ARC. However, it can take a short time, typically up to a few minutes, for -// existing, in-progress connections in the Availability Zone to complete. For more +// Availability Zone in an Amazon Web Services Region, to help your application +// recover immediately, for example, from a developer's bad code deployment or from +// an Amazon Web Services infrastructure failure in a single Availability Zone. You +// can start a zonal shift in Route 53 ARC only for managed resources in your +// Amazon Web Services account in an Amazon Web Services Region. Resources are +// automatically registered with Route 53 ARC by Amazon Web Services services. At +// this time, you can only start a zonal shift for Network Load Balancers and +// Application Load Balancers with cross-zone load balancing turned off. When you +// start a zonal shift, traffic for the resource is no longer routed to the +// Availability Zone. The zonal shift is created immediately in Route 53 ARC. +// However, it can take a short time, typically up to a few minutes, for existing, +// in-progress connections in the Availability Zone to complete. For more // information, see Zonal shift (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-shift.html) // in the Amazon Route 53 Application Recovery Controller Developer Guide. func (c *Client) StartZonalShift(ctx context.Context, params *StartZonalShiftInput, optFns ...func(*Options)) (*StartZonalShiftOutput, error) { @@ -46,7 +47,8 @@ type StartZonalShiftInput struct { // The Availability Zone that traffic is moved away from for a resource when you // start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - // the resource is instead moved to other Availability Zones in the AWS Region. + // the resource is instead moved to other Availability Zones in the Amazon Web + // Services Region. // // This member is required. AwayFrom *string @@ -74,10 +76,10 @@ type StartZonalShiftInput struct { // This member is required. ExpiresIn *string - // The identifier for the resource to include in a zonal shift. The identifier is - // the Amazon Resource Name (ARN) for the resource. At this time, you can only - // start a zonal shift for Network Load Balancers and Application Load Balancers - // with cross-zone load balancing turned off. + // The identifier for the resource to shift away traffic for. The identifier is + // the Amazon Resource Name (ARN) for the resource. At this time, supported + // resources are Network Load Balancers and Application Load Balancers with + // cross-zone load balancing turned off. // // This member is required. ResourceIdentifier *string @@ -89,7 +91,8 @@ type StartZonalShiftOutput struct { // The Availability Zone that traffic is moved away from for a resource when you // start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - // the resource is instead moved to other Availability Zones in the AWS Region. + // the resource is instead moved to other Availability Zones in the Amazon Web + // Services Region. // // This member is required. AwayFrom *string @@ -101,35 +104,35 @@ type StartZonalShiftOutput struct { // This member is required. Comment *string - // The expiry time (expiration time) for the zonal shift. A zonal shift is - // temporary and must be set to expire when you start the zonal shift. You can - // initially set a zonal shift to expire in a maximum of three days (72 hours). + // The expiry time (expiration time) for a customer-started zonal shift. A zonal + // shift is temporary and must be set to expire when you start the zonal shift. You + // can initially set a zonal shift to expire in a maximum of three days (72 hours). // However, you can update a zonal shift to set a new expiration at any time. When // you start a zonal shift, you specify how long you want it to be active, which // Route 53 ARC converts to an expiry time (expiration time). You can cancel a - // zonal shift, for example, if you're ready to restore traffic to the Availability - // Zone. Or you can update the zonal shift to specify another length of time to - // expire in. + // zonal shift when you're ready to restore traffic to the Availability Zone, or + // just wait for it to expire. Or you can update the zonal shift to specify another + // length of time to expire in. // // This member is required. ExpiryTime *time.Time - // The identifier for the resource to include in a zonal shift. The identifier is - // the Amazon Resource Name (ARN) for the resource. At this time, you can only - // start a zonal shift for Network Load Balancers and Application Load Balancers - // with cross-zone load balancing turned off. + // The identifier for the resource to shift away traffic for. The identifier is + // the Amazon Resource Name (ARN) for the resource. At this time, supported + // resources are Network Load Balancers and Application Load Balancers with + // cross-zone load balancing turned off. // // This member is required. ResourceIdentifier *string - // The time (UTC) when the zonal shift is started. + // The time (UTC) when the zonal shift starts. // // This member is required. StartTime *time.Time // A status for a zonal shift. The Status for a zonal shift can have one of the // following values: - // - ACTIVE: The zonal shift is started and active. + // - ACTIVE: The zonal shift has been started and active. // - EXPIRED: The zonal shift has expired (the expiry time was exceeded). // - CANCELED: The zonal shift was canceled. // diff --git a/service/arczonalshift/api_op_UpdatePracticeRunConfiguration.go b/service/arczonalshift/api_op_UpdatePracticeRunConfiguration.go new file mode 100644 index 00000000000..35b01532605 --- /dev/null +++ b/service/arczonalshift/api_op_UpdatePracticeRunConfiguration.go @@ -0,0 +1,188 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package arczonalshift + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/arczonalshift/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Update a practice run configuration to change one or more of the following: +// add, change, or remove the blocking alarm; change the outcome alarm; or add, +// change, or remove blocking dates or time windows. +func (c *Client) UpdatePracticeRunConfiguration(ctx context.Context, params *UpdatePracticeRunConfigurationInput, optFns ...func(*Options)) (*UpdatePracticeRunConfigurationOutput, error) { + if params == nil { + params = &UpdatePracticeRunConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdatePracticeRunConfiguration", params, optFns, c.addOperationUpdatePracticeRunConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdatePracticeRunConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdatePracticeRunConfigurationInput struct { + + // The identifier for the resource that you want to update the practice run + // configuration for. The identifier is the Amazon Resource Name (ARN) for the + // resource. + // + // This member is required. + ResourceIdentifier *string + + // Add, change, or remove blocked dates for a practice run in zonal autoshift. + // Optionally, you can block practice runs for specific calendar dates. The format + // for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that + // dates and times for practice runs are in UTC. Separate multiple blocked dates + // with spaces. For example, if you have an application update scheduled to launch + // on May 1, 2024, and you don't want practice runs to shift traffic away at that + // time, you could set a blocked date for 2024-05-01 . + BlockedDates []string + + // Add, change, or remove windows of days and times for when you can, optionally, + // block Route 53 ARC from starting a practice run for a resource. The format for + // blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, + // that dates and times for practice runs are in UTC. Also, be aware of potential + // time adjustments that might be required for daylight saving time differences. + // Separate multiple blocked windows with spaces. For example, say you run business + // report summaries three days a week. For this scenario, you might set the + // following recurring days and times as blocked windows, for example: + // MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30 . + BlockedWindows []string + + // Add, change, or remove the Amazon CloudWatch alarm that you optionally specify + // as the blocking alarm for practice runs. + BlockingAlarms []types.ControlCondition + + // Specify a new the Amazon CloudWatch alarm as the outcome alarm for practice + // runs. + OutcomeAlarms []types.ControlCondition + + noSmithyDocumentSerde +} + +type UpdatePracticeRunConfigurationOutput struct { + + // The Amazon Resource Name (ARN) of the resource that you updated the practice + // run for. + // + // This member is required. + Arn *string + + // The name of the resource that you updated the practice run for. + // + // This member is required. + Name *string + + // The practice run configuration that was updated. + // + // This member is required. + PracticeRunConfiguration *types.PracticeRunConfiguration + + // The zonal autoshift status for the resource that you updated the practice run + // for. + // + // This member is required. + ZonalAutoshiftStatus types.ZonalAutoshiftStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdatePracticeRunConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdatePracticeRunConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdatePracticeRunConfiguration{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdatePracticeRunConfiguration"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdatePracticeRunConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdatePracticeRunConfiguration(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdatePracticeRunConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdatePracticeRunConfiguration", + } +} diff --git a/service/arczonalshift/api_op_UpdateZonalAutoshiftConfiguration.go b/service/arczonalshift/api_op_UpdateZonalAutoshiftConfiguration.go new file mode 100644 index 00000000000..553e82bf8fc --- /dev/null +++ b/service/arczonalshift/api_op_UpdateZonalAutoshiftConfiguration.go @@ -0,0 +1,159 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package arczonalshift + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/arczonalshift/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// You can update the zonal autoshift status for a resource, to enable or disable +// zonal autoshift. When zonal autoshift is ENABLED , Amazon Web Services shifts +// away resource traffic from an Availability Zone, on your behalf, when Amazon Web +// Services determines that there's an issue in the Availability Zone that could +// potentially affect customers. +func (c *Client) UpdateZonalAutoshiftConfiguration(ctx context.Context, params *UpdateZonalAutoshiftConfigurationInput, optFns ...func(*Options)) (*UpdateZonalAutoshiftConfigurationOutput, error) { + if params == nil { + params = &UpdateZonalAutoshiftConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateZonalAutoshiftConfiguration", params, optFns, c.addOperationUpdateZonalAutoshiftConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateZonalAutoshiftConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateZonalAutoshiftConfigurationInput struct { + + // The identifier for the resource that you want to update the zonal autoshift + // configuration for. The identifier is the Amazon Resource Name (ARN) for the + // resource. + // + // This member is required. + ResourceIdentifier *string + + // The zonal autoshift status for the resource that you want to update the zonal + // autoshift configuration for. + // + // This member is required. + ZonalAutoshiftStatus types.ZonalAutoshiftStatus + + noSmithyDocumentSerde +} + +type UpdateZonalAutoshiftConfigurationOutput struct { + + // The identifier for the resource that you updated the zonal autoshift + // configuration for. The identifier is the Amazon Resource Name (ARN) for the + // resource. + // + // This member is required. + ResourceIdentifier *string + + // The zonal autoshift status for the resource that you updated the zonal + // autoshift configuration for. + // + // This member is required. + ZonalAutoshiftStatus types.ZonalAutoshiftStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateZonalAutoshiftConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateZonalAutoshiftConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateZonalAutoshiftConfiguration{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateZonalAutoshiftConfiguration"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateZonalAutoshiftConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateZonalAutoshiftConfiguration(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateZonalAutoshiftConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateZonalAutoshiftConfiguration", + } +} diff --git a/service/arczonalshift/api_op_UpdateZonalShift.go b/service/arczonalshift/api_op_UpdateZonalShift.go index cbdd8899b68..e56930ea440 100644 --- a/service/arczonalshift/api_op_UpdateZonalShift.go +++ b/service/arczonalshift/api_op_UpdateZonalShift.go @@ -14,8 +14,8 @@ import ( ) // Update an active zonal shift in Amazon Route 53 Application Recovery Controller -// in your AWS account. You can update a zonal shift to set a new expiration, or -// edit or replace the comment for the zonal shift. +// in your Amazon Web Services account. You can update a zonal shift to set a new +// expiration, or edit or replace the comment for the zonal shift. func (c *Client) UpdateZonalShift(ctx context.Context, params *UpdateZonalShiftInput, optFns ...func(*Options)) (*UpdateZonalShiftOutput, error) { if params == nil { params = &UpdateZonalShiftInput{} @@ -64,7 +64,8 @@ type UpdateZonalShiftOutput struct { // The Availability Zone that traffic is moved away from for a resource when you // start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - // the resource is instead moved to other Availability Zones in the AWS Region. + // the resource is instead moved to other Availability Zones in the Amazon Web + // Services Region. // // This member is required. AwayFrom *string @@ -76,35 +77,35 @@ type UpdateZonalShiftOutput struct { // This member is required. Comment *string - // The expiry time (expiration time) for the zonal shift. A zonal shift is - // temporary and must be set to expire when you start the zonal shift. You can - // initially set a zonal shift to expire in a maximum of three days (72 hours). + // The expiry time (expiration time) for a customer-started zonal shift. A zonal + // shift is temporary and must be set to expire when you start the zonal shift. You + // can initially set a zonal shift to expire in a maximum of three days (72 hours). // However, you can update a zonal shift to set a new expiration at any time. When // you start a zonal shift, you specify how long you want it to be active, which // Route 53 ARC converts to an expiry time (expiration time). You can cancel a - // zonal shift, for example, if you're ready to restore traffic to the Availability - // Zone. Or you can update the zonal shift to specify another length of time to - // expire in. + // zonal shift when you're ready to restore traffic to the Availability Zone, or + // just wait for it to expire. Or you can update the zonal shift to specify another + // length of time to expire in. // // This member is required. ExpiryTime *time.Time - // The identifier for the resource to include in a zonal shift. The identifier is - // the Amazon Resource Name (ARN) for the resource. At this time, you can only - // start a zonal shift for Network Load Balancers and Application Load Balancers - // with cross-zone load balancing turned off. + // The identifier for the resource to shift away traffic for. The identifier is + // the Amazon Resource Name (ARN) for the resource. At this time, supported + // resources are Network Load Balancers and Application Load Balancers with + // cross-zone load balancing turned off. // // This member is required. ResourceIdentifier *string - // The time (UTC) when the zonal shift is started. + // The time (UTC) when the zonal shift starts. // // This member is required. StartTime *time.Time // A status for a zonal shift. The Status for a zonal shift can have one of the // following values: - // - ACTIVE: The zonal shift is started and active. + // - ACTIVE: The zonal shift has been started and active. // - EXPIRED: The zonal shift has expired (the expiry time was exceeded). // - CANCELED: The zonal shift was canceled. // diff --git a/service/arczonalshift/auth.go b/service/arczonalshift/auth.go index 0694037c91e..78fbe5786b7 100644 --- a/service/arczonalshift/auth.go +++ b/service/arczonalshift/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/arczonalshift/deserializers.go b/service/arczonalshift/deserializers.go index 706f3820e7a..3324c8671a0 100644 --- a/service/arczonalshift/deserializers.go +++ b/service/arczonalshift/deserializers.go @@ -254,14 +254,14 @@ func awsRestjson1_deserializeOpDocumentCancelZonalShiftOutput(v **CancelZonalShi return nil } -type awsRestjson1_deserializeOpGetManagedResource struct { +type awsRestjson1_deserializeOpCreatePracticeRunConfiguration struct { } -func (*awsRestjson1_deserializeOpGetManagedResource) ID() string { +func (*awsRestjson1_deserializeOpCreatePracticeRunConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpGetManagedResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpCreatePracticeRunConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -275,9 +275,9 @@ func (m *awsRestjson1_deserializeOpGetManagedResource) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorGetManagedResource(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorCreatePracticeRunConfiguration(response, &metadata) } - output := &GetManagedResourceOutput{} + output := &CreatePracticeRunConfigurationOutput{} out.Result = output var buff [1024]byte @@ -298,7 +298,7 @@ func (m *awsRestjson1_deserializeOpGetManagedResource) HandleDeserialize(ctx con return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentGetManagedResourceOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentCreatePracticeRunConfigurationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -311,7 +311,7 @@ func (m *awsRestjson1_deserializeOpGetManagedResource) HandleDeserialize(ctx con return out, metadata, err } -func awsRestjson1_deserializeOpErrorGetManagedResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorCreatePracticeRunConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -355,6 +355,9 @@ func awsRestjson1_deserializeOpErrorGetManagedResource(response *smithyhttp.Resp case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) @@ -377,7 +380,7 @@ func awsRestjson1_deserializeOpErrorGetManagedResource(response *smithyhttp.Resp } } -func awsRestjson1_deserializeOpDocumentGetManagedResourceOutput(v **GetManagedResourceOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentCreatePracticeRunConfigurationOutput(v **CreatePracticeRunConfigurationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -390,20 +393,15 @@ func awsRestjson1_deserializeOpDocumentGetManagedResourceOutput(v **GetManagedRe return fmt.Errorf("unexpected JSON type %v", value) } - var sv *GetManagedResourceOutput + var sv *CreatePracticeRunConfigurationOutput if *v == nil { - sv = &GetManagedResourceOutput{} + sv = &CreatePracticeRunConfigurationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "appliedWeights": - if err := awsRestjson1_deserializeDocumentAppliedWeights(&sv.AppliedWeights, value); err != nil { - return err - } - case "arn": if value != nil { jtv, ok := value.(string) @@ -422,11 +420,20 @@ func awsRestjson1_deserializeOpDocumentGetManagedResourceOutput(v **GetManagedRe sv.Name = ptr.String(jtv) } - case "zonalShifts": - if err := awsRestjson1_deserializeDocumentZonalShiftsInResource(&sv.ZonalShifts, value); err != nil { + case "practiceRunConfiguration": + if err := awsRestjson1_deserializeDocumentPracticeRunConfiguration(&sv.PracticeRunConfiguration, value); err != nil { return err } + case "zonalAutoshiftStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalAutoshiftStatus to be of type string, got %T instead", value) + } + sv.ZonalAutoshiftStatus = types.ZonalAutoshiftStatus(jtv) + } + default: _, _ = key, value @@ -436,14 +443,14 @@ func awsRestjson1_deserializeOpDocumentGetManagedResourceOutput(v **GetManagedRe return nil } -type awsRestjson1_deserializeOpListManagedResources struct { +type awsRestjson1_deserializeOpDeletePracticeRunConfiguration struct { } -func (*awsRestjson1_deserializeOpListManagedResources) ID() string { +func (*awsRestjson1_deserializeOpDeletePracticeRunConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListManagedResources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpDeletePracticeRunConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -457,9 +464,9 @@ func (m *awsRestjson1_deserializeOpListManagedResources) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListManagedResources(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorDeletePracticeRunConfiguration(response, &metadata) } - output := &ListManagedResourcesOutput{} + output := &DeletePracticeRunConfigurationOutput{} out.Result = output var buff [1024]byte @@ -480,7 +487,7 @@ func (m *awsRestjson1_deserializeOpListManagedResources) HandleDeserialize(ctx c return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListManagedResourcesOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentDeletePracticeRunConfigurationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -493,7 +500,7 @@ func (m *awsRestjson1_deserializeOpListManagedResources) HandleDeserialize(ctx c return out, metadata, err } -func awsRestjson1_deserializeOpErrorListManagedResources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorDeletePracticeRunConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -537,9 +544,15 @@ func awsRestjson1_deserializeOpErrorListManagedResources(response *smithyhttp.Re case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -556,7 +569,7 @@ func awsRestjson1_deserializeOpErrorListManagedResources(response *smithyhttp.Re } } -func awsRestjson1_deserializeOpDocumentListManagedResourcesOutput(v **ListManagedResourcesOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentDeletePracticeRunConfigurationOutput(v **DeletePracticeRunConfigurationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -569,27 +582,40 @@ func awsRestjson1_deserializeOpDocumentListManagedResourcesOutput(v **ListManage return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListManagedResourcesOutput + var sv *DeletePracticeRunConfigurationOutput if *v == nil { - sv = &ListManagedResourcesOutput{} + sv = &DeletePracticeRunConfigurationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "items": - if err := awsRestjson1_deserializeDocumentManagedResourceSummaries(&sv.Items, value); err != nil { - return err + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) } - case "nextToken": + case "name": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.Name = ptr.String(jtv) + } + + case "zonalAutoshiftStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalAutoshiftStatus to be of type string, got %T instead", value) + } + sv.ZonalAutoshiftStatus = types.ZonalAutoshiftStatus(jtv) } default: @@ -601,14 +627,14 @@ func awsRestjson1_deserializeOpDocumentListManagedResourcesOutput(v **ListManage return nil } -type awsRestjson1_deserializeOpListZonalShifts struct { +type awsRestjson1_deserializeOpGetManagedResource struct { } -func (*awsRestjson1_deserializeOpListZonalShifts) ID() string { +func (*awsRestjson1_deserializeOpGetManagedResource) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpListZonalShifts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpGetManagedResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -622,9 +648,9 @@ func (m *awsRestjson1_deserializeOpListZonalShifts) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorListZonalShifts(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorGetManagedResource(response, &metadata) } - output := &ListZonalShiftsOutput{} + output := &GetManagedResourceOutput{} out.Result = output var buff [1024]byte @@ -645,7 +671,7 @@ func (m *awsRestjson1_deserializeOpListZonalShifts) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentListZonalShiftsOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentGetManagedResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -658,7 +684,7 @@ func (m *awsRestjson1_deserializeOpListZonalShifts) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorListZonalShifts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorGetManagedResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -705,6 +731,9 @@ func awsRestjson1_deserializeOpErrorListZonalShifts(response *smithyhttp.Respons case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -721,7 +750,7 @@ func awsRestjson1_deserializeOpErrorListZonalShifts(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpDocumentListZonalShiftsOutput(v **ListZonalShiftsOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentGetManagedResourceOutput(v **GetManagedResourceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -734,27 +763,60 @@ func awsRestjson1_deserializeOpDocumentListZonalShiftsOutput(v **ListZonalShifts return fmt.Errorf("unexpected JSON type %v", value) } - var sv *ListZonalShiftsOutput + var sv *GetManagedResourceOutput if *v == nil { - sv = &ListZonalShiftsOutput{} + sv = &GetManagedResourceOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "items": - if err := awsRestjson1_deserializeDocumentZonalShiftSummaries(&sv.Items, value); err != nil { + case "appliedWeights": + if err := awsRestjson1_deserializeDocumentAppliedWeights(&sv.AppliedWeights, value); err != nil { return err } - case "nextToken": + case "arn": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) } - sv.NextToken = ptr.String(jtv) + sv.Arn = ptr.String(jtv) + } + + case "autoshifts": + if err := awsRestjson1_deserializeDocumentAutoshiftsInResource(&sv.Autoshifts, value); err != nil { + return err + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "practiceRunConfiguration": + if err := awsRestjson1_deserializeDocumentPracticeRunConfiguration(&sv.PracticeRunConfiguration, value); err != nil { + return err + } + + case "zonalAutoshiftStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalAutoshiftStatus to be of type string, got %T instead", value) + } + sv.ZonalAutoshiftStatus = types.ZonalAutoshiftStatus(jtv) + } + + case "zonalShifts": + if err := awsRestjson1_deserializeDocumentZonalShiftsInResource(&sv.ZonalShifts, value); err != nil { + return err } default: @@ -766,14 +828,14 @@ func awsRestjson1_deserializeOpDocumentListZonalShiftsOutput(v **ListZonalShifts return nil } -type awsRestjson1_deserializeOpStartZonalShift struct { +type awsRestjson1_deserializeOpListAutoshifts struct { } -func (*awsRestjson1_deserializeOpStartZonalShift) ID() string { +func (*awsRestjson1_deserializeOpListAutoshifts) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpStartZonalShift) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListAutoshifts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -787,9 +849,9 @@ func (m *awsRestjson1_deserializeOpStartZonalShift) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorStartZonalShift(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListAutoshifts(response, &metadata) } - output := &StartZonalShiftOutput{} + output := &ListAutoshiftsOutput{} out.Result = output var buff [1024]byte @@ -810,7 +872,7 @@ func (m *awsRestjson1_deserializeOpStartZonalShift) HandleDeserialize(ctx contex return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentStartZonalShiftOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListAutoshiftsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -823,7 +885,7 @@ func (m *awsRestjson1_deserializeOpStartZonalShift) HandleDeserialize(ctx contex return out, metadata, err } -func awsRestjson1_deserializeOpErrorStartZonalShift(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListAutoshifts(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -867,15 +929,9 @@ func awsRestjson1_deserializeOpErrorStartZonalShift(response *smithyhttp.Respons case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -892,7 +948,7 @@ func awsRestjson1_deserializeOpErrorStartZonalShift(response *smithyhttp.Respons } } -func awsRestjson1_deserializeOpDocumentStartZonalShiftOutput(v **StartZonalShiftOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListAutoshiftsOutput(v **ListAutoshiftsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -905,90 +961,27 @@ func awsRestjson1_deserializeOpDocumentStartZonalShiftOutput(v **StartZonalShift return fmt.Errorf("unexpected JSON type %v", value) } - var sv *StartZonalShiftOutput + var sv *ListAutoshiftsOutput if *v == nil { - sv = &StartZonalShiftOutput{} + sv = &ListAutoshiftsOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "awayFrom": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) - } - sv.AwayFrom = ptr.String(jtv) - } - - case "comment": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ZonalShiftComment to be of type string, got %T instead", value) - } - sv.Comment = ptr.String(jtv) - } - - case "expiryTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ExpiryTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected ExpiryTime to be a JSON Number, got %T instead", value) - - } - } - - case "resourceIdentifier": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceIdentifier to be of type string, got %T instead", value) - } - sv.ResourceIdentifier = ptr.String(jtv) - } - - case "startTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected StartTime to be a JSON Number, got %T instead", value) - - } - } - - case "status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ZonalShiftStatus to be of type string, got %T instead", value) - } - sv.Status = types.ZonalShiftStatus(jtv) + case "items": + if err := awsRestjson1_deserializeDocumentAutoshiftSummaries(&sv.Items, value); err != nil { + return err } - case "zonalShiftId": + case "nextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ZonalShiftId to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.ZonalShiftId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } default: @@ -1000,14 +993,14 @@ func awsRestjson1_deserializeOpDocumentStartZonalShiftOutput(v **StartZonalShift return nil } -type awsRestjson1_deserializeOpUpdateZonalShift struct { +type awsRestjson1_deserializeOpListManagedResources struct { } -func (*awsRestjson1_deserializeOpUpdateZonalShift) ID() string { +func (*awsRestjson1_deserializeOpListManagedResources) ID() string { return "OperationDeserializer" } -func (m *awsRestjson1_deserializeOpUpdateZonalShift) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsRestjson1_deserializeOpListManagedResources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1021,9 +1014,9 @@ func (m *awsRestjson1_deserializeOpUpdateZonalShift) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsRestjson1_deserializeOpErrorUpdateZonalShift(response, &metadata) + return out, metadata, awsRestjson1_deserializeOpErrorListManagedResources(response, &metadata) } - output := &UpdateZonalShiftOutput{} + output := &ListManagedResourcesOutput{} out.Result = output var buff [1024]byte @@ -1044,7 +1037,7 @@ func (m *awsRestjson1_deserializeOpUpdateZonalShift) HandleDeserialize(ctx conte return out, metadata, err } - err = awsRestjson1_deserializeOpDocumentUpdateZonalShiftOutput(&output, shape) + err = awsRestjson1_deserializeOpDocumentListManagedResourcesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1057,7 +1050,7 @@ func (m *awsRestjson1_deserializeOpUpdateZonalShift) HandleDeserialize(ctx conte return out, metadata, err } -func awsRestjson1_deserializeOpErrorUpdateZonalShift(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsRestjson1_deserializeOpErrorListManagedResources(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1101,15 +1094,9 @@ func awsRestjson1_deserializeOpErrorUpdateZonalShift(response *smithyhttp.Respon case strings.EqualFold("AccessDeniedException", errorCode): return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): - return awsRestjson1_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) @@ -1126,7 +1113,7 @@ func awsRestjson1_deserializeOpErrorUpdateZonalShift(response *smithyhttp.Respon } } -func awsRestjson1_deserializeOpDocumentUpdateZonalShiftOutput(v **UpdateZonalShiftOutput, value interface{}) error { +func awsRestjson1_deserializeOpDocumentListManagedResourcesOutput(v **ListManagedResourcesOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1139,90 +1126,27 @@ func awsRestjson1_deserializeOpDocumentUpdateZonalShiftOutput(v **UpdateZonalShi return fmt.Errorf("unexpected JSON type %v", value) } - var sv *UpdateZonalShiftOutput + var sv *ListManagedResourcesOutput if *v == nil { - sv = &UpdateZonalShiftOutput{} + sv = &ListManagedResourcesOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "awayFrom": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) - } - sv.AwayFrom = ptr.String(jtv) + case "items": + if err := awsRestjson1_deserializeDocumentManagedResourceSummaries(&sv.Items, value); err != nil { + return err } - case "comment": + case "nextToken": if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected ZonalShiftComment to be of type string, got %T instead", value) + return fmt.Errorf("expected String to be of type string, got %T instead", value) } - sv.Comment = ptr.String(jtv) - } - - case "expiryTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.ExpiryTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected ExpiryTime to be a JSON Number, got %T instead", value) - - } - } - - case "resourceIdentifier": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ResourceIdentifier to be of type string, got %T instead", value) - } - sv.ResourceIdentifier = ptr.String(jtv) - } - - case "startTime": - if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) - - default: - return fmt.Errorf("expected StartTime to be a JSON Number, got %T instead", value) - - } - } - - case "status": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ZonalShiftStatus to be of type string, got %T instead", value) - } - sv.Status = types.ZonalShiftStatus(jtv) - } - - case "zonalShiftId": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected ZonalShiftId to be of type string, got %T instead", value) - } - sv.ZonalShiftId = ptr.String(jtv) + sv.NextToken = ptr.String(jtv) } default: @@ -1234,12 +1158,37 @@ func awsRestjson1_deserializeOpDocumentUpdateZonalShiftOutput(v **UpdateZonalShi return nil } -func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AccessDeniedException{} +type awsRestjson1_deserializeOpListZonalShifts struct { +} + +func (*awsRestjson1_deserializeOpListZonalShifts) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListZonalShifts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListZonalShifts(response, &metadata) + } + output := &ListZonalShiftsOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -1250,36 +1199,45 @@ func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Res Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentListZonalShiftsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ConflictException{} +func awsRestjson1_deserializeOpErrorListZonalShifts(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -1289,65 +1247,113 @@ func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Respons return err } - err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, } - return err + return genericError + } +} - errorBody.Seek(0, io.SeekStart) +func awsRestjson1_deserializeOpDocumentListZonalShiftsOutput(v **ListZonalShiftsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } - return output -} + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } -func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InternalServerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) + var sv *ListZonalShiftsOutput + if *v == nil { + sv = &ListZonalShiftsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "items": + if err := awsRestjson1_deserializeDocumentZonalShiftSummaries(&sv.Items, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value - body := io.TeeReader(errorBody, ringBuffer) - decoder := json.NewDecoder(body) - decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } + *v = sv + return nil +} - err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) +type awsRestjson1_deserializeOpStartZonalShift struct { +} + +func (*awsRestjson1_deserializeOpStartZonalShift) ID() string { + return "OperationDeserializer" +} +func (m *awsRestjson1_deserializeOpStartZonalShift) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } - return output -} + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorStartZonalShift(response, &metadata) + } + output := &StartZonalShiftOutput{} + out.Result = output -func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -1358,11 +1364,44 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentStartZonalShiftOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorStartZonalShift(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1374,16 +1413,181 @@ func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp } errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } - return output + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } } -func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ThrottlingException{} +func awsRestjson1_deserializeOpDocumentStartZonalShiftOutput(v **StartZonalShiftOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *StartZonalShiftOutput + if *v == nil { + sv = &StartZonalShiftOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "awayFrom": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) + } + sv.AwayFrom = ptr.String(jtv) + } + + case "comment": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalShiftComment to be of type string, got %T instead", value) + } + sv.Comment = ptr.String(jtv) + } + + case "expiryTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ExpiryTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected ExpiryTime to be a JSON Number, got %T instead", value) + + } + } + + case "resourceIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceIdentifier to be of type string, got %T instead", value) + } + sv.ResourceIdentifier = ptr.String(jtv) + } + + case "startTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected StartTime to be a JSON Number, got %T instead", value) + + } + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalShiftStatus to be of type string, got %T instead", value) + } + sv.Status = types.ZonalShiftStatus(jtv) + } + + case "zonalShiftId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalShiftId to be of type string, got %T instead", value) + } + sv.ZonalShiftId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdatePracticeRunConfiguration struct { +} + +func (*awsRestjson1_deserializeOpUpdatePracticeRunConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdatePracticeRunConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdatePracticeRunConfiguration(response, &metadata) + } + output := &UpdatePracticeRunConfigurationOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -1394,36 +1598,45 @@ func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Respo Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) - + err = awsRestjson1_deserializeOpDocumentUpdatePracticeRunConfigurationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), Snapshot: snapshot.Bytes(), } - return err } - errorBody.Seek(0, io.SeekStart) - - return output + return out, metadata, err } -func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ValidationException{} +func awsRestjson1_deserializeOpErrorUpdatePracticeRunConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -1433,24 +1646,1047 @@ func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Respo return err } - err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdatePracticeRunConfigurationOutput(v **UpdatePracticeRunConfigurationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdatePracticeRunConfigurationOutput + if *v == nil { + sv = &UpdatePracticeRunConfigurationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceName to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "practiceRunConfiguration": + if err := awsRestjson1_deserializeDocumentPracticeRunConfiguration(&sv.PracticeRunConfiguration, value); err != nil { + return err + } + + case "zonalAutoshiftStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalAutoshiftStatus to be of type string, got %T instead", value) + } + sv.ZonalAutoshiftStatus = types.ZonalAutoshiftStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateZonalAutoshiftConfiguration struct { +} + +func (*awsRestjson1_deserializeOpUpdateZonalAutoshiftConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateZonalAutoshiftConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateZonalAutoshiftConfiguration(response, &metadata) + } + output := &UpdateZonalAutoshiftConfigurationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateZonalAutoshiftConfigurationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateZonalAutoshiftConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateZonalAutoshiftConfigurationOutput(v **UpdateZonalAutoshiftConfigurationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateZonalAutoshiftConfigurationOutput + if *v == nil { + sv = &UpdateZonalAutoshiftConfigurationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "resourceIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceIdentifier to be of type string, got %T instead", value) + } + sv.ResourceIdentifier = ptr.String(jtv) + } + + case "zonalAutoshiftStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalAutoshiftStatus to be of type string, got %T instead", value) + } + sv.ZonalAutoshiftStatus = types.ZonalAutoshiftStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpUpdateZonalShift struct { +} + +func (*awsRestjson1_deserializeOpUpdateZonalShift) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUpdateZonalShift) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUpdateZonalShift(response, &metadata) + } + output := &UpdateZonalShiftOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentUpdateZonalShiftOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUpdateZonalShift(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentUpdateZonalShiftOutput(v **UpdateZonalShiftOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateZonalShiftOutput + if *v == nil { + sv = &UpdateZonalShiftOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "awayFrom": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) + } + sv.AwayFrom = ptr.String(jtv) + } + + case "comment": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalShiftComment to be of type string, got %T instead", value) + } + sv.Comment = ptr.String(jtv) + } + + case "expiryTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ExpiryTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected ExpiryTime to be a JSON Number, got %T instead", value) + + } + } + + case "resourceIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceIdentifier to be of type string, got %T instead", value) + } + sv.ResourceIdentifier = ptr.String(jtv) + } + + case "startTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected StartTime to be a JSON Number, got %T instead", value) + + } + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalShiftStatus to be of type string, got %T instead", value) + } + sv.Status = types.ZonalShiftStatus(jtv) + } + + case "zonalShiftId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalShiftId to be of type string, got %T instead", value) + } + sv.ZonalShiftId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAppliedWeights(v *map[string]float32, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]float32 + if *v == nil { + mv = map[string]float32{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal float32 + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + parsedVal = float32(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + parsedVal = float32(f64) + + default: + return fmt.Errorf("expected Weight to be a JSON Number, got %T instead", value) + + } + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentAutoshiftInResource(v **types.AutoshiftInResource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AutoshiftInResource + if *v == nil { + sv = &types.AutoshiftInResource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "appliedStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AutoshiftAppliedStatus to be of type string, got %T instead", value) + } + sv.AppliedStatus = types.AutoshiftAppliedStatus(jtv) + } + + case "awayFrom": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) + } + sv.AwayFrom = ptr.String(jtv) + } + + case "startTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected StartTime to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAutoshiftsInResource(v *[]types.AutoshiftInResource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AutoshiftInResource + if *v == nil { + cv = []types.AutoshiftInResource{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AutoshiftInResource + destAddr := &col + if err := awsRestjson1_deserializeDocumentAutoshiftInResource(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAutoshiftSummaries(v *[]types.AutoshiftSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AutoshiftSummary + if *v == nil { + cv = []types.AutoshiftSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AutoshiftSummary + destAddr := &col + if err := awsRestjson1_deserializeDocumentAutoshiftSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentAutoshiftSummary(v **types.AutoshiftSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AutoshiftSummary + if *v == nil { + sv = &types.AutoshiftSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "awayFrom": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) + } + sv.AwayFrom = ptr.String(jtv) + } + + case "endTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected ExpiryTime to be a JSON Number, got %T instead", value) + + } + } + + case "startTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected StartTime to be a JSON Number, got %T instead", value) + + } + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AutoshiftExecutionStatus to be of type string, got %T instead", value) + } + sv.Status = types.AutoshiftExecutionStatus(jtv) + } + + default: + _, _ = key, value - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), } - return err } - - errorBody.Seek(0, io.SeekStart) - - return output + *v = sv + return nil } -func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { +func awsRestjson1_deserializeDocumentAvailabilityZones(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1458,39 +2694,35 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var sv *types.AccessDeniedException + var cv []string if *v == nil { - sv = &types.AccessDeniedException{} + cv = []string{} } else { - sv = *v + cv = *v } - for key, value := range shape { - switch key { - case "message": - if value != nil { - jtv, ok := value.(string) - if !ok { - return fmt.Errorf("expected String to be of type string, got %T instead", value) - } - sv.Message = ptr.String(jtv) + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) } - - default: - _, _ = key, value - + col = jtv } + cv = append(cv, col) + } - *v = sv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAppliedWeights(v *map[string]float32, value interface{}) error { +func awsRestjson1_deserializeDocumentBlockedDates(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1498,60 +2730,35 @@ func awsRestjson1_deserializeDocumentAppliedWeights(v *map[string]float32, value return nil } - shape, ok := value.(map[string]interface{}) + shape, ok := value.([]interface{}) if !ok { return fmt.Errorf("unexpected JSON type %v", value) } - var mv map[string]float32 + var cv []string if *v == nil { - mv = map[string]float32{} + cv = []string{} } else { - mv = *v + cv = *v } - for key, value := range shape { - var parsedVal float32 + for _, value := range shape { + var col string if value != nil { - switch jtv := value.(type) { - case json.Number: - f64, err := jtv.Float64() - if err != nil { - return err - } - parsedVal = float32(f64) - - case string: - var f64 float64 - switch { - case strings.EqualFold(jtv, "NaN"): - f64 = math.NaN() - - case strings.EqualFold(jtv, "Infinity"): - f64 = math.Inf(1) - - case strings.EqualFold(jtv, "-Infinity"): - f64 = math.Inf(-1) - - default: - return fmt.Errorf("unknown JSON number value: %s", jtv) - - } - parsedVal = float32(f64) - - default: - return fmt.Errorf("expected Weight to be a JSON Number, got %T instead", value) - + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BlockedDate to be of type string, got %T instead", value) } + col = jtv } - mv[key] = parsedVal + cv = append(cv, col) } - *v = mv + *v = cv return nil } -func awsRestjson1_deserializeDocumentAvailabilityZones(v *[]string, value interface{}) error { +func awsRestjson1_deserializeDocumentBlockedWindows(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -1576,7 +2783,7 @@ func awsRestjson1_deserializeDocumentAvailabilityZones(v *[]string, value interf if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected AvailabilityZone to be of type string, got %T instead", value) + return fmt.Errorf("expected BlockedWindow to be of type string, got %T instead", value) } col = jtv } @@ -1645,6 +2852,89 @@ func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } +func awsRestjson1_deserializeDocumentControlCondition(v **types.ControlCondition, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ControlCondition + if *v == nil { + sv = &types.ControlCondition{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "alarmIdentifier": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.AlarmIdentifier = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ControlConditionType to be of type string, got %T instead", value) + } + sv.Type = types.ControlConditionType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentControlConditions(v *[]types.ControlCondition, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ControlCondition + if *v == nil { + cv = []types.ControlCondition{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ControlCondition + destAddr := &col + if err := awsRestjson1_deserializeDocumentControlCondition(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -1741,6 +3031,11 @@ func awsRestjson1_deserializeDocumentManagedResourceSummary(v **types.ManagedRes for key, value := range shape { switch key { + case "appliedWeights": + if err := awsRestjson1_deserializeDocumentAppliedWeights(&sv.AppliedWeights, value); err != nil { + return err + } + case "arn": if value != nil { jtv, ok := value.(string) @@ -1750,6 +3045,11 @@ func awsRestjson1_deserializeDocumentManagedResourceSummary(v **types.ManagedRes sv.Arn = ptr.String(jtv) } + case "autoshifts": + if err := awsRestjson1_deserializeDocumentAutoshiftsInResource(&sv.Autoshifts, value); err != nil { + return err + } + case "availabilityZones": if err := awsRestjson1_deserializeDocumentAvailabilityZones(&sv.AvailabilityZones, value); err != nil { return err @@ -1764,6 +3064,80 @@ func awsRestjson1_deserializeDocumentManagedResourceSummary(v **types.ManagedRes sv.Name = ptr.String(jtv) } + case "practiceRunStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalAutoshiftStatus to be of type string, got %T instead", value) + } + sv.PracticeRunStatus = types.ZonalAutoshiftStatus(jtv) + } + + case "zonalAutoshiftStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ZonalAutoshiftStatus to be of type string, got %T instead", value) + } + sv.ZonalAutoshiftStatus = types.ZonalAutoshiftStatus(jtv) + } + + case "zonalShifts": + if err := awsRestjson1_deserializeDocumentZonalShiftsInResource(&sv.ZonalShifts, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentPracticeRunConfiguration(v **types.PracticeRunConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.PracticeRunConfiguration + if *v == nil { + sv = &types.PracticeRunConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "blockedDates": + if err := awsRestjson1_deserializeDocumentBlockedDates(&sv.BlockedDates, value); err != nil { + return err + } + + case "blockedWindows": + if err := awsRestjson1_deserializeDocumentBlockedWindows(&sv.BlockedWindows, value); err != nil { + return err + } + + case "blockingAlarms": + if err := awsRestjson1_deserializeDocumentControlConditions(&sv.BlockingAlarms, value); err != nil { + return err + } + + case "outcomeAlarms": + if err := awsRestjson1_deserializeDocumentControlConditions(&sv.OutcomeAlarms, value); err != nil { + return err + } + default: _, _ = key, value @@ -1967,6 +3341,15 @@ func awsRestjson1_deserializeDocumentZonalShiftInResource(v **types.ZonalShiftIn } } + case "practiceRunOutcome": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PracticeRunOutcome to be of type string, got %T instead", value) + } + sv.PracticeRunOutcome = types.PracticeRunOutcome(jtv) + } + case "resourceIdentifier": if value != nil { jtv, ok := value.(string) @@ -2134,6 +3517,15 @@ func awsRestjson1_deserializeDocumentZonalShiftSummary(v **types.ZonalShiftSumma } } + case "practiceRunOutcome": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PracticeRunOutcome to be of type string, got %T instead", value) + } + sv.PracticeRunOutcome = types.PracticeRunOutcome(jtv) + } + case "resourceIdentifier": if value != nil { jtv, ok := value.(string) diff --git a/service/arczonalshift/doc.go b/service/arczonalshift/doc.go index 6b95fdfe44a..3f85324ac38 100644 --- a/service/arczonalshift/doc.go +++ b/service/arczonalshift/doc.go @@ -3,26 +3,30 @@ // Package arczonalshift provides the API client, operations, and parameter types // for AWS ARC - Zonal Shift. // -// This is the API Reference Guide for the zonal shift feature of Amazon Route 53 -// Application Recovery Controller. This guide is for developers who need detailed -// information about zonal shift API actions, data types, and errors. Zonal shift -// is in preview release for Amazon Route 53 Application Recovery Controller and is -// subject to change. Zonal shift in Route 53 ARC enables you to move traffic for a -// load balancer resource away from an Availability Zone. Starting a zonal shift -// helps your application recover immediately, for example, from a developer's bad -// code deployment or from an AWS infrastructure failure in a single Availability -// Zone, reducing the impact and time lost from an issue in one zone. Supported AWS -// resources are automatically registered with Route 53 ARC. Resources that are -// registered for zonal shifts in Route 53 ARC are managed resources in Route 53 -// ARC. You can start a zonal shift for any managed resource in your account in a -// Region. At this time, you can only start a zonal shift for Network Load -// Balancers and Application Load Balancers with cross-zone load balancing turned -// off. Zonal shifts are temporary. You must specify an expiration when you start a -// zonal shift, of up to three days initially. If you want to still keep traffic -// away from an Availability Zone, you can update the zonal shift and set a new -// expiration. You can also cancel a zonal shift, before it expires, for example, -// if you're ready to restore traffic to the Availability Zone. For more -// information about using zonal shift, see the Amazon Route 53 Application -// Recovery Controller Developer Guide (https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html) +// Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 Application +// Recovery Controller (Route 53 ARC). You can start a zonal shift to move traffic +// for a load balancer resource away from an Availability Zone to help your +// application recover quickly from an impairment in an Availability Zone. For +// example, you can recover your application from a developer's bad code deployment +// or from an Amazon Web Services infrastructure failure in a single Availability +// Zone. You can also configure zonal autoshift for a load balancer resource. Zonal +// autoshift is a capability in Route 53 ARC where Amazon Web Services shifts away +// application resource traffic from an Availability Zone, on your behalf, to help +// reduce your time to recovery during events. Amazon Web Services shifts away +// traffic for resources that are enabled for zonal autoshift whenever Amazon Web +// Services determines that there's an issue in the Availability Zone that could +// potentially affect customers. To ensure that zonal autoshift is safe for your +// application, you must also configure practice runs when you enable zonal +// autoshift for a resource. Practice runs start weekly zonal shifts for a +// resource, to shift traffic for the resource out of an Availability Zone. +// Practice runs make sure, on a regular basis, that you have enough capacity in +// all the Availability Zones in an Amazon Web Services Region for your application +// to continue to operate normally when traffic for a resource is shifted away from +// one Availability Zone. You must prescale resource capacity in all Availability +// Zones in the Region where your application is deployed, before you configure +// practice runs or enable zonal autoshift for a resource. You should not rely on +// scaling on demand when an autoshift or practice run starts. For more information +// about using zonal shift and zonal autoshift, see the Amazon Route 53 +// Application Recovery Controller Developer Guide (https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route53-recovery.html) // . package arczonalshift diff --git a/service/arczonalshift/endpoints.go b/service/arczonalshift/endpoints.go index 7549a9ec552..5523a2834fc 100644 --- a/service/arczonalshift/endpoints.go +++ b/service/arczonalshift/endpoints.go @@ -366,7 +366,7 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { + if _PartitionResult.SupportsFIPS == true { uriString := func() string { var out strings.Builder out.WriteString("https://arc-zonal-shift-fips.") diff --git a/service/arczonalshift/generated.json b/service/arczonalshift/generated.json index 5beae91cecf..880af995b79 100644 --- a/service/arczonalshift/generated.json +++ b/service/arczonalshift/generated.json @@ -10,10 +10,15 @@ "api_client.go", "api_client_test.go", "api_op_CancelZonalShift.go", + "api_op_CreatePracticeRunConfiguration.go", + "api_op_DeletePracticeRunConfiguration.go", "api_op_GetManagedResource.go", + "api_op_ListAutoshifts.go", "api_op_ListManagedResources.go", "api_op_ListZonalShifts.go", "api_op_StartZonalShift.go", + "api_op_UpdatePracticeRunConfiguration.go", + "api_op_UpdateZonalAutoshiftConfiguration.go", "api_op_UpdateZonalShift.go", "auth.go", "deserializers.go", diff --git a/service/arczonalshift/go.mod b/service/arczonalshift/go.mod index 4c3aa1878b6..acf0f2cf38e 100644 --- a/service/arczonalshift/go.mod +++ b/service/arczonalshift/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/arczonalshift go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/arczonalshift/go.sum b/service/arczonalshift/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/arczonalshift/go.sum +++ b/service/arczonalshift/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/arczonalshift/go_module_metadata.go b/service/arczonalshift/go_module_metadata.go index 8bc152a0a27..691138b6fe9 100644 --- a/service/arczonalshift/go_module_metadata.go +++ b/service/arczonalshift/go_module_metadata.go @@ -3,4 +3,4 @@ package arczonalshift // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.7.1" diff --git a/service/arczonalshift/options.go b/service/arczonalshift/options.go index 5cf64002189..033da0c2d2f 100644 --- a/service/arczonalshift/options.go +++ b/service/arczonalshift/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/arczonalshift/serializers.go b/service/arczonalshift/serializers.go index 9d602d38892..d5ae23ed3cb 100644 --- a/service/arczonalshift/serializers.go +++ b/service/arczonalshift/serializers.go @@ -6,6 +6,7 @@ import ( "bytes" "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/arczonalshift/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/encoding/httpbinding" smithyjson "github.com/aws/smithy-go/encoding/json" @@ -78,6 +79,174 @@ func awsRestjson1_serializeOpHttpBindingsCancelZonalShiftInput(v *CancelZonalShi return nil } +type awsRestjson1_serializeOpCreatePracticeRunConfiguration struct { +} + +func (*awsRestjson1_serializeOpCreatePracticeRunConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpCreatePracticeRunConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreatePracticeRunConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configuration") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentCreatePracticeRunConfigurationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsCreatePracticeRunConfigurationInput(v *CreatePracticeRunConfigurationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + return nil +} + +func awsRestjson1_serializeOpDocumentCreatePracticeRunConfigurationInput(v *CreatePracticeRunConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BlockedDates != nil { + ok := object.Key("blockedDates") + if err := awsRestjson1_serializeDocumentBlockedDates(v.BlockedDates, ok); err != nil { + return err + } + } + + if v.BlockedWindows != nil { + ok := object.Key("blockedWindows") + if err := awsRestjson1_serializeDocumentBlockedWindows(v.BlockedWindows, ok); err != nil { + return err + } + } + + if v.BlockingAlarms != nil { + ok := object.Key("blockingAlarms") + if err := awsRestjson1_serializeDocumentControlConditions(v.BlockingAlarms, ok); err != nil { + return err + } + } + + if v.OutcomeAlarms != nil { + ok := object.Key("outcomeAlarms") + if err := awsRestjson1_serializeDocumentControlConditions(v.OutcomeAlarms, ok); err != nil { + return err + } + } + + if v.ResourceIdentifier != nil { + ok := object.Key("resourceIdentifier") + ok.String(*v.ResourceIdentifier) + } + + return nil +} + +type awsRestjson1_serializeOpDeletePracticeRunConfiguration struct { +} + +func (*awsRestjson1_serializeOpDeletePracticeRunConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpDeletePracticeRunConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeletePracticeRunConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configuration/{resourceIdentifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsDeletePracticeRunConfigurationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsDeletePracticeRunConfigurationInput(v *DeletePracticeRunConfigurationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceIdentifier == nil || len(*v.ResourceIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceIdentifier must not be empty")} + } + if v.ResourceIdentifier != nil { + if err := encoder.SetURI("resourceIdentifier").String(*v.ResourceIdentifier); err != nil { + return err + } + } + + return nil +} + type awsRestjson1_serializeOpGetManagedResource struct { } @@ -143,6 +312,74 @@ func awsRestjson1_serializeOpHttpBindingsGetManagedResourceInput(v *GetManagedRe return nil } +type awsRestjson1_serializeOpListAutoshifts struct { +} + +func (*awsRestjson1_serializeOpListAutoshifts) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListAutoshifts) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListAutoshiftsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/autoshifts") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListAutoshiftsInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListAutoshiftsInput(v *ListAutoshiftsInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) + } + + if v.NextToken != nil { + encoder.SetQuery("nextToken").String(*v.NextToken) + } + + if len(v.Status) > 0 { + encoder.SetQuery("status").String(string(v.Status)) + } + + return nil +} + type awsRestjson1_serializeOpListManagedResources struct { } @@ -268,6 +505,10 @@ func awsRestjson1_serializeOpHttpBindingsListZonalShiftsInput(v *ListZonalShifts encoder.SetQuery("nextToken").String(*v.NextToken) } + if v.ResourceIdentifier != nil { + encoder.SetQuery("resourceIdentifier").String(*v.ResourceIdentifier) + } + if len(v.Status) > 0 { encoder.SetQuery("status").String(string(v.Status)) } @@ -365,6 +606,205 @@ func awsRestjson1_serializeOpDocumentStartZonalShiftInput(v *StartZonalShiftInpu return nil } +type awsRestjson1_serializeOpUpdatePracticeRunConfiguration struct { +} + +func (*awsRestjson1_serializeOpUpdatePracticeRunConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdatePracticeRunConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdatePracticeRunConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/configuration/{resourceIdentifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PATCH" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdatePracticeRunConfigurationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdatePracticeRunConfigurationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdatePracticeRunConfigurationInput(v *UpdatePracticeRunConfigurationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceIdentifier == nil || len(*v.ResourceIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceIdentifier must not be empty")} + } + if v.ResourceIdentifier != nil { + if err := encoder.SetURI("resourceIdentifier").String(*v.ResourceIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdatePracticeRunConfigurationInput(v *UpdatePracticeRunConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.BlockedDates != nil { + ok := object.Key("blockedDates") + if err := awsRestjson1_serializeDocumentBlockedDates(v.BlockedDates, ok); err != nil { + return err + } + } + + if v.BlockedWindows != nil { + ok := object.Key("blockedWindows") + if err := awsRestjson1_serializeDocumentBlockedWindows(v.BlockedWindows, ok); err != nil { + return err + } + } + + if v.BlockingAlarms != nil { + ok := object.Key("blockingAlarms") + if err := awsRestjson1_serializeDocumentControlConditions(v.BlockingAlarms, ok); err != nil { + return err + } + } + + if v.OutcomeAlarms != nil { + ok := object.Key("outcomeAlarms") + if err := awsRestjson1_serializeDocumentControlConditions(v.OutcomeAlarms, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUpdateZonalAutoshiftConfiguration struct { +} + +func (*awsRestjson1_serializeOpUpdateZonalAutoshiftConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUpdateZonalAutoshiftConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateZonalAutoshiftConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/managedresources/{resourceIdentifier}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUpdateZonalAutoshiftConfigurationInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentUpdateZonalAutoshiftConfigurationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUpdateZonalAutoshiftConfigurationInput(v *UpdateZonalAutoshiftConfigurationInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceIdentifier == nil || len(*v.ResourceIdentifier) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceIdentifier must not be empty")} + } + if v.ResourceIdentifier != nil { + if err := encoder.SetURI("resourceIdentifier").String(*v.ResourceIdentifier); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentUpdateZonalAutoshiftConfigurationInput(v *UpdateZonalAutoshiftConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.ZonalAutoshiftStatus) > 0 { + ok := object.Key("zonalAutoshiftStatus") + ok.String(string(v.ZonalAutoshiftStatus)) + } + + return nil +} + type awsRestjson1_serializeOpUpdateZonalShift struct { } @@ -457,3 +897,55 @@ func awsRestjson1_serializeOpDocumentUpdateZonalShiftInput(v *UpdateZonalShiftIn return nil } + +func awsRestjson1_serializeDocumentBlockedDates(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentBlockedWindows(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentControlCondition(v *types.ControlCondition, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AlarmIdentifier != nil { + ok := object.Key("alarmIdentifier") + ok.String(*v.AlarmIdentifier) + } + + if len(v.Type) > 0 { + ok := object.Key("type") + ok.String(string(v.Type)) + } + + return nil +} + +func awsRestjson1_serializeDocumentControlConditions(v []types.ControlCondition, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentControlCondition(&v[i], av); err != nil { + return err + } + } + return nil +} diff --git a/service/arczonalshift/types/enums.go b/service/arczonalshift/types/enums.go index 727011709b5..b7c13e1d146 100644 --- a/service/arczonalshift/types/enums.go +++ b/service/arczonalshift/types/enums.go @@ -20,13 +20,52 @@ func (AppliedStatus) Values() []AppliedStatus { } } +type AutoshiftAppliedStatus string + +// Enum values for AutoshiftAppliedStatus +const ( + AutoshiftAppliedStatusApplied AutoshiftAppliedStatus = "APPLIED" + AutoshiftAppliedStatusNotApplied AutoshiftAppliedStatus = "NOT_APPLIED" +) + +// Values returns all known values for AutoshiftAppliedStatus. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (AutoshiftAppliedStatus) Values() []AutoshiftAppliedStatus { + return []AutoshiftAppliedStatus{ + "APPLIED", + "NOT_APPLIED", + } +} + +type AutoshiftExecutionStatus string + +// Enum values for AutoshiftExecutionStatus +const ( + AutoshiftExecutionStatusActive AutoshiftExecutionStatus = "ACTIVE" + AutoshiftExecutionStatusCompleted AutoshiftExecutionStatus = "COMPLETED" +) + +// Values returns all known values for AutoshiftExecutionStatus. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (AutoshiftExecutionStatus) Values() []AutoshiftExecutionStatus { + return []AutoshiftExecutionStatus{ + "ACTIVE", + "COMPLETED", + } +} + type ConflictExceptionReason string // Enum values for ConflictExceptionReason const ( - ConflictExceptionReasonZonalShiftAlreadyExists ConflictExceptionReason = "ZonalShiftAlreadyExists" - ConflictExceptionReasonZonalShiftStatusNotActive ConflictExceptionReason = "ZonalShiftStatusNotActive" - ConflictExceptionReasonSimultaneousZonalShiftsConflict ConflictExceptionReason = "SimultaneousZonalShiftsConflict" + ConflictExceptionReasonZonalShiftAlreadyExists ConflictExceptionReason = "ZonalShiftAlreadyExists" + ConflictExceptionReasonZonalShiftStatusNotActive ConflictExceptionReason = "ZonalShiftStatusNotActive" + ConflictExceptionReasonSimultaneousZonalShiftsConflict ConflictExceptionReason = "SimultaneousZonalShiftsConflict" + ConflictExceptionReasonPracticeConfigurationAlreadyExists ConflictExceptionReason = "PracticeConfigurationAlreadyExists" + ConflictExceptionReasonAutoshiftEnabled ConflictExceptionReason = "AutoShiftEnabled" + ConflictExceptionReasonPracticeConfigurationDoesNotExist ConflictExceptionReason = "PracticeConfigurationDoesNotExist" ) // Values returns all known values for ConflictExceptionReason. Note that this can @@ -37,6 +76,47 @@ func (ConflictExceptionReason) Values() []ConflictExceptionReason { "ZonalShiftAlreadyExists", "ZonalShiftStatusNotActive", "SimultaneousZonalShiftsConflict", + "PracticeConfigurationAlreadyExists", + "AutoShiftEnabled", + "PracticeConfigurationDoesNotExist", + } +} + +type ControlConditionType string + +// Enum values for ControlConditionType +const ( + ControlConditionTypeCloudwatch ControlConditionType = "CLOUDWATCH" +) + +// Values returns all known values for ControlConditionType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ControlConditionType) Values() []ControlConditionType { + return []ControlConditionType{ + "CLOUDWATCH", + } +} + +type PracticeRunOutcome string + +// Enum values for PracticeRunOutcome +const ( + PracticeRunOutcomeFailed PracticeRunOutcome = "FAILED" + PracticeRunOutcomeInterrupted PracticeRunOutcome = "INTERRUPTED" + PracticeRunOutcomePending PracticeRunOutcome = "PENDING" + PracticeRunOutcomeSucceeded PracticeRunOutcome = "SUCCEEDED" +) + +// Values returns all known values for PracticeRunOutcome. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (PracticeRunOutcome) Values() []PracticeRunOutcome { + return []PracticeRunOutcome{ + "FAILED", + "INTERRUPTED", + "PENDING", + "SUCCEEDED", } } @@ -51,6 +131,9 @@ const ( ValidationExceptionReasonInvalidResourceIdentifier ValidationExceptionReason = "InvalidResourceIdentifier" ValidationExceptionReasonInvalidAz ValidationExceptionReason = "InvalidAz" ValidationExceptionReasonUnsupportedAz ValidationExceptionReason = "UnsupportedAz" + ValidationExceptionReasonInvalidAlarmCondition ValidationExceptionReason = "InvalidAlarmCondition" + ValidationExceptionReasonInvalidConditionType ValidationExceptionReason = "InvalidConditionType" + ValidationExceptionReasonInvalidPracticeBlocker ValidationExceptionReason = "InvalidPracticeBlocker" ) // Values returns all known values for ValidationExceptionReason. Note that this @@ -65,6 +148,27 @@ func (ValidationExceptionReason) Values() []ValidationExceptionReason { "InvalidResourceIdentifier", "InvalidAz", "UnsupportedAz", + "InvalidAlarmCondition", + "InvalidConditionType", + "InvalidPracticeBlocker", + } +} + +type ZonalAutoshiftStatus string + +// Enum values for ZonalAutoshiftStatus +const ( + ZonalAutoshiftStatusEnabled ZonalAutoshiftStatus = "ENABLED" + ZonalAutoshiftStatusDisabled ZonalAutoshiftStatus = "DISABLED" +) + +// Values returns all known values for ZonalAutoshiftStatus. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ZonalAutoshiftStatus) Values() []ZonalAutoshiftStatus { + return []ZonalAutoshiftStatus{ + "ENABLED", + "DISABLED", } } diff --git a/service/arczonalshift/types/errors.go b/service/arczonalshift/types/errors.go index 6942baeb852..8971886ee74 100644 --- a/service/arczonalshift/types/errors.go +++ b/service/arczonalshift/types/errors.go @@ -141,7 +141,8 @@ func (e *ThrottlingException) ErrorCode() string { } func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The input fails to satisfy the constraints specified by an AWS service. +// The input fails to satisfy the constraints specified by an Amazon Web Services +// service. type ValidationException struct { Message *string diff --git a/service/arczonalshift/types/types.go b/service/arczonalshift/types/types.go index 8b28bf260b1..7f7b8c9bb98 100644 --- a/service/arczonalshift/types/types.go +++ b/service/arczonalshift/types/types.go @@ -7,13 +7,119 @@ import ( "time" ) -// A complex structure for a managed resource in an account. A managed resource is -// a Network Load Balancer or Application Load Balancer that has been registered -// with Route 53 ARC by Elastic Load Balancing. You can start a zonal shift in -// Route 53 ARC for a managed resource to temporarily move traffic for the resource -// away from an Availability Zone in an AWS Region. At this time, you can only -// start a zonal shift for Network Load Balancers and Application Load Balancers -// with cross-zone load balancing turned off. +// A complex structure that lists an autoshift that is currently active for a +// managed resource and information about the autoshift. For more information, see +// How zonal autoshift and practice runs work (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.how-it-works.html) +// in the Amazon Route 53 Application Recovery Controller Developer Guide. +type AutoshiftInResource struct { + + // The appliedStatus field specifies which application traffic shift is in effect + // for a resource when there is more than one traffic shift active. There can be + // more than one application traffic shift in progress at the same time - that is, + // practice run zonal shifts, customer-started zonal shifts, or an autoshift. The + // appliedStatus field for an autoshift for a resource can have one of two values: + // APPLIED or NOT_APPLIED . The zonal shift or autoshift that is currently in + // effect for the resource has an applied status set to APPLIED . The overall + // principle for precedence is that zonal shifts that you start as a customer take + // precedence autoshifts, which take precedence over practice runs. That is, + // customer-started zonal shifts > autoshifts > practice run zonal shifts. For more + // information, see How zonal autoshift and practice runs work (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.how-it-works.html) + // in the Amazon Route 53 Application Recovery Controller Developer Guide. + // + // This member is required. + AppliedStatus AutoshiftAppliedStatus + + // The Availability Zone that traffic is shifted away from for a resource, when + // Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + // the resource is instead directed to other Availability Zones in the Amazon Web + // Services Region. An autoshift can end for a resource, for example, when Amazon + // Web Services ends the autoshift for the Availability Zone or when you disable + // zonal autoshift for the resource. + // + // This member is required. + AwayFrom *string + + // The time (UTC) when the autoshift started. + // + // This member is required. + StartTime *time.Time + + noSmithyDocumentSerde +} + +// Information about an autoshift. Amazon Web Services starts an autoshift to +// temporarily move traffic for a resource away from an Availability Zone in an +// Amazon Web Services Region when Amazon Web Services determines that there's an +// issue in the Availability Zone that could potentially affect customers. You can +// configure zonal autoshift in Route 53 ARC for managed resources in your Amazon +// Web Services account in a Region. Supported Amazon Web Services resources are +// automatically registered with Route 53 ARC. Autoshifts are temporary. When the +// Availability Zone recovers, Amazon Web Services ends the autoshift, and traffic +// for the resource is no longer directed to the other Availability Zones in the +// Region. You can stop an autoshift for a resource by disabling zonal autoshift. +type AutoshiftSummary struct { + + // The Availability Zone that traffic is shifted away from for a resource when + // Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for + // the resource is instead directed to other Availability Zones in the Amazon Web + // Services Region. An autoshift can end for a resource, for example, when Amazon + // Web Services ends the autoshift for the Availability Zone or when you disable + // zonal autoshift for the resource. + // + // This member is required. + AwayFrom *string + + // The time (in UTC) when the autoshift ended. + // + // This member is required. + EndTime *time.Time + + // The time (in UTC) when the autoshift started. + // + // This member is required. + StartTime *time.Time + + // The status for an autoshift. + // + // This member is required. + Status AutoshiftExecutionStatus + + noSmithyDocumentSerde +} + +// A control condition is an alarm that you specify for a practice run. When you +// configure practice runs with zonal autoshift for a resource, you specify Amazon +// CloudWatch alarms, which you create in CloudWatch to use with the practice run. +// The alarms that you specify are an outcome alarm, to monitor application health +// during practice runs and, optionally, a blocking alarm, to block practice runs +// from starting. Control condition alarms do not apply for autoshifts. For more +// information, see Considerations when you configure zonal autoshift (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.considerations.html) +// in the Amazon Route 53 Application Recovery Controller Developer Guide. +type ControlCondition struct { + + // The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify + // as a control condition for a practice run. + // + // This member is required. + AlarmIdentifier *string + + // The type of alarm specified for a practice run. The only valid value is + // CLOUDWATCH . + // + // This member is required. + Type ControlConditionType + + noSmithyDocumentSerde +} + +// A complex structure for a managed resource in an Amazon Web Services account +// with information about zonal shifts and autoshifts. A managed resource is a load +// balancer that has been registered with Route 53 ARC by Elastic Load Balancing. +// You can start a zonal shift in Route 53 ARC for a managed resource to +// temporarily move traffic for the resource away from an Availability Zone in an +// Amazon Web Services Region. You can also configure zonal autoshift for a managed +// resource. At this time, managed resources are Network Load Balancers and +// Application Load Balancers with cross-zone load balancing turned off. type ManagedResourceSummary struct { // The Availability Zones that a resource is deployed in. @@ -21,12 +127,67 @@ type ManagedResourceSummary struct { // This member is required. AvailabilityZones []string + // A collection of key-value pairs that indicate whether resources are active in + // Availability Zones or not. The key name is the Availability Zone where the + // resource is deployed. The value is 1 or 0. + AppliedWeights map[string]float32 + // The Amazon Resource Name (ARN) for the managed resource. Arn *string + // An array of the autoshifts that have been completed for a resource. + Autoshifts []AutoshiftInResource + // The name of the managed resource. Name *string + // This status tracks whether a practice run configuration exists for a resource. + // When you configure a practice run for a resource so that a practice run + // configuration exists, Route 53 ARC sets this value to ENABLED . If a you have + // not configured a practice run for the resource, or delete a practice run + // configuration, Route 53 ARC sets the value to DISABLED . Route 53 ARC updates + // this status; you can't set a practice run status to ENABLED or DISABLED . + PracticeRunStatus ZonalAutoshiftStatus + + // The status of autoshift for a resource. When you configure zonal autoshift for + // a resource, you can set the value of the status to ENABLED or DISABLED . + ZonalAutoshiftStatus ZonalAutoshiftStatus + + // An array of the zonal shifts for a resource. + ZonalShifts []ZonalShiftInResource + + noSmithyDocumentSerde +} + +// A practice run configuration for a resource includes the Amazon CloudWatch +// alarms that you've specified for a practice run, as well as any blocked dates or +// blocked windows for the practice run. You can update or delete a practice run +// configuration. Before you delete a practice run configuration, you must disable +// zonal autoshift for the resource. A practice run configuration is required when +// zonal autoshift is enabled. +type PracticeRunConfiguration struct { + + // The outcome alarm for practice runs is an alarm that you specify that ends a + // practice run when the alarm is in an ALARM state. + // + // This member is required. + OutcomeAlarms []ControlCondition + + // An array of one or more dates that you can specify when Amazon Web Services + // does not start practice runs for a resource. Specify blocked dates, in UTC, in + // the format YYYY-MM-DD , separated by spaces. + BlockedDates []string + + // An array of one or more windows of days and times that you can block Route 53 + // ARC from starting practice runs for a resource. Specify the blocked windows in + // UTC, using the format DAY:HH:MM-DAY:HH:MM , separated by spaces. For example, + // MON:18:30-MON:19:30 TUE:18:30-TUE:19:30 . + BlockedWindows []string + + // The blocking alarm for practice runs is an optional alarm that you can specify + // that blocks practice runs when the alarm is in an ALARM state. + BlockingAlarms []ControlCondition + noSmithyDocumentSerde } @@ -34,15 +195,26 @@ type ManagedResourceSummary struct { // their statuses for the resource. type ZonalShiftInResource struct { - // An appliedStatus for a zonal shift for a resource can have one of two values: - // APPLIED or NOT_APPLIED . + // The appliedStatus field specifies which application traffic shift is in effect + // for a resource when there is more than one traffic shift active. There can be + // more than one application traffic shift in progress at the same time - that is, + // practice run zonal shifts, customer-started zonal shifts, or an autoshift. The + // appliedStatus field for an autoshift for a resource can have one of two values: + // APPLIED or NOT_APPLIED . The zonal shift or autoshift that is currently in + // effect for the resource has an applied status set to APPLIED . The overall + // principle for precedence is that zonal shifts that you start as a customer take + // precedence autoshifts, which take precedence over practice runs. That is, + // customer-started zonal shifts > autoshifts > practice run zonal shifts. For more + // information, see How zonal autoshift and practice runs work (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.how-it-works.html) + // in the Amazon Route 53 Application Recovery Controller Developer Guide. // // This member is required. AppliedStatus AppliedStatus // The Availability Zone that traffic is moved away from for a resource when you // start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - // the resource is instead moved to other Availability Zones in the AWS Region. + // the resource is instead moved to other Availability Zones in the Amazon Web + // Services Region. // // This member is required. AwayFrom *string @@ -54,15 +226,15 @@ type ZonalShiftInResource struct { // This member is required. Comment *string - // The expiry time (expiration time) for the zonal shift. A zonal shift is - // temporary and must be set to expire when you start the zonal shift. You can - // initially set a zonal shift to expire in a maximum of three days (72 hours). + // The expiry time (expiration time) for a customer-started zonal shift. A zonal + // shift is temporary and must be set to expire when you start the zonal shift. You + // can initially set a zonal shift to expire in a maximum of three days (72 hours). // However, you can update a zonal shift to set a new expiration at any time. When // you start a zonal shift, you specify how long you want it to be active, which // Route 53 ARC converts to an expiry time (expiration time). You can cancel a - // zonal shift, for example, if you're ready to restore traffic to the Availability - // Zone. Or you can update the zonal shift to specify another length of time to - // expire in. + // zonal shift when you're ready to restore traffic to the Availability Zone, or + // just wait for it to expire. Or you can update the zonal shift to specify another + // length of time to expire in. // // This member is required. ExpiryTime *time.Time @@ -75,7 +247,7 @@ type ZonalShiftInResource struct { // This member is required. ResourceIdentifier *string - // The time (UTC) when the zonal shift is started. + // The time (UTC) when the zonal shift starts. // // This member is required. StartTime *time.Time @@ -85,26 +257,40 @@ type ZonalShiftInResource struct { // This member is required. ZonalShiftId *string + // The outcome, or end state, returned for a practice run. The following values + // can be returned: + // - PENDING: Outcome value when a practice run is in progress. + // - SUCCEEDED: Outcome value when the outcome alarm specified for the practice + // run configuration does not go into an ALARM state during the practice run, and + // the practice run was not interrupted before it completed the expected 30 minute + // zonal shift. + // - INTERRUPTED: Outcome value when the practice run was stopped before the + // expected 30 minute zonal shift duration, or there was another problem with the + // practice run that created an inconclusive outcome. + // - FAILED: Outcome value when the outcome alarm specified for the practice run + // configuration goes into an ALARM state during the practice run, and the + // practice run was not interrupted before it completed. + // For more information about practice run outcomes, see Considerations when you + // configure zonal autoshift (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.configure.html) + // in the Amazon Route 53 Application Recovery Controller Developer Guide. + PracticeRunOutcome PracticeRunOutcome + noSmithyDocumentSerde } -// You start a zonal shift to temporarily move load balancer traffic away from an -// Availability Zone in a AWS Region. A zonal shift helps your application recover -// immediately, for example, from a developer's bad code deployment or from an AWS -// infrastructure failure in a single Availability Zone. You can start a zonal -// shift in Route 53 ARC only for managed resources in your account in an AWS -// Region. Supported AWS resources are automatically registered with Route 53 ARC. -// Zonal shifts are temporary. A zonal shift can be active for up to three days (72 -// hours). When you start a zonal shift, you specify how long you want it to be -// active, which Amazon Route 53 Application Recovery Controller converts to an -// expiry time (expiration time). You can cancel a zonal shift, for example, if -// you're ready to restore traffic to the Availability Zone. Or you can extend the -// zonal shift by updating the expiration so the zonal shift is active longer. +// Lists information about zonal shifts in Amazon Route 53 Application Recovery +// Controller, including zonal shifts that you start yourself and zonal shifts that +// Route 53 ARC starts on your behalf for practice runs with zonal autoshift. Zonal +// shifts are temporary, including customer-started zonal shifts and the zonal +// autoshift practice run zonal shifts that Route 53 ARC starts weekly, on your +// behalf. A zonal shift that a customer starts can be active for up to three days +// (72 hours). A practice run zonal shift has a 30 minute duration. type ZonalShiftSummary struct { // The Availability Zone that traffic is moved away from for a resource when you // start a zonal shift. Until the zonal shift expires or you cancel it, traffic for - // the resource is instead moved to other Availability Zones in the AWS Region. + // the resource is instead moved to other Availability Zones in the Amazon Web + // Services Region. // // This member is required. AwayFrom *string @@ -116,15 +302,15 @@ type ZonalShiftSummary struct { // This member is required. Comment *string - // The expiry time (expiration time) for the zonal shift. A zonal shift is - // temporary and must be set to expire when you start the zonal shift. You can - // initially set a zonal shift to expire in a maximum of three days (72 hours). + // The expiry time (expiration time) for a customer-started zonal shift. A zonal + // shift is temporary and must be set to expire when you start the zonal shift. You + // can initially set a zonal shift to expire in a maximum of three days (72 hours). // However, you can update a zonal shift to set a new expiration at any time. When // you start a zonal shift, you specify how long you want it to be active, which // Route 53 ARC converts to an expiry time (expiration time). You can cancel a - // zonal shift, for example, if you're ready to restore traffic to the Availability - // Zone. Or you can update the zonal shift to specify another length of time to - // expire in. + // zonal shift when you're ready to restore traffic to the Availability Zone, or + // just wait for it to expire. Or you can update the zonal shift to specify another + // length of time to expire in. // // This member is required. ExpiryTime *time.Time @@ -137,14 +323,14 @@ type ZonalShiftSummary struct { // This member is required. ResourceIdentifier *string - // The time (UTC) when the zonal shift is started. + // The time (UTC) when the zonal shift starts. // // This member is required. StartTime *time.Time // A status for a zonal shift. The Status for a zonal shift can have one of the // following values: - // - ACTIVE: The zonal shift is started and active. + // - ACTIVE: The zonal shift has been started and active. // - EXPIRED: The zonal shift has expired (the expiry time was exceeded). // - CANCELED: The zonal shift was canceled. // @@ -156,6 +342,23 @@ type ZonalShiftSummary struct { // This member is required. ZonalShiftId *string + // The outcome, or end state, of a practice run. The following values can be + // returned: + // - PENDING: Outcome value when the practice run is in progress. + // - SUCCEEDED: Outcome value when the outcome alarm specified for the practice + // run configuration does not go into an ALARM state during the practice run, and + // the practice run was not interrupted before it completed. + // - INTERRUPTED: Outcome value when the practice run did not run for the + // expected 30 minutes or there was another problem with the practice run that + // created an inconclusive outcome. + // - FAILED: Outcome value when the outcome alarm specified for the practice run + // configuration goes into an ALARM state during the practice run, and the + // practice run was not interrupted before it completed. + // For more information about practice run outcomes, see Considerations when you + // configure zonal autoshift (https://docs.aws.amazon.com/r53recovery/latest/dg/arc-zonal-autoshift.configure.html) + // in the Amazon Route 53 Application Recovery Controller Developer Guide. + PracticeRunOutcome PracticeRunOutcome + noSmithyDocumentSerde } diff --git a/service/arczonalshift/validators.go b/service/arczonalshift/validators.go index 6aa30cd7ebe..e4086034975 100644 --- a/service/arczonalshift/validators.go +++ b/service/arczonalshift/validators.go @@ -5,6 +5,7 @@ package arczonalshift import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/arczonalshift/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -29,6 +30,46 @@ func (m *validateOpCancelZonalShift) HandleInitialize(ctx context.Context, in mi return next.HandleInitialize(ctx, in) } +type validateOpCreatePracticeRunConfiguration struct { +} + +func (*validateOpCreatePracticeRunConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreatePracticeRunConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreatePracticeRunConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreatePracticeRunConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeletePracticeRunConfiguration struct { +} + +func (*validateOpDeletePracticeRunConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeletePracticeRunConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeletePracticeRunConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeletePracticeRunConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetManagedResource struct { } @@ -69,6 +110,46 @@ func (m *validateOpStartZonalShift) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpUpdatePracticeRunConfiguration struct { +} + +func (*validateOpUpdatePracticeRunConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdatePracticeRunConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdatePracticeRunConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdatePracticeRunConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateZonalAutoshiftConfiguration struct { +} + +func (*validateOpUpdateZonalAutoshiftConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateZonalAutoshiftConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateZonalAutoshiftConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateZonalAutoshiftConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateZonalShift struct { } @@ -93,6 +174,14 @@ func addOpCancelZonalShiftValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCancelZonalShift{}, middleware.After) } +func addOpCreatePracticeRunConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreatePracticeRunConfiguration{}, middleware.After) +} + +func addOpDeletePracticeRunConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeletePracticeRunConfiguration{}, middleware.After) +} + func addOpGetManagedResourceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetManagedResource{}, middleware.After) } @@ -101,10 +190,53 @@ func addOpStartZonalShiftValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpStartZonalShift{}, middleware.After) } +func addOpUpdatePracticeRunConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdatePracticeRunConfiguration{}, middleware.After) +} + +func addOpUpdateZonalAutoshiftConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateZonalAutoshiftConfiguration{}, middleware.After) +} + func addOpUpdateZonalShiftValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateZonalShift{}, middleware.After) } +func validateControlCondition(v *types.ControlCondition) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ControlCondition"} + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if v.AlarmIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("AlarmIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateControlConditions(v []types.ControlCondition) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ControlConditions"} + for i := range v { + if err := validateControlCondition(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCancelZonalShiftInput(v *CancelZonalShiftInput) error { if v == nil { return nil @@ -120,6 +252,48 @@ func validateOpCancelZonalShiftInput(v *CancelZonalShiftInput) error { } } +func validateOpCreatePracticeRunConfigurationInput(v *CreatePracticeRunConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreatePracticeRunConfigurationInput"} + if v.ResourceIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceIdentifier")) + } + if v.BlockingAlarms != nil { + if err := validateControlConditions(v.BlockingAlarms); err != nil { + invalidParams.AddNested("BlockingAlarms", err.(smithy.InvalidParamsError)) + } + } + if v.OutcomeAlarms == nil { + invalidParams.Add(smithy.NewErrParamRequired("OutcomeAlarms")) + } else if v.OutcomeAlarms != nil { + if err := validateControlConditions(v.OutcomeAlarms); err != nil { + invalidParams.AddNested("OutcomeAlarms", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeletePracticeRunConfigurationInput(v *DeletePracticeRunConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeletePracticeRunConfigurationInput"} + if v.ResourceIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceIdentifier")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetManagedResourceInput(v *GetManagedResourceInput) error { if v == nil { return nil @@ -159,6 +333,49 @@ func validateOpStartZonalShiftInput(v *StartZonalShiftInput) error { } } +func validateOpUpdatePracticeRunConfigurationInput(v *UpdatePracticeRunConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdatePracticeRunConfigurationInput"} + if v.ResourceIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceIdentifier")) + } + if v.BlockingAlarms != nil { + if err := validateControlConditions(v.BlockingAlarms); err != nil { + invalidParams.AddNested("BlockingAlarms", err.(smithy.InvalidParamsError)) + } + } + if v.OutcomeAlarms != nil { + if err := validateControlConditions(v.OutcomeAlarms); err != nil { + invalidParams.AddNested("OutcomeAlarms", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateZonalAutoshiftConfigurationInput(v *UpdateZonalAutoshiftConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateZonalAutoshiftConfigurationInput"} + if v.ResourceIdentifier == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceIdentifier")) + } + if len(v.ZonalAutoshiftStatus) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("ZonalAutoshiftStatus")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateZonalShiftInput(v *UpdateZonalShiftInput) error { if v == nil { return nil diff --git a/service/athena/CHANGELOG.md b/service/athena/CHANGELOG.md index d060ebcb10e..f8e223cebf7 100644 --- a/service/athena/CHANGELOG.md +++ b/service/athena/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.36.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.36.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/athena/api_client.go b/service/athena/api_client.go index b3e44655433..0f505874864 100644 --- a/service/athena/api_client.go +++ b/service/athena/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/athena/auth.go b/service/athena/auth.go index f6f9778ca4e..f857eab9e9c 100644 --- a/service/athena/auth.go +++ b/service/athena/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/athena/go.mod b/service/athena/go.mod index eca21876201..f204d8849c2 100644 --- a/service/athena/go.mod +++ b/service/athena/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/athena go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/athena/go.sum b/service/athena/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/athena/go.sum +++ b/service/athena/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/athena/go_module_metadata.go b/service/athena/go_module_metadata.go index 1dee4c3e2e2..55f96ae5fb9 100644 --- a/service/athena/go_module_metadata.go +++ b/service/athena/go_module_metadata.go @@ -3,4 +3,4 @@ package athena // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.0" +const goModuleVersion = "1.36.2" diff --git a/service/athena/options.go b/service/athena/options.go index a84436662f1..73f834130c0 100644 --- a/service/athena/options.go +++ b/service/athena/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/auditmanager/CHANGELOG.md b/service/auditmanager/CHANGELOG.md index 0c2de1476b3..bc65a4b5f81 100644 --- a/service/auditmanager/CHANGELOG.md +++ b/service/auditmanager/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.30.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.30.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/auditmanager/api_client.go b/service/auditmanager/api_client.go index a69ae74f87d..be5f0e4492e 100644 --- a/service/auditmanager/api_client.go +++ b/service/auditmanager/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/auditmanager/auth.go b/service/auditmanager/auth.go index a20e1a14636..9401f30a98d 100644 --- a/service/auditmanager/auth.go +++ b/service/auditmanager/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/auditmanager/go.mod b/service/auditmanager/go.mod index 1ef77a805bc..43a99a88cc0 100644 --- a/service/auditmanager/go.mod +++ b/service/auditmanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/auditmanager go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/auditmanager/go.sum b/service/auditmanager/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/auditmanager/go.sum +++ b/service/auditmanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/auditmanager/go_module_metadata.go b/service/auditmanager/go_module_metadata.go index 300dcadddd8..c441a7f8d2d 100644 --- a/service/auditmanager/go_module_metadata.go +++ b/service/auditmanager/go_module_metadata.go @@ -3,4 +3,4 @@ package auditmanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.0" +const goModuleVersion = "1.30.2" diff --git a/service/auditmanager/options.go b/service/auditmanager/options.go index a1b9fd357a8..1967bce1f94 100644 --- a/service/auditmanager/options.go +++ b/service/auditmanager/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/autoscaling/CHANGELOG.md b/service/autoscaling/CHANGELOG.md index 206fdab6c81..de8ca43b6f2 100644 --- a/service/autoscaling/CHANGELOG.md +++ b/service/autoscaling/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.36.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.36.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/autoscaling/api_client.go b/service/autoscaling/api_client.go index c83f2b98215..d9bdc568f9e 100644 --- a/service/autoscaling/api_client.go +++ b/service/autoscaling/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/autoscaling/auth.go b/service/autoscaling/auth.go index 5ccd6871c6c..f77b335209e 100644 --- a/service/autoscaling/auth.go +++ b/service/autoscaling/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/autoscaling/go.mod b/service/autoscaling/go.mod index f0e8b0f4341..1d29602c398 100644 --- a/service/autoscaling/go.mod +++ b/service/autoscaling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/autoscaling go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/autoscaling/go.sum b/service/autoscaling/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/autoscaling/go.sum +++ b/service/autoscaling/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/autoscaling/go_module_metadata.go b/service/autoscaling/go_module_metadata.go index f37eec512f4..1de5a7c0caa 100644 --- a/service/autoscaling/go_module_metadata.go +++ b/service/autoscaling/go_module_metadata.go @@ -3,4 +3,4 @@ package autoscaling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.0" +const goModuleVersion = "1.36.2" diff --git a/service/autoscaling/options.go b/service/autoscaling/options.go index 53e11b6fad6..049bac57942 100644 --- a/service/autoscaling/options.go +++ b/service/autoscaling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/autoscalingplans/CHANGELOG.md b/service/autoscalingplans/CHANGELOG.md index bf91c2028b3..de419b2cd69 100644 --- a/service/autoscalingplans/CHANGELOG.md +++ b/service/autoscalingplans/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/autoscalingplans/api_client.go b/service/autoscalingplans/api_client.go index ab7b20db708..47bee9739df 100644 --- a/service/autoscalingplans/api_client.go +++ b/service/autoscalingplans/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/autoscalingplans/auth.go b/service/autoscalingplans/auth.go index 0b83f17e773..5c1f5a76fa5 100644 --- a/service/autoscalingplans/auth.go +++ b/service/autoscalingplans/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/autoscalingplans/go.mod b/service/autoscalingplans/go.mod index ad78dc856ac..5af8aeb5cf7 100644 --- a/service/autoscalingplans/go.mod +++ b/service/autoscalingplans/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/autoscalingplans go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/autoscalingplans/go.sum b/service/autoscalingplans/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/autoscalingplans/go.sum +++ b/service/autoscalingplans/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/autoscalingplans/go_module_metadata.go b/service/autoscalingplans/go_module_metadata.go index 285219d1313..dd899628fb2 100644 --- a/service/autoscalingplans/go_module_metadata.go +++ b/service/autoscalingplans/go_module_metadata.go @@ -3,4 +3,4 @@ package autoscalingplans // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/autoscalingplans/options.go b/service/autoscalingplans/options.go index 3c7d3bcca76..40dc129b6d9 100644 --- a/service/autoscalingplans/options.go +++ b/service/autoscalingplans/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/b2bi/CHANGELOG.md b/service/b2bi/CHANGELOG.md index 9ecc436f87c..489454a7d46 100644 --- a/service/b2bi/CHANGELOG.md +++ b/service/b2bi/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.0.0-preview.5 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.0.0-preview.4 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.0-preview.3 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/b2bi/api_client.go b/service/b2bi/api_client.go index 4211a7aca53..c2f2ef76042 100644 --- a/service/b2bi/api_client.go +++ b/service/b2bi/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/b2bi/auth.go b/service/b2bi/auth.go index 1f5c1ad4489..82d89684cb8 100644 --- a/service/b2bi/auth.go +++ b/service/b2bi/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/b2bi/go.mod b/service/b2bi/go.mod index c26d9abe5ac..e792bbc85c5 100644 --- a/service/b2bi/go.mod +++ b/service/b2bi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/b2bi go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/b2bi/go.sum b/service/b2bi/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/b2bi/go.sum +++ b/service/b2bi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/b2bi/go_module_metadata.go b/service/b2bi/go_module_metadata.go index 52d88daa6f3..4428b8d180a 100644 --- a/service/b2bi/go_module_metadata.go +++ b/service/b2bi/go_module_metadata.go @@ -3,4 +3,4 @@ package b2bi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.0-preview.3" +const goModuleVersion = "1.0.0-preview.5" diff --git a/service/b2bi/options.go b/service/b2bi/options.go index 39d08cac7d0..676eb81bd15 100644 --- a/service/b2bi/options.go +++ b/service/b2bi/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/backup/CHANGELOG.md b/service/backup/CHANGELOG.md index 2e125aacd42..3bee6dd39fb 100644 --- a/service/backup/CHANGELOG.md +++ b/service/backup/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.30.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.30.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/backup/api_client.go b/service/backup/api_client.go index 347e55ecab6..4a4131bcf00 100644 --- a/service/backup/api_client.go +++ b/service/backup/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/backup/auth.go b/service/backup/auth.go index ef63c4ce5fd..03f26522cc8 100644 --- a/service/backup/auth.go +++ b/service/backup/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/backup/go.mod b/service/backup/go.mod index dcf18242b65..59b90af1015 100644 --- a/service/backup/go.mod +++ b/service/backup/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backup go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backup/go.sum b/service/backup/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/backup/go.sum +++ b/service/backup/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backup/go_module_metadata.go b/service/backup/go_module_metadata.go index 8abfa9b6f7f..7a676de0879 100644 --- a/service/backup/go_module_metadata.go +++ b/service/backup/go_module_metadata.go @@ -3,4 +3,4 @@ package backup // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.0" +const goModuleVersion = "1.30.2" diff --git a/service/backup/options.go b/service/backup/options.go index 42ea267d357..09a5be872a9 100644 --- a/service/backup/options.go +++ b/service/backup/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/backupgateway/CHANGELOG.md b/service/backupgateway/CHANGELOG.md index 08344ac2e77..5c6c62fc80c 100644 --- a/service/backupgateway/CHANGELOG.md +++ b/service/backupgateway/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.14.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.14.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/backupgateway/api_client.go b/service/backupgateway/api_client.go index 169329004ab..43e14ea837e 100644 --- a/service/backupgateway/api_client.go +++ b/service/backupgateway/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/backupgateway/auth.go b/service/backupgateway/auth.go index 9d09150a5ac..9c28a00844f 100644 --- a/service/backupgateway/auth.go +++ b/service/backupgateway/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/backupgateway/go.mod b/service/backupgateway/go.mod index 24a516f35d5..0621603bead 100644 --- a/service/backupgateway/go.mod +++ b/service/backupgateway/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backupgateway go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backupgateway/go.sum b/service/backupgateway/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/backupgateway/go.sum +++ b/service/backupgateway/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupgateway/go_module_metadata.go b/service/backupgateway/go_module_metadata.go index 939230158b9..684c7976303 100644 --- a/service/backupgateway/go_module_metadata.go +++ b/service/backupgateway/go_module_metadata.go @@ -3,4 +3,4 @@ package backupgateway // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.14.2" diff --git a/service/backupgateway/options.go b/service/backupgateway/options.go index 9f57b721aee..3dabc9dbace 100644 --- a/service/backupgateway/options.go +++ b/service/backupgateway/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/backupstorage/CHANGELOG.md b/service/backupstorage/CHANGELOG.md index 22c2a52b5dd..8ee517faf46 100644 --- a/service/backupstorage/CHANGELOG.md +++ b/service/backupstorage/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/backupstorage/api_client.go b/service/backupstorage/api_client.go index d6fac45b07b..7c68b4f26a7 100644 --- a/service/backupstorage/api_client.go +++ b/service/backupstorage/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/backupstorage/auth.go b/service/backupstorage/auth.go index b389f3a9948..a82e595a09f 100644 --- a/service/backupstorage/auth.go +++ b/service/backupstorage/auth.go @@ -165,7 +165,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -245,7 +245,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -294,7 +294,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/backupstorage/go.mod b/service/backupstorage/go.mod index 5a2e7088a26..978eaf1ad6f 100644 --- a/service/backupstorage/go.mod +++ b/service/backupstorage/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/backupstorage go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/backupstorage/go.sum b/service/backupstorage/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/backupstorage/go.sum +++ b/service/backupstorage/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/backupstorage/go_module_metadata.go b/service/backupstorage/go_module_metadata.go index a6b040191ba..bfb566fd721 100644 --- a/service/backupstorage/go_module_metadata.go +++ b/service/backupstorage/go_module_metadata.go @@ -3,4 +3,4 @@ package backupstorage // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/backupstorage/options.go b/service/backupstorage/options.go index 7a158e631a4..6f1a7ff35dd 100644 --- a/service/backupstorage/options.go +++ b/service/backupstorage/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/batch/CHANGELOG.md b/service/batch/CHANGELOG.md index facb93a065e..2dc12568f75 100644 --- a/service/batch/CHANGELOG.md +++ b/service/batch/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.30.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.30.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/batch/api_client.go b/service/batch/api_client.go index fbd77ffa517..11cf89cc4a2 100644 --- a/service/batch/api_client.go +++ b/service/batch/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/batch/auth.go b/service/batch/auth.go index 71fa04ab2da..3b2ad549107 100644 --- a/service/batch/auth.go +++ b/service/batch/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/batch/go.mod b/service/batch/go.mod index e0288c99d48..e428ae7113a 100644 --- a/service/batch/go.mod +++ b/service/batch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/batch go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/batch/go.sum b/service/batch/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/batch/go.sum +++ b/service/batch/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/batch/go_module_metadata.go b/service/batch/go_module_metadata.go index 406c34c3f29..695d8af83f3 100644 --- a/service/batch/go_module_metadata.go +++ b/service/batch/go_module_metadata.go @@ -3,4 +3,4 @@ package batch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.0" +const goModuleVersion = "1.30.2" diff --git a/service/batch/options.go b/service/batch/options.go index 8d0affc3a3d..5ea41de094d 100644 --- a/service/batch/options.go +++ b/service/batch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bcmdataexports/CHANGELOG.md b/service/bcmdataexports/CHANGELOG.md index 555a3bd1319..6b90706a2f6 100644 --- a/service/bcmdataexports/CHANGELOG.md +++ b/service/bcmdataexports/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/bcmdataexports/api_client.go b/service/bcmdataexports/api_client.go index 35da7c0afd5..a4664f6315d 100644 --- a/service/bcmdataexports/api_client.go +++ b/service/bcmdataexports/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/bcmdataexports/auth.go b/service/bcmdataexports/auth.go index e90115e65d2..aa4aa1149e7 100644 --- a/service/bcmdataexports/auth.go +++ b/service/bcmdataexports/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/bcmdataexports/go.mod b/service/bcmdataexports/go.mod index 46567c1db96..6b9560eddc5 100644 --- a/service/bcmdataexports/go.mod +++ b/service/bcmdataexports/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bcmdataexports go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bcmdataexports/go.sum b/service/bcmdataexports/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/bcmdataexports/go.sum +++ b/service/bcmdataexports/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bcmdataexports/go_module_metadata.go b/service/bcmdataexports/go_module_metadata.go index 0597e1f1d7d..efaed8d779b 100644 --- a/service/bcmdataexports/go_module_metadata.go +++ b/service/bcmdataexports/go_module_metadata.go @@ -3,4 +3,4 @@ package bcmdataexports // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/bcmdataexports/options.go b/service/bcmdataexports/options.go index f3c5cafe320..784cf9cbdba 100644 --- a/service/bcmdataexports/options.go +++ b/service/bcmdataexports/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrock/CHANGELOG.md b/service/bedrock/CHANGELOG.md index ff86e658c95..cc3c8ce1cc0 100644 --- a/service/bedrock/CHANGELOG.md +++ b/service/bedrock/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/bedrock/api_client.go b/service/bedrock/api_client.go index 555666fa847..aa0c780dde3 100644 --- a/service/bedrock/api_client.go +++ b/service/bedrock/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/bedrock/auth.go b/service/bedrock/auth.go index f383f628f49..516a7df3173 100644 --- a/service/bedrock/auth.go +++ b/service/bedrock/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/bedrock/go.mod b/service/bedrock/go.mod index 0a58dc92c96..a7181dc2467 100644 --- a/service/bedrock/go.mod +++ b/service/bedrock/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrock go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrock/go.sum b/service/bedrock/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/bedrock/go.sum +++ b/service/bedrock/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrock/go_module_metadata.go b/service/bedrock/go_module_metadata.go index e0aa5cd7553..8bae5191565 100644 --- a/service/bedrock/go_module_metadata.go +++ b/service/bedrock/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrock // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/bedrock/options.go b/service/bedrock/options.go index 546be55a58d..1daf0338f0b 100644 --- a/service/bedrock/options.go +++ b/service/bedrock/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrockagent/CHANGELOG.md b/service/bedrockagent/CHANGELOG.md index bfe944f6e01..69375e05788 100644 --- a/service/bedrockagent/CHANGELOG.md +++ b/service/bedrockagent/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/bedrockagent/api_client.go b/service/bedrockagent/api_client.go index 22258130c36..0b3ad58907f 100644 --- a/service/bedrockagent/api_client.go +++ b/service/bedrockagent/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/bedrockagent/auth.go b/service/bedrockagent/auth.go index 6040af199d7..21f13e86f03 100644 --- a/service/bedrockagent/auth.go +++ b/service/bedrockagent/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/bedrockagent/go.mod b/service/bedrockagent/go.mod index 9b2ae74653e..ac563a894cb 100644 --- a/service/bedrockagent/go.mod +++ b/service/bedrockagent/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockagent go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrockagent/go.sum b/service/bedrockagent/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/bedrockagent/go.sum +++ b/service/bedrockagent/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrockagent/go_module_metadata.go b/service/bedrockagent/go_module_metadata.go index 3b9144902fd..f820ab15a6a 100644 --- a/service/bedrockagent/go_module_metadata.go +++ b/service/bedrockagent/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrockagent // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/bedrockagent/options.go b/service/bedrockagent/options.go index b52f7c2bd95..9e43686ae36 100644 --- a/service/bedrockagent/options.go +++ b/service/bedrockagent/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrockagentruntime/CHANGELOG.md b/service/bedrockagentruntime/CHANGELOG.md index 453e7713990..72d368dc8f4 100644 --- a/service/bedrockagentruntime/CHANGELOG.md +++ b/service/bedrockagentruntime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/bedrockagentruntime/api_client.go b/service/bedrockagentruntime/api_client.go index 488cf8c3fd6..aed6967890e 100644 --- a/service/bedrockagentruntime/api_client.go +++ b/service/bedrockagentruntime/api_client.go @@ -142,7 +142,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -151,7 +151,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/bedrockagentruntime/auth.go b/service/bedrockagentruntime/auth.go index 0cd067bf3d2..e9deb0854be 100644 --- a/service/bedrockagentruntime/auth.go +++ b/service/bedrockagentruntime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/bedrockagentruntime/go.mod b/service/bedrockagentruntime/go.mod index 8ef6f3af8bd..a1e98028e99 100644 --- a/service/bedrockagentruntime/go.mod +++ b/service/bedrockagentruntime/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockagentruntime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrockagentruntime/go.sum b/service/bedrockagentruntime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/bedrockagentruntime/go.sum +++ b/service/bedrockagentruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrockagentruntime/go_module_metadata.go b/service/bedrockagentruntime/go_module_metadata.go index 937987755b4..1ebdc9759b2 100644 --- a/service/bedrockagentruntime/go_module_metadata.go +++ b/service/bedrockagentruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrockagentruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/bedrockagentruntime/options.go b/service/bedrockagentruntime/options.go index 1c8693acce7..88048cc3427 100644 --- a/service/bedrockagentruntime/options.go +++ b/service/bedrockagentruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/bedrockruntime/CHANGELOG.md b/service/bedrockruntime/CHANGELOG.md index 5676b2a9f4e..9ed3efdb76d 100644 --- a/service/bedrockruntime/CHANGELOG.md +++ b/service/bedrockruntime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/bedrockruntime/api_client.go b/service/bedrockruntime/api_client.go index df64ae76408..1987ea985ff 100644 --- a/service/bedrockruntime/api_client.go +++ b/service/bedrockruntime/api_client.go @@ -142,7 +142,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -151,7 +151,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/bedrockruntime/auth.go b/service/bedrockruntime/auth.go index 312fa56631d..51b0ec97574 100644 --- a/service/bedrockruntime/auth.go +++ b/service/bedrockruntime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/bedrockruntime/go.mod b/service/bedrockruntime/go.mod index 8f6996fad85..dde3eb883f8 100644 --- a/service/bedrockruntime/go.mod +++ b/service/bedrockruntime/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/bedrockruntime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/bedrockruntime/go.sum b/service/bedrockruntime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/bedrockruntime/go.sum +++ b/service/bedrockruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/bedrockruntime/go_module_metadata.go b/service/bedrockruntime/go_module_metadata.go index e9decbeccfc..81c9047dc9a 100644 --- a/service/bedrockruntime/go_module_metadata.go +++ b/service/bedrockruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package bedrockruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/bedrockruntime/options.go b/service/bedrockruntime/options.go index 3a6e323628c..a9a1d1eea7a 100644 --- a/service/bedrockruntime/options.go +++ b/service/bedrockruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/billingconductor/CHANGELOG.md b/service/billingconductor/CHANGELOG.md index 18103ca9417..ac9bb5e934c 100644 --- a/service/billingconductor/CHANGELOG.md +++ b/service/billingconductor/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.13.0 (2023-12-04) + +* **Feature**: This release adds the ability to specify a linked account of the billing group for the custom line item resource. + +# v1.12.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.12.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/billingconductor/api_client.go b/service/billingconductor/api_client.go index 6af1742039e..7b159c917e8 100644 --- a/service/billingconductor/api_client.go +++ b/service/billingconductor/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/billingconductor/api_op_CreateCustomLineItem.go b/service/billingconductor/api_op_CreateCustomLineItem.go index f91b6683407..81b587f1d57 100644 --- a/service/billingconductor/api_op_CreateCustomLineItem.go +++ b/service/billingconductor/api_op_CreateCustomLineItem.go @@ -55,6 +55,10 @@ type CreateCustomLineItemInput struct { // This member is required. Name *string + // The Amazon Web Services account in which this custom line item will be applied + // to. + AccountId *string + // A time range for which the custom line item is effective. BillingPeriodRange *types.CustomLineItemBillingPeriodRange diff --git a/service/billingconductor/auth.go b/service/billingconductor/auth.go index 663e9bb2953..fd7efc61587 100644 --- a/service/billingconductor/auth.go +++ b/service/billingconductor/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/billingconductor/deserializers.go b/service/billingconductor/deserializers.go index ed462225056..dc40ff0b723 100644 --- a/service/billingconductor/deserializers.go +++ b/service/billingconductor/deserializers.go @@ -6422,6 +6422,15 @@ func awsRestjson1_deserializeDocumentCustomLineItemListElement(v **types.CustomL for key, value := range shape { switch key { + case "AccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.AccountId = ptr.String(jtv) + } + case "Arn": if value != nil { jtv, ok := value.(string) @@ -6585,6 +6594,15 @@ func awsRestjson1_deserializeDocumentCustomLineItemVersionListElement(v **types. for key, value := range shape { switch key { + case "AccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AccountId to be of type string, got %T instead", value) + } + sv.AccountId = ptr.String(jtv) + } + case "Arn": if value != nil { jtv, ok := value.(string) diff --git a/service/billingconductor/endpoints.go b/service/billingconductor/endpoints.go index a27c4bba8a9..f1f840aca11 100644 --- a/service/billingconductor/endpoints.go +++ b/service/billingconductor/endpoints.go @@ -401,7 +401,7 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { + if _PartitionResult.SupportsFIPS == true { uriString := func() string { var out strings.Builder out.WriteString("https://billingconductor-fips.") diff --git a/service/billingconductor/go.mod b/service/billingconductor/go.mod index c5cbdff0c4c..af67efe2ec2 100644 --- a/service/billingconductor/go.mod +++ b/service/billingconductor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/billingconductor go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/billingconductor/go.sum b/service/billingconductor/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/billingconductor/go.sum +++ b/service/billingconductor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/billingconductor/go_module_metadata.go b/service/billingconductor/go_module_metadata.go index 9ddff44a813..d6242bc97d9 100644 --- a/service/billingconductor/go_module_metadata.go +++ b/service/billingconductor/go_module_metadata.go @@ -3,4 +3,4 @@ package billingconductor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.0" +const goModuleVersion = "1.13.0" diff --git a/service/billingconductor/options.go b/service/billingconductor/options.go index 6930a333b5a..7940bd28c9c 100644 --- a/service/billingconductor/options.go +++ b/service/billingconductor/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/billingconductor/serializers.go b/service/billingconductor/serializers.go index f7504802622..974eb355599 100644 --- a/service/billingconductor/serializers.go +++ b/service/billingconductor/serializers.go @@ -548,6 +548,11 @@ func awsRestjson1_serializeOpDocumentCreateCustomLineItemInput(v *CreateCustomLi object := value.Object() defer object.Close() + if v.AccountId != nil { + ok := object.Key("AccountId") + ok.String(*v.AccountId) + } + if v.BillingGroupArn != nil { ok := object.Key("BillingGroupArn") ok.String(*v.BillingGroupArn) @@ -3241,6 +3246,13 @@ func awsRestjson1_serializeDocumentListCustomLineItemsFilter(v *types.ListCustom object := value.Object() defer object.Close() + if v.AccountIds != nil { + ok := object.Key("AccountIds") + if err := awsRestjson1_serializeDocumentAccountIdList(v.AccountIds, ok); err != nil { + return err + } + } + if v.Arns != nil { ok := object.Key("Arns") if err := awsRestjson1_serializeDocumentCustomLineItemArns(v.Arns, ok); err != nil { diff --git a/service/billingconductor/types/enums.go b/service/billingconductor/types/enums.go index a71899e1e89..e575560f0d6 100644 --- a/service/billingconductor/types/enums.go +++ b/service/billingconductor/types/enums.go @@ -276,6 +276,7 @@ const ( ValidationExceptionReasonInvalidFilter ValidationExceptionReason = "INVALID_FILTER" ValidationExceptionReasonTooManyAutoAssociateBillingGroups ValidationExceptionReason = "TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS" ValidationExceptionReasonCannotDeleteAutoAssociateBillingGroup ValidationExceptionReason = "CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP" + ValidationExceptionReasonIllegalAccountId ValidationExceptionReason = "ILLEGAL_ACCOUNT_ID" ) // Values returns all known values for ValidationExceptionReason. Note that this @@ -342,5 +343,6 @@ func (ValidationExceptionReason) Values() []ValidationExceptionReason { "INVALID_FILTER", "TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS", "CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP", + "ILLEGAL_ACCOUNT_ID", } } diff --git a/service/billingconductor/types/types.go b/service/billingconductor/types/types.go index da7225ec1dd..b220f28635f 100644 --- a/service/billingconductor/types/types.go +++ b/service/billingconductor/types/types.go @@ -223,6 +223,10 @@ type CustomLineItemFlatChargeDetails struct { // A representation of a custom line item. type CustomLineItemListElement struct { + // The Amazon Web Services account in which this custom line item will be applied + // to. + AccountId *string + // The Amazon Resource Names (ARNs) for custom line items. Arn *string @@ -279,6 +283,10 @@ type CustomLineItemPercentageChargeDetails struct { // A representation of a custom line item version. type CustomLineItemVersionListElement struct { + // The Amazon Web Services account in which this custom line item will be applied + // to. + AccountId *string + // A list of custom line item Amazon Resource Names (ARNs) to retrieve information. Arn *string @@ -487,6 +495,10 @@ type ListCustomLineItemPercentageChargeDetails struct { // FFLI information. type ListCustomLineItemsFilter struct { + // The Amazon Web Services accounts in which this custom line item will be applied + // to. + AccountIds []string + // A list of custom line item ARNs to retrieve information. Arns []string diff --git a/service/braket/CHANGELOG.md b/service/braket/CHANGELOG.md index 3889767844c..89a1e70955c 100644 --- a/service/braket/CHANGELOG.md +++ b/service/braket/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.24.0 (2023-12-04) + +* **Feature**: This release enhances service support to create quantum tasks and hybrid jobs associated with Braket Direct Reservations. + +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/braket/api_client.go b/service/braket/api_client.go index 3a309614c11..3cab4e73878 100644 --- a/service/braket/api_client.go +++ b/service/braket/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/braket/api_op_CreateJob.go b/service/braket/api_op_CreateJob.go index ec56a1a2308..1641adde020 100644 --- a/service/braket/api_op_CreateJob.go +++ b/service/braket/api_op_CreateJob.go @@ -73,6 +73,9 @@ type CreateJobInput struct { // This member is required. RoleArn *string + // The list of Amazon Braket resources associated with the hybrid job. + Associations []types.Association + // Information about the output locations for job checkpoint data. CheckpointConfig *types.JobCheckpointConfig diff --git a/service/braket/api_op_CreateQuantumTask.go b/service/braket/api_op_CreateQuantumTask.go index a3fa4b3cd6a..e77c17672ba 100644 --- a/service/braket/api_op_CreateQuantumTask.go +++ b/service/braket/api_op_CreateQuantumTask.go @@ -7,6 +7,7 @@ import ( "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/braket/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) @@ -61,6 +62,9 @@ type CreateQuantumTaskInput struct { // This member is required. Shots *int64 + // The list of Amazon Braket resources associated with the quantum task. + Associations []types.Association + // The parameters for the device to run the task on. // // This value conforms to the media type: application/json diff --git a/service/braket/api_op_GetJob.go b/service/braket/api_op_GetJob.go index e6777b520e8..b94a472f596 100644 --- a/service/braket/api_op_GetJob.go +++ b/service/braket/api_op_GetJob.go @@ -90,6 +90,9 @@ type GetJobOutput struct { // This member is required. Status types.JobPrimaryStatus + // The list of Amazon Braket resources associated with the hybrid job. + Associations []types.Association + // The billable time the Amazon Braket job used to complete. BillableDuration *int32 diff --git a/service/braket/api_op_GetQuantumTask.go b/service/braket/api_op_GetQuantumTask.go index 06788dd1191..8741bc14201 100644 --- a/service/braket/api_op_GetQuantumTask.go +++ b/service/braket/api_op_GetQuantumTask.go @@ -31,7 +31,7 @@ func (c *Client) GetQuantumTask(ctx context.Context, params *GetQuantumTaskInput type GetQuantumTaskInput struct { - // the ARN of the task to retrieve. + // The ARN of the task to retrieve. // // This member is required. QuantumTaskArn *string @@ -86,6 +86,9 @@ type GetQuantumTaskOutput struct { // This member is required. Status types.QuantumTaskStatus + // The list of Amazon Braket resources associated with the quantum task. + Associations []types.Association + // The time at which the task ended. EndedAt *time.Time diff --git a/service/braket/auth.go b/service/braket/auth.go index e38a601e462..ffdb57e8895 100644 --- a/service/braket/auth.go +++ b/service/braket/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/braket/deserializers.go b/service/braket/deserializers.go index 80e6821d230..ac52637f6dd 100644 --- a/service/braket/deserializers.go +++ b/service/braket/deserializers.go @@ -1070,6 +1070,11 @@ func awsRestjson1_deserializeOpDocumentGetJobOutput(v **GetJobOutput, value inte return err } + case "associations": + if err := awsRestjson1_deserializeDocumentAssociations(&sv.Associations, value); err != nil { + return err + } + case "billableDuration": if value != nil { jtv, ok := value.(json.Number) @@ -1371,6 +1376,11 @@ func awsRestjson1_deserializeOpDocumentGetQuantumTaskOutput(v **GetQuantumTaskOu for key, value := range shape { switch key { + case "associations": + if err := awsRestjson1_deserializeDocumentAssociations(&sv.Associations, value); err != nil { + return err + } + case "createdAt": if value != nil { jtv, ok := value.(string) @@ -2732,6 +2742,89 @@ func awsRestjson1_deserializeDocumentAlgorithmSpecification(v **types.AlgorithmS return nil } +func awsRestjson1_deserializeDocumentAssociation(v **types.Association, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Association + if *v == nil { + sv = &types.Association{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "arn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BraketResourceArn to be of type string, got %T instead", value) + } + sv.Arn = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AssociationType to be of type string, got %T instead", value) + } + sv.Type = types.AssociationType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentAssociations(v *[]types.Association, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Association + if *v == nil { + cv = []types.Association{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Association + destAddr := &col + if err := awsRestjson1_deserializeDocumentAssociation(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/braket/endpoints.go b/service/braket/endpoints.go index 8170655f6f2..16e5eb1b8cf 100644 --- a/service/braket/endpoints.go +++ b/service/braket/endpoints.go @@ -366,7 +366,7 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { + if _PartitionResult.SupportsFIPS == true { uriString := func() string { var out strings.Builder out.WriteString("https://braket-fips.") diff --git a/service/braket/go.mod b/service/braket/go.mod index dad992454f3..0940c355750 100644 --- a/service/braket/go.mod +++ b/service/braket/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/braket go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/braket/go.sum b/service/braket/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/braket/go.sum +++ b/service/braket/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/braket/go_module_metadata.go b/service/braket/go_module_metadata.go index c54b8142eac..4cb03f27582 100644 --- a/service/braket/go_module_metadata.go +++ b/service/braket/go_module_metadata.go @@ -3,4 +3,4 @@ package braket // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.24.0" diff --git a/service/braket/options.go b/service/braket/options.go index 5ca3cce2c66..9ef3bc46bb7 100644 --- a/service/braket/options.go +++ b/service/braket/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/braket/serializers.go b/service/braket/serializers.go index e638bf48c9c..0cc2676b05b 100644 --- a/service/braket/serializers.go +++ b/service/braket/serializers.go @@ -241,6 +241,13 @@ func awsRestjson1_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smi } } + if v.Associations != nil { + ok := object.Key("associations") + if err := awsRestjson1_serializeDocumentAssociations(v.Associations, ok); err != nil { + return err + } + } + if v.CheckpointConfig != nil { ok := object.Key("checkpointConfig") if err := awsRestjson1_serializeDocumentJobCheckpointConfig(v.CheckpointConfig, ok); err != nil { @@ -387,6 +394,13 @@ func awsRestjson1_serializeOpDocumentCreateQuantumTaskInput(v *CreateQuantumTask ok.String(*v.Action) } + if v.Associations != nil { + ok := object.Key("associations") + if err := awsRestjson1_serializeDocumentAssociations(v.Associations, ok); err != nil { + return err + } + } + if v.ClientToken != nil { ok := object.Key("clientToken") ok.String(*v.ClientToken) @@ -1147,6 +1161,36 @@ func awsRestjson1_serializeDocumentAlgorithmSpecification(v *types.AlgorithmSpec return nil } +func awsRestjson1_serializeDocumentAssociation(v *types.Association, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Arn != nil { + ok := object.Key("arn") + ok.String(*v.Arn) + } + + if len(v.Type) > 0 { + ok := object.Key("type") + ok.String(string(v.Type)) + } + + return nil +} + +func awsRestjson1_serializeDocumentAssociations(v []types.Association, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentAssociation(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocumentContainerImage(v *types.ContainerImage, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/braket/types/enums.go b/service/braket/types/enums.go index 122191340b6..a5461764eca 100644 --- a/service/braket/types/enums.go +++ b/service/braket/types/enums.go @@ -2,6 +2,22 @@ package types +type AssociationType string + +// Enum values for AssociationType +const ( + AssociationTypeReservationTimeWindowArn AssociationType = "RESERVATION_TIME_WINDOW_ARN" +) + +// Values returns all known values for AssociationType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (AssociationType) Values() []AssociationType { + return []AssociationType{ + "RESERVATION_TIME_WINDOW_ARN", + } +} + type CancellationStatus string // Enum values for CancellationStatus diff --git a/service/braket/types/types.go b/service/braket/types/types.go index 14b879a4c89..5c64ef6097b 100644 --- a/service/braket/types/types.go +++ b/service/braket/types/types.go @@ -20,6 +20,22 @@ type AlgorithmSpecification struct { noSmithyDocumentSerde } +// The Amazon Braket resource and the association type. +type Association struct { + + // The Amazon Braket resource arn. + // + // This member is required. + Arn *string + + // The association type for the specified Amazon Braket resource arn. + // + // This member is required. + Type AssociationType + + noSmithyDocumentSerde +} + // The container image used to create an Amazon Braket job. type ContainerImage struct { @@ -195,7 +211,7 @@ type JobEventDetails struct { // A message describing the event that occurred related to the Amazon Braket job. Message *string - // TThe type of event that occurred related to the Amazon Braket job. + // The type of event that occurred related to the Amazon Braket job. TimeOfEvent *time.Time noSmithyDocumentSerde diff --git a/service/braket/validators.go b/service/braket/validators.go index 70949fc0137..d99e0e9cc0b 100644 --- a/service/braket/validators.go +++ b/service/braket/validators.go @@ -344,6 +344,41 @@ func validateAlgorithmSpecification(v *types.AlgorithmSpecification) error { } } +func validateAssociation(v *types.Association) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Association"} + if v.Arn == nil { + invalidParams.Add(smithy.NewErrParamRequired("Arn")) + } + if len(v.Type) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Type")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAssociations(v []types.Association) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "Associations"} + for i := range v { + if err := validateAssociation(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateContainerImage(v *types.ContainerImage) error { if v == nil { return nil @@ -709,6 +744,11 @@ func validateOpCreateJobInput(v *CreateJobInput) error { invalidParams.AddNested("DeviceConfig", err.(smithy.InvalidParamsError)) } } + if v.Associations != nil { + if err := validateAssociations(v.Associations); err != nil { + invalidParams.AddNested("Associations", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -739,6 +779,11 @@ func validateOpCreateQuantumTaskInput(v *CreateQuantumTaskInput) error { if v.Action == nil { invalidParams.Add(smithy.NewErrParamRequired("Action")) } + if v.Associations != nil { + if err := validateAssociations(v.Associations); err != nil { + invalidParams.AddNested("Associations", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/budgets/CHANGELOG.md b/service/budgets/CHANGELOG.md index a8e0cfb0778..0dc438944b0 100644 --- a/service/budgets/CHANGELOG.md +++ b/service/budgets/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/budgets/api_client.go b/service/budgets/api_client.go index ab2ca3930d6..5863f18c6f6 100644 --- a/service/budgets/api_client.go +++ b/service/budgets/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/budgets/auth.go b/service/budgets/auth.go index d39f977e6da..e6e5a23b1a6 100644 --- a/service/budgets/auth.go +++ b/service/budgets/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/budgets/go.mod b/service/budgets/go.mod index 625ccc1b361..ac00f4fe835 100644 --- a/service/budgets/go.mod +++ b/service/budgets/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/budgets go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/budgets/go.sum b/service/budgets/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/budgets/go.sum +++ b/service/budgets/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/budgets/go_module_metadata.go b/service/budgets/go_module_metadata.go index 755f581bd27..d9f40f49bd2 100644 --- a/service/budgets/go_module_metadata.go +++ b/service/budgets/go_module_metadata.go @@ -3,4 +3,4 @@ package budgets // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/budgets/options.go b/service/budgets/options.go index 05db02b5342..213c58004b8 100644 --- a/service/budgets/options.go +++ b/service/budgets/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chime/CHANGELOG.md b/service/chime/CHANGELOG.md index 062cec6734d..2c0fb5cd232 100644 --- a/service/chime/CHANGELOG.md +++ b/service/chime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/chime/api_client.go b/service/chime/api_client.go index b65f0c3ae9f..83ef23fb977 100644 --- a/service/chime/api_client.go +++ b/service/chime/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/chime/auth.go b/service/chime/auth.go index 10c9e5217cd..982bcec65b1 100644 --- a/service/chime/auth.go +++ b/service/chime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/chime/go.mod b/service/chime/go.mod index c5248dce4e8..bd863b18bac 100644 --- a/service/chime/go.mod +++ b/service/chime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chime/go.sum b/service/chime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/chime/go.sum +++ b/service/chime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chime/go_module_metadata.go b/service/chime/go_module_metadata.go index 74e4b0a86df..6b7f8eb7c5f 100644 --- a/service/chime/go_module_metadata.go +++ b/service/chime/go_module_metadata.go @@ -3,4 +3,4 @@ package chime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/chime/options.go b/service/chime/options.go index ab84c7c7f03..7b9550b7284 100644 --- a/service/chime/options.go +++ b/service/chime/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkidentity/CHANGELOG.md b/service/chimesdkidentity/CHANGELOG.md index 2d0eda3f45e..7f23342f54c 100644 --- a/service/chimesdkidentity/CHANGELOG.md +++ b/service/chimesdkidentity/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.16.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/chimesdkidentity/api_client.go b/service/chimesdkidentity/api_client.go index 623937546d8..75a587f80de 100644 --- a/service/chimesdkidentity/api_client.go +++ b/service/chimesdkidentity/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/chimesdkidentity/auth.go b/service/chimesdkidentity/auth.go index 657555f7ad7..a7f66023d91 100644 --- a/service/chimesdkidentity/auth.go +++ b/service/chimesdkidentity/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/chimesdkidentity/go.mod b/service/chimesdkidentity/go.mod index fb839981123..e37d832382a 100644 --- a/service/chimesdkidentity/go.mod +++ b/service/chimesdkidentity/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkidentity go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkidentity/go.sum b/service/chimesdkidentity/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/chimesdkidentity/go.sum +++ b/service/chimesdkidentity/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkidentity/go_module_metadata.go b/service/chimesdkidentity/go_module_metadata.go index 995411afe3c..e231f42f014 100644 --- a/service/chimesdkidentity/go_module_metadata.go +++ b/service/chimesdkidentity/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkidentity // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.2" diff --git a/service/chimesdkidentity/options.go b/service/chimesdkidentity/options.go index 2a456cc337c..111a3896973 100644 --- a/service/chimesdkidentity/options.go +++ b/service/chimesdkidentity/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkmediapipelines/CHANGELOG.md b/service/chimesdkmediapipelines/CHANGELOG.md index a6e8e3b9904..656a6d2b2ac 100644 --- a/service/chimesdkmediapipelines/CHANGELOG.md +++ b/service/chimesdkmediapipelines/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.13.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.13.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.13.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/chimesdkmediapipelines/api_client.go b/service/chimesdkmediapipelines/api_client.go index 30f74f284ef..8f155a81dcc 100644 --- a/service/chimesdkmediapipelines/api_client.go +++ b/service/chimesdkmediapipelines/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/chimesdkmediapipelines/auth.go b/service/chimesdkmediapipelines/auth.go index ffb865a8df6..8393d8446b7 100644 --- a/service/chimesdkmediapipelines/auth.go +++ b/service/chimesdkmediapipelines/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/chimesdkmediapipelines/go.mod b/service/chimesdkmediapipelines/go.mod index b178b55d4f0..250c851e2ee 100644 --- a/service/chimesdkmediapipelines/go.mod +++ b/service/chimesdkmediapipelines/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmediapipelines go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmediapipelines/go.sum b/service/chimesdkmediapipelines/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/chimesdkmediapipelines/go.sum +++ b/service/chimesdkmediapipelines/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmediapipelines/go_module_metadata.go b/service/chimesdkmediapipelines/go_module_metadata.go index 287c514a72a..ddefa1fa82e 100644 --- a/service/chimesdkmediapipelines/go_module_metadata.go +++ b/service/chimesdkmediapipelines/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkmediapipelines // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.0" +const goModuleVersion = "1.13.2" diff --git a/service/chimesdkmediapipelines/options.go b/service/chimesdkmediapipelines/options.go index 4f83387e322..3a413538674 100644 --- a/service/chimesdkmediapipelines/options.go +++ b/service/chimesdkmediapipelines/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkmeetings/CHANGELOG.md b/service/chimesdkmeetings/CHANGELOG.md index 78934d45de5..ba784a8a77d 100644 --- a/service/chimesdkmeetings/CHANGELOG.md +++ b/service/chimesdkmeetings/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/chimesdkmeetings/api_client.go b/service/chimesdkmeetings/api_client.go index 71c22792682..572c9c6bd93 100644 --- a/service/chimesdkmeetings/api_client.go +++ b/service/chimesdkmeetings/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/chimesdkmeetings/auth.go b/service/chimesdkmeetings/auth.go index 0add5a10427..3846f2ecac5 100644 --- a/service/chimesdkmeetings/auth.go +++ b/service/chimesdkmeetings/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/chimesdkmeetings/go.mod b/service/chimesdkmeetings/go.mod index 2ada7cb22b3..05032c8151f 100644 --- a/service/chimesdkmeetings/go.mod +++ b/service/chimesdkmeetings/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmeetings go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmeetings/go.sum b/service/chimesdkmeetings/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/chimesdkmeetings/go.sum +++ b/service/chimesdkmeetings/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmeetings/go_module_metadata.go b/service/chimesdkmeetings/go_module_metadata.go index c15c8f66a12..293343735c1 100644 --- a/service/chimesdkmeetings/go_module_metadata.go +++ b/service/chimesdkmeetings/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkmeetings // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/chimesdkmeetings/options.go b/service/chimesdkmeetings/options.go index 6e95578b549..d43f27c1106 100644 --- a/service/chimesdkmeetings/options.go +++ b/service/chimesdkmeetings/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkmessaging/CHANGELOG.md b/service/chimesdkmessaging/CHANGELOG.md index e96f7349561..93d48bcd898 100644 --- a/service/chimesdkmessaging/CHANGELOG.md +++ b/service/chimesdkmessaging/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/chimesdkmessaging/api_client.go b/service/chimesdkmessaging/api_client.go index 0fd678ce303..14db483485b 100644 --- a/service/chimesdkmessaging/api_client.go +++ b/service/chimesdkmessaging/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/chimesdkmessaging/auth.go b/service/chimesdkmessaging/auth.go index 189609064a3..44a13fb70ee 100644 --- a/service/chimesdkmessaging/auth.go +++ b/service/chimesdkmessaging/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/chimesdkmessaging/go.mod b/service/chimesdkmessaging/go.mod index 5758e665fac..c6fe8749969 100644 --- a/service/chimesdkmessaging/go.mod +++ b/service/chimesdkmessaging/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkmessaging go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkmessaging/go.sum b/service/chimesdkmessaging/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/chimesdkmessaging/go.sum +++ b/service/chimesdkmessaging/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkmessaging/go_module_metadata.go b/service/chimesdkmessaging/go_module_metadata.go index 0f80b4be0f4..cb4668fb7c1 100644 --- a/service/chimesdkmessaging/go_module_metadata.go +++ b/service/chimesdkmessaging/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkmessaging // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/chimesdkmessaging/options.go b/service/chimesdkmessaging/options.go index 7fbd2327c32..737fbba7ae2 100644 --- a/service/chimesdkmessaging/options.go +++ b/service/chimesdkmessaging/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/chimesdkvoice/CHANGELOG.md b/service/chimesdkvoice/CHANGELOG.md index ec230fd6c84..5449fdf5eb2 100644 --- a/service/chimesdkvoice/CHANGELOG.md +++ b/service/chimesdkvoice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.12.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.12.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/chimesdkvoice/api_client.go b/service/chimesdkvoice/api_client.go index c9f46bdd6b5..0172213cc30 100644 --- a/service/chimesdkvoice/api_client.go +++ b/service/chimesdkvoice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/chimesdkvoice/auth.go b/service/chimesdkvoice/auth.go index a6294784b23..b19cade4058 100644 --- a/service/chimesdkvoice/auth.go +++ b/service/chimesdkvoice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/chimesdkvoice/go.mod b/service/chimesdkvoice/go.mod index 5f97b013fb3..b4d5d34a6c3 100644 --- a/service/chimesdkvoice/go.mod +++ b/service/chimesdkvoice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/chimesdkvoice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/chimesdkvoice/go.sum b/service/chimesdkvoice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/chimesdkvoice/go.sum +++ b/service/chimesdkvoice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/chimesdkvoice/go_module_metadata.go b/service/chimesdkvoice/go_module_metadata.go index 596d3f767be..1a8e2ee1e82 100644 --- a/service/chimesdkvoice/go_module_metadata.go +++ b/service/chimesdkvoice/go_module_metadata.go @@ -3,4 +3,4 @@ package chimesdkvoice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.0" +const goModuleVersion = "1.12.2" diff --git a/service/chimesdkvoice/options.go b/service/chimesdkvoice/options.go index bea94ed1c5a..231e2d4d796 100644 --- a/service/chimesdkvoice/options.go +++ b/service/chimesdkvoice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cleanrooms/CHANGELOG.md b/service/cleanrooms/CHANGELOG.md index c2c9cdfe793..ceb303d5875 100644 --- a/service/cleanrooms/CHANGELOG.md +++ b/service/cleanrooms/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.8.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.8.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.0 (2023-11-29) * **Feature**: AWS Clean Rooms now provides differential privacy to protect against user-identification attempts and machine learning modeling to allow two parties to identify similar users in their data. diff --git a/service/cleanrooms/api_client.go b/service/cleanrooms/api_client.go index 83c0c07a581..94d73c63edd 100644 --- a/service/cleanrooms/api_client.go +++ b/service/cleanrooms/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cleanrooms/auth.go b/service/cleanrooms/auth.go index 77c0952033b..2f88458cd1c 100644 --- a/service/cleanrooms/auth.go +++ b/service/cleanrooms/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cleanrooms/go.mod b/service/cleanrooms/go.mod index ead752baaf8..a5c80c2d6bb 100644 --- a/service/cleanrooms/go.mod +++ b/service/cleanrooms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cleanrooms go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cleanrooms/go.sum b/service/cleanrooms/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cleanrooms/go.sum +++ b/service/cleanrooms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanrooms/go_module_metadata.go b/service/cleanrooms/go_module_metadata.go index 504fffa8d03..b165f8bfbd2 100644 --- a/service/cleanrooms/go_module_metadata.go +++ b/service/cleanrooms/go_module_metadata.go @@ -3,4 +3,4 @@ package cleanrooms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.0" +const goModuleVersion = "1.8.2" diff --git a/service/cleanrooms/options.go b/service/cleanrooms/options.go index cc28e9e22db..e2984872643 100644 --- a/service/cleanrooms/options.go +++ b/service/cleanrooms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cleanroomsml/CHANGELOG.md b/service/cleanroomsml/CHANGELOG.md index 55d72e085e7..b85d3a7c0bd 100644 --- a/service/cleanroomsml/CHANGELOG.md +++ b/service/cleanroomsml/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.0.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.0.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.0.0 (2023-11-29) * **Release**: New AWS service client module diff --git a/service/cleanroomsml/api_client.go b/service/cleanroomsml/api_client.go index 545510b6a18..213ea4239cb 100644 --- a/service/cleanroomsml/api_client.go +++ b/service/cleanroomsml/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cleanroomsml/auth.go b/service/cleanroomsml/auth.go index 10d2fecedc6..eec79d874e2 100644 --- a/service/cleanroomsml/auth.go +++ b/service/cleanroomsml/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cleanroomsml/go.mod b/service/cleanroomsml/go.mod index 8151d052d6e..a1886a808be 100644 --- a/service/cleanroomsml/go.mod +++ b/service/cleanroomsml/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cleanroomsml go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cleanroomsml/go.sum b/service/cleanroomsml/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cleanroomsml/go.sum +++ b/service/cleanroomsml/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cleanroomsml/go_module_metadata.go b/service/cleanroomsml/go_module_metadata.go index 72375892b9f..2f646cab50e 100644 --- a/service/cleanroomsml/go_module_metadata.go +++ b/service/cleanroomsml/go_module_metadata.go @@ -3,4 +3,4 @@ package cleanroomsml // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.0.0" +const goModuleVersion = "1.0.2" diff --git a/service/cleanroomsml/options.go b/service/cleanroomsml/options.go index 111e3fb3ab7..316ffadcadc 100644 --- a/service/cleanroomsml/options.go +++ b/service/cleanroomsml/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloud9/CHANGELOG.md b/service/cloud9/CHANGELOG.md index 44e2906d7a1..93c81eb091d 100644 --- a/service/cloud9/CHANGELOG.md +++ b/service/cloud9/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.22.0 (2023-12-04) + +* **Feature**: This release adds the requirement to include the imageId parameter in the CreateEnvironmentEC2 API call. + +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloud9/api_client.go b/service/cloud9/api_client.go index a1c9c63d578..cef7307c77d 100644 --- a/service/cloud9/api_client.go +++ b/service/cloud9/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloud9/api_op_CreateEnvironmentEC2.go b/service/cloud9/api_op_CreateEnvironmentEC2.go index 687cfc75286..e85f815ab1a 100644 --- a/service/cloud9/api_op_CreateEnvironmentEC2.go +++ b/service/cloud9/api_op_CreateEnvironmentEC2.go @@ -32,6 +32,34 @@ func (c *Client) CreateEnvironmentEC2(ctx context.Context, params *CreateEnviron type CreateEnvironmentEC2Input struct { + // The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 + // instance. To choose an AMI for the instance, you must specify a valid AMI alias + // or a valid Amazon EC2 Systems Manager (SSM) path. From December 04, 2023, you + // will be required to include the imageId parameter for the CreateEnvironmentEC2 + // action. This change will be reflected across all direct methods of communicating + // with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and + // Amazon Web Services CloudFormation. This change will only affect direct API + // consumers, and not Cloud9 console users. From January 22, 2024, Amazon Linux + // (AL1) will be removed from the list of available image IDs for Cloud9. This is + // necessary as AL1 will reach the end of maintenance support in December 2023, and + // as a result will no longer receive security updates. We recommend using Amazon + // Linux 2 as the AMI to create your environment as it is fully supported. This + // change will only affect direct API consumers, and not Cloud9 console users. + // Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend + // you choose Ubuntu 22.04. AMI aliases + // - Amazon Linux: amazonlinux-1-x86_64 + // - Amazon Linux 2: amazonlinux-2-x86_64 + // - Ubuntu 18.04: ubuntu-18.04-x86_64 + // - Ubuntu 22.04: ubuntu-22.04-x86_64 + // SSM paths + // - Amazon Linux: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 + // - Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 + // - Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 + // - Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 + // + // This member is required. + ImageId *string + // The type of instance to connect to the environment (for example, t2.micro ). // // This member is required. @@ -68,33 +96,6 @@ type CreateEnvironmentEC2Input struct { // UnauthorizedOperation . DryRun *bool - // The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 - // instance. To choose an AMI for the instance, you must specify a valid AMI alias - // or a valid Amazon EC2 Systems Manager (SSM) path. From December 04, 2023, you - // will be required to include the imageId parameter for the CreateEnvironmentEC2 - // action. This change will be reflected across all direct methods of communicating - // with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and - // Amazon Web Services CloudFormation. This change will only affect direct API - // consumers, and not Cloud9 console users. From January 22, 2024, Amazon Linux - // (AL1) will be removed from the list of available image IDs for Cloud9. This is - // necessary as AL1 will reach the end of maintenance support in December 2023, and - // as a result will no longer receive security updates. We recommend using Amazon - // Linux 2 as the AMI to create your environment as it is fully supported. This - // change will only affect direct API consumers, and not Cloud9 console users. - // Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend - // you choose Ubuntu 22.04. AMI aliases - // - Amazon Linux (default): amazonlinux-1-x86_64 - // - Amazon Linux 2: amazonlinux-2-x86_64 - // - Ubuntu 18.04: ubuntu-18.04-x86_64 - // - Ubuntu 22.04: ubuntu-22.04-x86_64 - // SSM paths - // - Amazon Linux (default): - // resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64 - // - Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 - // - Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 - // - Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 - ImageId *string - // The Amazon Resource Name (ARN) of the environment owner. This ARN can be the // ARN of any IAM principal. If this value is not specified, the ARN defaults to // this environment's creator. diff --git a/service/cloud9/auth.go b/service/cloud9/auth.go index 5a5c32972a8..fd69e172d75 100644 --- a/service/cloud9/auth.go +++ b/service/cloud9/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloud9/go.mod b/service/cloud9/go.mod index b6a607e41f9..9b082c36a37 100644 --- a/service/cloud9/go.mod +++ b/service/cloud9/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloud9 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloud9/go.sum b/service/cloud9/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloud9/go.sum +++ b/service/cloud9/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloud9/go_module_metadata.go b/service/cloud9/go_module_metadata.go index 15a82882c1e..2b56cf039a7 100644 --- a/service/cloud9/go_module_metadata.go +++ b/service/cloud9/go_module_metadata.go @@ -3,4 +3,4 @@ package cloud9 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.22.0" diff --git a/service/cloud9/options.go b/service/cloud9/options.go index 825e88347cc..8ff679193cd 100644 --- a/service/cloud9/options.go +++ b/service/cloud9/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloud9/validators.go b/service/cloud9/validators.go index e1ddf6d6f9a..3f7e2ec79e4 100644 --- a/service/cloud9/validators.go +++ b/service/cloud9/validators.go @@ -320,6 +320,9 @@ func validateOpCreateEnvironmentEC2Input(v *CreateEnvironmentEC2Input) error { if v.InstanceType == nil { invalidParams.Add(smithy.NewErrParamRequired("InstanceType")) } + if v.ImageId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ImageId")) + } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) diff --git a/service/cloudcontrol/CHANGELOG.md b/service/cloudcontrol/CHANGELOG.md index 57235545dee..220e75bd5c5 100644 --- a/service/cloudcontrol/CHANGELOG.md +++ b/service/cloudcontrol/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.15.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudcontrol/api_client.go b/service/cloudcontrol/api_client.go index bfb99083c32..7df123b59b4 100644 --- a/service/cloudcontrol/api_client.go +++ b/service/cloudcontrol/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudcontrol/auth.go b/service/cloudcontrol/auth.go index 1f27b57c0db..19721b0dd6a 100644 --- a/service/cloudcontrol/auth.go +++ b/service/cloudcontrol/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudcontrol/go.mod b/service/cloudcontrol/go.mod index e027876bc2e..fdacbc0c6d5 100644 --- a/service/cloudcontrol/go.mod +++ b/service/cloudcontrol/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudcontrol go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudcontrol/go.sum b/service/cloudcontrol/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/cloudcontrol/go.sum +++ b/service/cloudcontrol/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudcontrol/go_module_metadata.go b/service/cloudcontrol/go_module_metadata.go index cc70a9a52d7..c50b82b1777 100644 --- a/service/cloudcontrol/go_module_metadata.go +++ b/service/cloudcontrol/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudcontrol // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.0" +const goModuleVersion = "1.15.2" diff --git a/service/cloudcontrol/options.go b/service/cloudcontrol/options.go index 140e6f17d60..61fc759a181 100644 --- a/service/cloudcontrol/options.go +++ b/service/cloudcontrol/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/clouddirectory/CHANGELOG.md b/service/clouddirectory/CHANGELOG.md index ce497dfc8f9..f283e60d8de 100644 --- a/service/clouddirectory/CHANGELOG.md +++ b/service/clouddirectory/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/clouddirectory/api_client.go b/service/clouddirectory/api_client.go index a621328a433..706e5e45204 100644 --- a/service/clouddirectory/api_client.go +++ b/service/clouddirectory/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/clouddirectory/auth.go b/service/clouddirectory/auth.go index da5fefa44d8..44a843e9279 100644 --- a/service/clouddirectory/auth.go +++ b/service/clouddirectory/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/clouddirectory/go.mod b/service/clouddirectory/go.mod index 3874e80089d..6eb2e8fbfb0 100644 --- a/service/clouddirectory/go.mod +++ b/service/clouddirectory/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/clouddirectory go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/clouddirectory/go.sum b/service/clouddirectory/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/clouddirectory/go.sum +++ b/service/clouddirectory/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/clouddirectory/go_module_metadata.go b/service/clouddirectory/go_module_metadata.go index 9da4abe2936..34529bebbf1 100644 --- a/service/clouddirectory/go_module_metadata.go +++ b/service/clouddirectory/go_module_metadata.go @@ -3,4 +3,4 @@ package clouddirectory // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/clouddirectory/options.go b/service/clouddirectory/options.go index 6ac618738b0..713ad3a8653 100644 --- a/service/clouddirectory/options.go +++ b/service/clouddirectory/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudformation/CHANGELOG.md b/service/cloudformation/CHANGELOG.md index cc3560666a6..c8a0ffc8978 100644 --- a/service/cloudformation/CHANGELOG.md +++ b/service/cloudformation/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.42.0 (2023-12-04) + +* **Feature**: Including UPDATE_* states as a success status for CreateStack waiter. + +# v1.41.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.41.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.41.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudformation/api_client.go b/service/cloudformation/api_client.go index 4893c345146..b2f5ee767d8 100644 --- a/service/cloudformation/api_client.go +++ b/service/cloudformation/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudformation/api_op_DescribeStacks.go b/service/cloudformation/api_op_DescribeStacks.go index f1a0ec9022a..039d315eddb 100644 --- a/service/cloudformation/api_op_DescribeStacks.go +++ b/service/cloudformation/api_op_DescribeStacks.go @@ -405,6 +405,262 @@ func stackCreateCompleteStateRetryable(ctx context.Context, input *DescribeStack } } + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_COMPLETE" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_IN_PROGRESS" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_COMPLETE_CLEANUP_IN_PROGRESS" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_FAILED" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_IN_PROGRESS" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_FAILED" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Stacks[].StackStatus", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "UPDATE_ROLLBACK_COMPLETE" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.StackStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.StackStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + if err == nil { pathValue, err := jmespath.Search("Stacks[].StackStatus", output) if err != nil { diff --git a/service/cloudformation/auth.go b/service/cloudformation/auth.go index 7ab8567f6d8..04aaa1b47fb 100644 --- a/service/cloudformation/auth.go +++ b/service/cloudformation/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudformation/go.mod b/service/cloudformation/go.mod index 4400db43e6f..f107c3b31f5 100644 --- a/service/cloudformation/go.mod +++ b/service/cloudformation/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudformation go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudformation/go.sum b/service/cloudformation/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/cloudformation/go.sum +++ b/service/cloudformation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudformation/go_module_metadata.go b/service/cloudformation/go_module_metadata.go index b95b5d5e578..7e6f2bdffb9 100644 --- a/service/cloudformation/go_module_metadata.go +++ b/service/cloudformation/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudformation // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.41.0" +const goModuleVersion = "1.42.0" diff --git a/service/cloudformation/options.go b/service/cloudformation/options.go index bc3e4745896..47fc19be5ff 100644 --- a/service/cloudformation/options.go +++ b/service/cloudformation/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudfront/CHANGELOG.md b/service/cloudfront/CHANGELOG.md index 725866444a3..dc4529b0063 100644 --- a/service/cloudfront/CHANGELOG.md +++ b/service/cloudfront/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.32.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.32.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudfront/api_client.go b/service/cloudfront/api_client.go index 6f94edccc15..200946fde97 100644 --- a/service/cloudfront/api_client.go +++ b/service/cloudfront/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudfront/auth.go b/service/cloudfront/auth.go index 8af6a0cbcf8..be6e33f42ae 100644 --- a/service/cloudfront/auth.go +++ b/service/cloudfront/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudfront/go.mod b/service/cloudfront/go.mod index d3418ef7b46..99c78323e2d 100644 --- a/service/cloudfront/go.mod +++ b/service/cloudfront/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudfront go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudfront/go.sum b/service/cloudfront/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/cloudfront/go.sum +++ b/service/cloudfront/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudfront/go_module_metadata.go b/service/cloudfront/go_module_metadata.go index 1c46a439f74..8443aebcb2c 100644 --- a/service/cloudfront/go_module_metadata.go +++ b/service/cloudfront/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudfront // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.0" +const goModuleVersion = "1.32.2" diff --git a/service/cloudfront/options.go b/service/cloudfront/options.go index b0821518a6e..e44018250c7 100644 --- a/service/cloudfront/options.go +++ b/service/cloudfront/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudfrontkeyvaluestore/CHANGELOG.md b/service/cloudfrontkeyvaluestore/CHANGELOG.md index f95c5a73349..bbe35e45c9f 100644 --- a/service/cloudfrontkeyvaluestore/CHANGELOG.md +++ b/service/cloudfrontkeyvaluestore/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudfrontkeyvaluestore/api_client.go b/service/cloudfrontkeyvaluestore/api_client.go index 7d6596bfe62..f31cf12f441 100644 --- a/service/cloudfrontkeyvaluestore/api_client.go +++ b/service/cloudfrontkeyvaluestore/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudfrontkeyvaluestore/auth.go b/service/cloudfrontkeyvaluestore/auth.go index 76fe98deb51..8bef13216e8 100644 --- a/service/cloudfrontkeyvaluestore/auth.go +++ b/service/cloudfrontkeyvaluestore/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudfrontkeyvaluestore/go.mod b/service/cloudfrontkeyvaluestore/go.mod index 9528133da3e..be6b74b28e3 100644 --- a/service/cloudfrontkeyvaluestore/go.mod +++ b/service/cloudfrontkeyvaluestore/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudfrontkeyvaluestore go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudfrontkeyvaluestore/go.sum b/service/cloudfrontkeyvaluestore/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudfrontkeyvaluestore/go.sum +++ b/service/cloudfrontkeyvaluestore/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudfrontkeyvaluestore/go_module_metadata.go b/service/cloudfrontkeyvaluestore/go_module_metadata.go index 8e9fd2cc021..899ae6d1096 100644 --- a/service/cloudfrontkeyvaluestore/go_module_metadata.go +++ b/service/cloudfrontkeyvaluestore/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudfrontkeyvaluestore // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/cloudfrontkeyvaluestore/options.go b/service/cloudfrontkeyvaluestore/options.go index 72f1c83cd65..42b2c109c3a 100644 --- a/service/cloudfrontkeyvaluestore/options.go +++ b/service/cloudfrontkeyvaluestore/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudhsm/CHANGELOG.md b/service/cloudhsm/CHANGELOG.md index 2fd91fe27c2..52ee3fa5bfe 100644 --- a/service/cloudhsm/CHANGELOG.md +++ b/service/cloudhsm/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudhsm/api_client.go b/service/cloudhsm/api_client.go index 33f79ef2d04..c71d7c729cf 100644 --- a/service/cloudhsm/api_client.go +++ b/service/cloudhsm/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudhsm/auth.go b/service/cloudhsm/auth.go index 0084c1d1ef8..c2db89e6f85 100644 --- a/service/cloudhsm/auth.go +++ b/service/cloudhsm/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudhsm/go.mod b/service/cloudhsm/go.mod index f49b3060812..e940fa47ee0 100644 --- a/service/cloudhsm/go.mod +++ b/service/cloudhsm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsm go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudhsm/go.sum b/service/cloudhsm/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudhsm/go.sum +++ b/service/cloudhsm/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudhsm/go_module_metadata.go b/service/cloudhsm/go_module_metadata.go index 4a311e02f67..1e3ba6d3b97 100644 --- a/service/cloudhsm/go_module_metadata.go +++ b/service/cloudhsm/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudhsm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/cloudhsm/options.go b/service/cloudhsm/options.go index 98c07fe2a37..f9bb2777067 100644 --- a/service/cloudhsm/options.go +++ b/service/cloudhsm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudhsmv2/CHANGELOG.md b/service/cloudhsmv2/CHANGELOG.md index d54e8547d69..d3a832f9b24 100644 --- a/service/cloudhsmv2/CHANGELOG.md +++ b/service/cloudhsmv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudhsmv2/api_client.go b/service/cloudhsmv2/api_client.go index ffe9643592e..fbde655ddc5 100644 --- a/service/cloudhsmv2/api_client.go +++ b/service/cloudhsmv2/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudhsmv2/auth.go b/service/cloudhsmv2/auth.go index 224a6148a3d..ba18ccd9f32 100644 --- a/service/cloudhsmv2/auth.go +++ b/service/cloudhsmv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudhsmv2/go.mod b/service/cloudhsmv2/go.mod index c5869e7b7ee..4d22aa9a8f0 100644 --- a/service/cloudhsmv2/go.mod +++ b/service/cloudhsmv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudhsmv2/go.sum b/service/cloudhsmv2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudhsmv2/go.sum +++ b/service/cloudhsmv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudhsmv2/go_module_metadata.go b/service/cloudhsmv2/go_module_metadata.go index aa1830a8274..05a748571cf 100644 --- a/service/cloudhsmv2/go_module_metadata.go +++ b/service/cloudhsmv2/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudhsmv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/cloudhsmv2/options.go b/service/cloudhsmv2/options.go index 7fa290364da..87e421bb578 100644 --- a/service/cloudhsmv2/options.go +++ b/service/cloudhsmv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudsearch/CHANGELOG.md b/service/cloudsearch/CHANGELOG.md index 91dd6ce992d..31cfc54114f 100644 --- a/service/cloudsearch/CHANGELOG.md +++ b/service/cloudsearch/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudsearch/api_client.go b/service/cloudsearch/api_client.go index 207529d7c47..8fb42ff03ef 100644 --- a/service/cloudsearch/api_client.go +++ b/service/cloudsearch/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudsearch/auth.go b/service/cloudsearch/auth.go index 993d5afb1c2..dd0bf179f1d 100644 --- a/service/cloudsearch/auth.go +++ b/service/cloudsearch/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudsearch/go.mod b/service/cloudsearch/go.mod index 2a0fc16cc34..ace0c855083 100644 --- a/service/cloudsearch/go.mod +++ b/service/cloudsearch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearch go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudsearch/go.sum b/service/cloudsearch/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudsearch/go.sum +++ b/service/cloudsearch/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearch/go_module_metadata.go b/service/cloudsearch/go_module_metadata.go index 65f5881d98a..38420a74363 100644 --- a/service/cloudsearch/go_module_metadata.go +++ b/service/cloudsearch/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudsearch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/cloudsearch/options.go b/service/cloudsearch/options.go index 3b268cb1488..21f6c9d39f1 100644 --- a/service/cloudsearch/options.go +++ b/service/cloudsearch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudsearchdomain/CHANGELOG.md b/service/cloudsearchdomain/CHANGELOG.md index 4033e1bc3d3..a21835d4080 100644 --- a/service/cloudsearchdomain/CHANGELOG.md +++ b/service/cloudsearchdomain/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudsearchdomain/api_client.go b/service/cloudsearchdomain/api_client.go index c2321448ab6..a48b82f8c88 100644 --- a/service/cloudsearchdomain/api_client.go +++ b/service/cloudsearchdomain/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudsearchdomain/auth.go b/service/cloudsearchdomain/auth.go index 81cf0e0a7df..2272500dc90 100644 --- a/service/cloudsearchdomain/auth.go +++ b/service/cloudsearchdomain/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudsearchdomain/go.mod b/service/cloudsearchdomain/go.mod index be822c17507..f9ce99acdb7 100644 --- a/service/cloudsearchdomain/go.mod +++ b/service/cloudsearchdomain/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudsearchdomain go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudsearchdomain/go.sum b/service/cloudsearchdomain/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudsearchdomain/go.sum +++ b/service/cloudsearchdomain/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudsearchdomain/go_module_metadata.go b/service/cloudsearchdomain/go_module_metadata.go index 800135fc7e0..8464876b887 100644 --- a/service/cloudsearchdomain/go_module_metadata.go +++ b/service/cloudsearchdomain/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudsearchdomain // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/cloudsearchdomain/options.go b/service/cloudsearchdomain/options.go index 5d607366b95..f38c1e9acb4 100644 --- a/service/cloudsearchdomain/options.go +++ b/service/cloudsearchdomain/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudtrail/CHANGELOG.md b/service/cloudtrail/CHANGELOG.md index 3bd7cf326c9..1f63ba81298 100644 --- a/service/cloudtrail/CHANGELOG.md +++ b/service/cloudtrail/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudtrail/api_client.go b/service/cloudtrail/api_client.go index 7692dd7e44e..2d313bd4f16 100644 --- a/service/cloudtrail/api_client.go +++ b/service/cloudtrail/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudtrail/auth.go b/service/cloudtrail/auth.go index f523822c3cb..91dd3785e0f 100644 --- a/service/cloudtrail/auth.go +++ b/service/cloudtrail/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudtrail/go.mod b/service/cloudtrail/go.mod index f25186179df..8f5c1c1c342 100644 --- a/service/cloudtrail/go.mod +++ b/service/cloudtrail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudtrail go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudtrail/go.sum b/service/cloudtrail/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudtrail/go.sum +++ b/service/cloudtrail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtrail/go_module_metadata.go b/service/cloudtrail/go_module_metadata.go index 28f6f30193f..e232bbf39e4 100644 --- a/service/cloudtrail/go_module_metadata.go +++ b/service/cloudtrail/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudtrail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/cloudtrail/options.go b/service/cloudtrail/options.go index 8c03de615a2..0e7ddf1137b 100644 --- a/service/cloudtrail/options.go +++ b/service/cloudtrail/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudtraildata/CHANGELOG.md b/service/cloudtraildata/CHANGELOG.md index a1ea3c23b08..661ced721d9 100644 --- a/service/cloudtraildata/CHANGELOG.md +++ b/service/cloudtraildata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudtraildata/api_client.go b/service/cloudtraildata/api_client.go index 4c719d429b3..9e9e77ea476 100644 --- a/service/cloudtraildata/api_client.go +++ b/service/cloudtraildata/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudtraildata/auth.go b/service/cloudtraildata/auth.go index e3f37e8a130..2128d77b0c0 100644 --- a/service/cloudtraildata/auth.go +++ b/service/cloudtraildata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudtraildata/go.mod b/service/cloudtraildata/go.mod index c28264addb9..58d25e3936a 100644 --- a/service/cloudtraildata/go.mod +++ b/service/cloudtraildata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudtraildata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudtraildata/go.sum b/service/cloudtraildata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudtraildata/go.sum +++ b/service/cloudtraildata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudtraildata/go_module_metadata.go b/service/cloudtraildata/go_module_metadata.go index e6b599ec739..2c060a2069d 100644 --- a/service/cloudtraildata/go_module_metadata.go +++ b/service/cloudtraildata/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudtraildata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/cloudtraildata/options.go b/service/cloudtraildata/options.go index 0e826fa100d..95faf33ad90 100644 --- a/service/cloudtraildata/options.go +++ b/service/cloudtraildata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudwatch/CHANGELOG.md b/service/cloudwatch/CHANGELOG.md index e6c3a9a51aa..e20dbdb6798 100644 --- a/service/cloudwatch/CHANGELOG.md +++ b/service/cloudwatch/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.31.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.31.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudwatch/api_client.go b/service/cloudwatch/api_client.go index 5afd60ecd88..d6a9c0508bf 100644 --- a/service/cloudwatch/api_client.go +++ b/service/cloudwatch/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudwatch/auth.go b/service/cloudwatch/auth.go index 7e0ccc9b799..6f5d48fbe4d 100644 --- a/service/cloudwatch/auth.go +++ b/service/cloudwatch/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudwatch/go.mod b/service/cloudwatch/go.mod index 010fdaf62ea..ef30d97f7e2 100644 --- a/service/cloudwatch/go.mod +++ b/service/cloudwatch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatch go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/cloudwatch/go.sum b/service/cloudwatch/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/cloudwatch/go.sum +++ b/service/cloudwatch/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/cloudwatch/go_module_metadata.go b/service/cloudwatch/go_module_metadata.go index 4a67e9b7574..a7f7d754867 100644 --- a/service/cloudwatch/go_module_metadata.go +++ b/service/cloudwatch/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudwatch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.0" +const goModuleVersion = "1.31.2" diff --git a/service/cloudwatch/options.go b/service/cloudwatch/options.go index 86683c242f6..ad28771a6e9 100644 --- a/service/cloudwatch/options.go +++ b/service/cloudwatch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudwatchevents/CHANGELOG.md b/service/cloudwatchevents/CHANGELOG.md index 2e88f70501e..3ccd3355310 100644 --- a/service/cloudwatchevents/CHANGELOG.md +++ b/service/cloudwatchevents/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudwatchevents/api_client.go b/service/cloudwatchevents/api_client.go index 3cae7f24fca..e83e3340cf5 100644 --- a/service/cloudwatchevents/api_client.go +++ b/service/cloudwatchevents/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudwatchevents/auth.go b/service/cloudwatchevents/auth.go index c83489f645d..ea206c578ba 100644 --- a/service/cloudwatchevents/auth.go +++ b/service/cloudwatchevents/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudwatchevents/go.mod b/service/cloudwatchevents/go.mod index 635aa6dea1f..5d736e07950 100644 --- a/service/cloudwatchevents/go.mod +++ b/service/cloudwatchevents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchevents go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudwatchevents/go.sum b/service/cloudwatchevents/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudwatchevents/go.sum +++ b/service/cloudwatchevents/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatchevents/go_module_metadata.go b/service/cloudwatchevents/go_module_metadata.go index c4981631f7c..2c0efdc4d6e 100644 --- a/service/cloudwatchevents/go_module_metadata.go +++ b/service/cloudwatchevents/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudwatchevents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/cloudwatchevents/options.go b/service/cloudwatchevents/options.go index 46ff6dc34cb..c73b183f00c 100644 --- a/service/cloudwatchevents/options.go +++ b/service/cloudwatchevents/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cloudwatchlogs/CHANGELOG.md b/service/cloudwatchlogs/CHANGELOG.md index f6429aacc88..7036c0d5e47 100644 --- a/service/cloudwatchlogs/CHANGELOG.md +++ b/service/cloudwatchlogs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cloudwatchlogs/api_client.go b/service/cloudwatchlogs/api_client.go index d7d143d9f40..8174522858d 100644 --- a/service/cloudwatchlogs/api_client.go +++ b/service/cloudwatchlogs/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cloudwatchlogs/auth.go b/service/cloudwatchlogs/auth.go index be63b2ab4f0..6176570140a 100644 --- a/service/cloudwatchlogs/auth.go +++ b/service/cloudwatchlogs/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cloudwatchlogs/go.mod b/service/cloudwatchlogs/go.mod index d83136ecd2b..48718ec9e29 100644 --- a/service/cloudwatchlogs/go.mod +++ b/service/cloudwatchlogs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cloudwatchlogs/go.sum b/service/cloudwatchlogs/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cloudwatchlogs/go.sum +++ b/service/cloudwatchlogs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cloudwatchlogs/go_module_metadata.go b/service/cloudwatchlogs/go_module_metadata.go index a566138e7f3..85681370378 100644 --- a/service/cloudwatchlogs/go_module_metadata.go +++ b/service/cloudwatchlogs/go_module_metadata.go @@ -3,4 +3,4 @@ package cloudwatchlogs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/cloudwatchlogs/options.go b/service/cloudwatchlogs/options.go index d6d08cee804..87f8c97dd52 100644 --- a/service/cloudwatchlogs/options.go +++ b/service/cloudwatchlogs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codeartifact/CHANGELOG.md b/service/codeartifact/CHANGELOG.md index 9fe8420fb2a..7cf7c758ced 100644 --- a/service/codeartifact/CHANGELOG.md +++ b/service/codeartifact/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codeartifact/api_client.go b/service/codeartifact/api_client.go index be19c50411b..eaee3d24922 100644 --- a/service/codeartifact/api_client.go +++ b/service/codeartifact/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codeartifact/auth.go b/service/codeartifact/auth.go index ec73f8bc359..9ec51ffc37b 100644 --- a/service/codeartifact/auth.go +++ b/service/codeartifact/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codeartifact/go.mod b/service/codeartifact/go.mod index bbe479583b0..b755c8e5370 100644 --- a/service/codeartifact/go.mod +++ b/service/codeartifact/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeartifact go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codeartifact/go.sum b/service/codeartifact/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codeartifact/go.sum +++ b/service/codeartifact/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codeartifact/go_module_metadata.go b/service/codeartifact/go_module_metadata.go index f32cad24a1d..d6d506e37d3 100644 --- a/service/codeartifact/go_module_metadata.go +++ b/service/codeartifact/go_module_metadata.go @@ -3,4 +3,4 @@ package codeartifact // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/codeartifact/options.go b/service/codeartifact/options.go index 0e06819a2f8..b2761a75414 100644 --- a/service/codeartifact/options.go +++ b/service/codeartifact/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codebuild/CHANGELOG.md b/service/codebuild/CHANGELOG.md index b1233a70574..b58aaa8dad0 100644 --- a/service/codebuild/CHANGELOG.md +++ b/service/codebuild/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codebuild/api_client.go b/service/codebuild/api_client.go index a627c4706f9..b2f62dab71c 100644 --- a/service/codebuild/api_client.go +++ b/service/codebuild/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codebuild/auth.go b/service/codebuild/auth.go index 3fa3c0de0ae..0aa1a43c104 100644 --- a/service/codebuild/auth.go +++ b/service/codebuild/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codebuild/go.mod b/service/codebuild/go.mod index 73de09ec5a0..a9ed7c9a1aa 100644 --- a/service/codebuild/go.mod +++ b/service/codebuild/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codebuild go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codebuild/go.sum b/service/codebuild/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codebuild/go.sum +++ b/service/codebuild/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codebuild/go_module_metadata.go b/service/codebuild/go_module_metadata.go index a6ffcfbe0d1..2312918d84e 100644 --- a/service/codebuild/go_module_metadata.go +++ b/service/codebuild/go_module_metadata.go @@ -3,4 +3,4 @@ package codebuild // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/codebuild/options.go b/service/codebuild/options.go index 83121a3d7c8..632ff39e2fc 100644 --- a/service/codebuild/options.go +++ b/service/codebuild/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codecatalyst/CHANGELOG.md b/service/codecatalyst/CHANGELOG.md index c2626ddbdeb..4db57b7d4bc 100644 --- a/service/codecatalyst/CHANGELOG.md +++ b/service/codecatalyst/CHANGELOG.md @@ -1,3 +1,12 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codecatalyst/api_client.go b/service/codecatalyst/api_client.go index b5946812fbd..01a8dafd08f 100644 --- a/service/codecatalyst/api_client.go +++ b/service/codecatalyst/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codecatalyst/auth.go b/service/codecatalyst/auth.go index 3afb9ca577d..04df4106161 100644 --- a/service/codecatalyst/auth.go +++ b/service/codecatalyst/auth.go @@ -103,7 +103,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -183,7 +183,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -232,7 +232,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codecatalyst/go.mod b/service/codecatalyst/go.mod index 68a237bde04..db1ffde057f 100644 --- a/service/codecatalyst/go.mod +++ b/service/codecatalyst/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codecatalyst go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codecatalyst/go.sum b/service/codecatalyst/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codecatalyst/go.sum +++ b/service/codecatalyst/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecatalyst/go_module_metadata.go b/service/codecatalyst/go_module_metadata.go index 064a72ed604..e23dd338ede 100644 --- a/service/codecatalyst/go_module_metadata.go +++ b/service/codecatalyst/go_module_metadata.go @@ -3,4 +3,4 @@ package codecatalyst // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/codecommit/CHANGELOG.md b/service/codecommit/CHANGELOG.md index 13e7c62da56..0dfa2c7fbd9 100644 --- a/service/codecommit/CHANGELOG.md +++ b/service/codecommit/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codecommit/api_client.go b/service/codecommit/api_client.go index 7113fb3a658..5dfffd1aa82 100644 --- a/service/codecommit/api_client.go +++ b/service/codecommit/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codecommit/auth.go b/service/codecommit/auth.go index a4c1f8934b0..c8109944cbe 100644 --- a/service/codecommit/auth.go +++ b/service/codecommit/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codecommit/go.mod b/service/codecommit/go.mod index 6094af57e8e..974dc433ce7 100644 --- a/service/codecommit/go.mod +++ b/service/codecommit/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codecommit go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codecommit/go.sum b/service/codecommit/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codecommit/go.sum +++ b/service/codecommit/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codecommit/go_module_metadata.go b/service/codecommit/go_module_metadata.go index c7a6b64acbd..afb183d9335 100644 --- a/service/codecommit/go_module_metadata.go +++ b/service/codecommit/go_module_metadata.go @@ -3,4 +3,4 @@ package codecommit // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/codecommit/options.go b/service/codecommit/options.go index 4dee753b10c..b8366d5c39b 100644 --- a/service/codecommit/options.go +++ b/service/codecommit/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codedeploy/CHANGELOG.md b/service/codedeploy/CHANGELOG.md index f77b941472e..aaeb020da53 100644 --- a/service/codedeploy/CHANGELOG.md +++ b/service/codedeploy/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codedeploy/api_client.go b/service/codedeploy/api_client.go index d87007f180c..3dc773bb3a9 100644 --- a/service/codedeploy/api_client.go +++ b/service/codedeploy/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codedeploy/auth.go b/service/codedeploy/auth.go index e41f9cfd4c2..160ced1dec7 100644 --- a/service/codedeploy/auth.go +++ b/service/codedeploy/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codedeploy/go.mod b/service/codedeploy/go.mod index 0c7f4b4019c..5d03ded6282 100644 --- a/service/codedeploy/go.mod +++ b/service/codedeploy/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codedeploy go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codedeploy/go.sum b/service/codedeploy/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/codedeploy/go.sum +++ b/service/codedeploy/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codedeploy/go_module_metadata.go b/service/codedeploy/go_module_metadata.go index 20f77cd309f..a70832841df 100644 --- a/service/codedeploy/go_module_metadata.go +++ b/service/codedeploy/go_module_metadata.go @@ -3,4 +3,4 @@ package codedeploy // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/codedeploy/options.go b/service/codedeploy/options.go index 326f7c3250a..e118eed09ba 100644 --- a/service/codedeploy/options.go +++ b/service/codedeploy/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codeguruprofiler/CHANGELOG.md b/service/codeguruprofiler/CHANGELOG.md index e0e00d726c8..747b29268c4 100644 --- a/service/codeguruprofiler/CHANGELOG.md +++ b/service/codeguruprofiler/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codeguruprofiler/api_client.go b/service/codeguruprofiler/api_client.go index fb72111f35e..abcd84887b9 100644 --- a/service/codeguruprofiler/api_client.go +++ b/service/codeguruprofiler/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codeguruprofiler/auth.go b/service/codeguruprofiler/auth.go index b75bd0deac2..5d796a9ec2c 100644 --- a/service/codeguruprofiler/auth.go +++ b/service/codeguruprofiler/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codeguruprofiler/go.mod b/service/codeguruprofiler/go.mod index 403a8ebeee1..3b50f93210c 100644 --- a/service/codeguruprofiler/go.mod +++ b/service/codeguruprofiler/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codeguruprofiler go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codeguruprofiler/go.sum b/service/codeguruprofiler/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codeguruprofiler/go.sum +++ b/service/codeguruprofiler/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codeguruprofiler/go_module_metadata.go b/service/codeguruprofiler/go_module_metadata.go index 20b889f734a..703c848cb6c 100644 --- a/service/codeguruprofiler/go_module_metadata.go +++ b/service/codeguruprofiler/go_module_metadata.go @@ -3,4 +3,4 @@ package codeguruprofiler // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/codeguruprofiler/options.go b/service/codeguruprofiler/options.go index 25dce397d7a..6ea9de22b5d 100644 --- a/service/codeguruprofiler/options.go +++ b/service/codeguruprofiler/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codegurureviewer/CHANGELOG.md b/service/codegurureviewer/CHANGELOG.md index 3074ef13640..1ba8beb9fb3 100644 --- a/service/codegurureviewer/CHANGELOG.md +++ b/service/codegurureviewer/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codegurureviewer/api_client.go b/service/codegurureviewer/api_client.go index 62f4be60920..ba89b514c31 100644 --- a/service/codegurureviewer/api_client.go +++ b/service/codegurureviewer/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codegurureviewer/auth.go b/service/codegurureviewer/auth.go index eeb01489d80..08c1e9757e8 100644 --- a/service/codegurureviewer/auth.go +++ b/service/codegurureviewer/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codegurureviewer/go.mod b/service/codegurureviewer/go.mod index 787f92ccb34..b11b5092767 100644 --- a/service/codegurureviewer/go.mod +++ b/service/codegurureviewer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codegurureviewer go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/codegurureviewer/go.sum b/service/codegurureviewer/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/codegurureviewer/go.sum +++ b/service/codegurureviewer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/codegurureviewer/go_module_metadata.go b/service/codegurureviewer/go_module_metadata.go index 818e5728b8b..6dbee184afe 100644 --- a/service/codegurureviewer/go_module_metadata.go +++ b/service/codegurureviewer/go_module_metadata.go @@ -3,4 +3,4 @@ package codegurureviewer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/codegurureviewer/options.go b/service/codegurureviewer/options.go index 0b86f8d54fd..61c72bb8ee4 100644 --- a/service/codegurureviewer/options.go +++ b/service/codegurureviewer/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codegurusecurity/CHANGELOG.md b/service/codegurusecurity/CHANGELOG.md index d78af92bb64..f216b687906 100644 --- a/service/codegurusecurity/CHANGELOG.md +++ b/service/codegurusecurity/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codegurusecurity/api_client.go b/service/codegurusecurity/api_client.go index dba80cc34f3..401c91bf22a 100644 --- a/service/codegurusecurity/api_client.go +++ b/service/codegurusecurity/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codegurusecurity/auth.go b/service/codegurusecurity/auth.go index 11cca6a43ba..b74c6a7c7bd 100644 --- a/service/codegurusecurity/auth.go +++ b/service/codegurusecurity/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codegurusecurity/go.mod b/service/codegurusecurity/go.mod index b1b95354a87..99915879c9f 100644 --- a/service/codegurusecurity/go.mod +++ b/service/codegurusecurity/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codegurusecurity go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codegurusecurity/go.sum b/service/codegurusecurity/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codegurusecurity/go.sum +++ b/service/codegurusecurity/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codegurusecurity/go_module_metadata.go b/service/codegurusecurity/go_module_metadata.go index 6d9d7017b6f..8646abb7977 100644 --- a/service/codegurusecurity/go_module_metadata.go +++ b/service/codegurusecurity/go_module_metadata.go @@ -3,4 +3,4 @@ package codegurusecurity // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/codegurusecurity/options.go b/service/codegurusecurity/options.go index f1e47ebc373..cf2c2b618c5 100644 --- a/service/codegurusecurity/options.go +++ b/service/codegurusecurity/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codepipeline/CHANGELOG.md b/service/codepipeline/CHANGELOG.md index 1e8792b7e88..78ffe0ea322 100644 --- a/service/codepipeline/CHANGELOG.md +++ b/service/codepipeline/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codepipeline/api_client.go b/service/codepipeline/api_client.go index 7eef1668000..63525de45e1 100644 --- a/service/codepipeline/api_client.go +++ b/service/codepipeline/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codepipeline/auth.go b/service/codepipeline/auth.go index d912e57ea96..caae7f9a7a7 100644 --- a/service/codepipeline/auth.go +++ b/service/codepipeline/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codepipeline/go.mod b/service/codepipeline/go.mod index 2141e6f7bf5..33e4bbe7570 100644 --- a/service/codepipeline/go.mod +++ b/service/codepipeline/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codepipeline go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codepipeline/go.sum b/service/codepipeline/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codepipeline/go.sum +++ b/service/codepipeline/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codepipeline/go_module_metadata.go b/service/codepipeline/go_module_metadata.go index 990f4477d89..054bd97c791 100644 --- a/service/codepipeline/go_module_metadata.go +++ b/service/codepipeline/go_module_metadata.go @@ -3,4 +3,4 @@ package codepipeline // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/codepipeline/options.go b/service/codepipeline/options.go index 9f05ed4bd06..56223a36146 100644 --- a/service/codepipeline/options.go +++ b/service/codepipeline/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codestar/CHANGELOG.md b/service/codestar/CHANGELOG.md index 8dcef7a3166..b0b0ebdc4c6 100644 --- a/service/codestar/CHANGELOG.md +++ b/service/codestar/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codestar/api_client.go b/service/codestar/api_client.go index ead6bff753e..717ea925f0a 100644 --- a/service/codestar/api_client.go +++ b/service/codestar/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codestar/auth.go b/service/codestar/auth.go index d22a3e02449..5a6c12cb017 100644 --- a/service/codestar/auth.go +++ b/service/codestar/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codestar/go.mod b/service/codestar/go.mod index c6c9563c9cc..0dafe06f25a 100644 --- a/service/codestar/go.mod +++ b/service/codestar/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codestar go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestar/go.sum b/service/codestar/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codestar/go.sum +++ b/service/codestar/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestar/go_module_metadata.go b/service/codestar/go_module_metadata.go index af4cc3092b2..0fc5f4b0f0d 100644 --- a/service/codestar/go_module_metadata.go +++ b/service/codestar/go_module_metadata.go @@ -3,4 +3,4 @@ package codestar // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/codestar/options.go b/service/codestar/options.go index 2862e5859c8..bc184a0209e 100644 --- a/service/codestar/options.go +++ b/service/codestar/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codestarconnections/CHANGELOG.md b/service/codestarconnections/CHANGELOG.md index ce96e109737..af7efa64b62 100644 --- a/service/codestarconnections/CHANGELOG.md +++ b/service/codestarconnections/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codestarconnections/api_client.go b/service/codestarconnections/api_client.go index bad9c0b23f1..91568085915 100644 --- a/service/codestarconnections/api_client.go +++ b/service/codestarconnections/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codestarconnections/auth.go b/service/codestarconnections/auth.go index c627d0327c7..7894637ca30 100644 --- a/service/codestarconnections/auth.go +++ b/service/codestarconnections/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codestarconnections/go.mod b/service/codestarconnections/go.mod index 330a4d02cdc..a278911bed6 100644 --- a/service/codestarconnections/go.mod +++ b/service/codestarconnections/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codestarconnections go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestarconnections/go.sum b/service/codestarconnections/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codestarconnections/go.sum +++ b/service/codestarconnections/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarconnections/go_module_metadata.go b/service/codestarconnections/go_module_metadata.go index 5ab03bb6e4c..61db48ac83c 100644 --- a/service/codestarconnections/go_module_metadata.go +++ b/service/codestarconnections/go_module_metadata.go @@ -3,4 +3,4 @@ package codestarconnections // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/codestarconnections/options.go b/service/codestarconnections/options.go index be3984db7d8..6910f3816c5 100644 --- a/service/codestarconnections/options.go +++ b/service/codestarconnections/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/codestarnotifications/CHANGELOG.md b/service/codestarnotifications/CHANGELOG.md index 11f7b6fc4fc..06a7d630319 100644 --- a/service/codestarnotifications/CHANGELOG.md +++ b/service/codestarnotifications/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/codestarnotifications/api_client.go b/service/codestarnotifications/api_client.go index dcf49be71a3..c4ba82bc8b6 100644 --- a/service/codestarnotifications/api_client.go +++ b/service/codestarnotifications/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/codestarnotifications/auth.go b/service/codestarnotifications/auth.go index 9b9adcd18cd..0562a1ad2f6 100644 --- a/service/codestarnotifications/auth.go +++ b/service/codestarnotifications/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/codestarnotifications/go.mod b/service/codestarnotifications/go.mod index b721b4cb7e5..293a8cfdfba 100644 --- a/service/codestarnotifications/go.mod +++ b/service/codestarnotifications/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/codestarnotifications go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/codestarnotifications/go.sum b/service/codestarnotifications/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/codestarnotifications/go.sum +++ b/service/codestarnotifications/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/codestarnotifications/go_module_metadata.go b/service/codestarnotifications/go_module_metadata.go index 7cfe2e15694..e968d47ce88 100644 --- a/service/codestarnotifications/go_module_metadata.go +++ b/service/codestarnotifications/go_module_metadata.go @@ -3,4 +3,4 @@ package codestarnotifications // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/codestarnotifications/options.go b/service/codestarnotifications/options.go index 7d95b520a96..7c3cf5d9ff6 100644 --- a/service/codestarnotifications/options.go +++ b/service/codestarnotifications/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cognitoidentity/CHANGELOG.md b/service/cognitoidentity/CHANGELOG.md index 2e1bed3d453..185698137a0 100644 --- a/service/cognitoidentity/CHANGELOG.md +++ b/service/cognitoidentity/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cognitoidentity/api_client.go b/service/cognitoidentity/api_client.go index 12428ee6e9e..153caecd4f7 100644 --- a/service/cognitoidentity/api_client.go +++ b/service/cognitoidentity/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cognitoidentity/auth.go b/service/cognitoidentity/auth.go index 226dedc3c88..5dc347fc9cb 100644 --- a/service/cognitoidentity/auth.go +++ b/service/cognitoidentity/auth.go @@ -144,7 +144,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -224,7 +224,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -273,7 +273,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cognitoidentity/go.mod b/service/cognitoidentity/go.mod index a4e9018f310..ec7358df28b 100644 --- a/service/cognitoidentity/go.mod +++ b/service/cognitoidentity/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentity go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitoidentity/go.sum b/service/cognitoidentity/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cognitoidentity/go.sum +++ b/service/cognitoidentity/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentity/go_module_metadata.go b/service/cognitoidentity/go_module_metadata.go index 749ffa57ee7..f1d82b487d2 100644 --- a/service/cognitoidentity/go_module_metadata.go +++ b/service/cognitoidentity/go_module_metadata.go @@ -3,4 +3,4 @@ package cognitoidentity // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/cognitoidentity/options.go b/service/cognitoidentity/options.go index b7ff231e73d..e33e070cc88 100644 --- a/service/cognitoidentity/options.go +++ b/service/cognitoidentity/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cognitoidentityprovider/CHANGELOG.md b/service/cognitoidentityprovider/CHANGELOG.md index c61481efb95..307c938944b 100644 --- a/service/cognitoidentityprovider/CHANGELOG.md +++ b/service/cognitoidentityprovider/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.31.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.31.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cognitoidentityprovider/api_client.go b/service/cognitoidentityprovider/api_client.go index 460f41affc8..e9598913fdf 100644 --- a/service/cognitoidentityprovider/api_client.go +++ b/service/cognitoidentityprovider/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cognitoidentityprovider/auth.go b/service/cognitoidentityprovider/auth.go index 8b800f0ca40..eb1ff0f2525 100644 --- a/service/cognitoidentityprovider/auth.go +++ b/service/cognitoidentityprovider/auth.go @@ -276,7 +276,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -356,7 +356,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -405,7 +405,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cognitoidentityprovider/go.mod b/service/cognitoidentityprovider/go.mod index d6ddbd47091..89cf50aa583 100644 --- a/service/cognitoidentityprovider/go.mod +++ b/service/cognitoidentityprovider/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitoidentityprovider/go.sum b/service/cognitoidentityprovider/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cognitoidentityprovider/go.sum +++ b/service/cognitoidentityprovider/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitoidentityprovider/go_module_metadata.go b/service/cognitoidentityprovider/go_module_metadata.go index 4bd2db126d1..60d5996c36d 100644 --- a/service/cognitoidentityprovider/go_module_metadata.go +++ b/service/cognitoidentityprovider/go_module_metadata.go @@ -3,4 +3,4 @@ package cognitoidentityprovider // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.0" +const goModuleVersion = "1.31.2" diff --git a/service/cognitoidentityprovider/options.go b/service/cognitoidentityprovider/options.go index ca29c836a91..8f7598eabd3 100644 --- a/service/cognitoidentityprovider/options.go +++ b/service/cognitoidentityprovider/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/cognitosync/CHANGELOG.md b/service/cognitosync/CHANGELOG.md index 4033e1bc3d3..a21835d4080 100644 --- a/service/cognitosync/CHANGELOG.md +++ b/service/cognitosync/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/cognitosync/api_client.go b/service/cognitosync/api_client.go index a86e3115d78..3c356d4745e 100644 --- a/service/cognitosync/api_client.go +++ b/service/cognitosync/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/cognitosync/auth.go b/service/cognitosync/auth.go index 4bceb2cb3ab..38e6ff59a8f 100644 --- a/service/cognitosync/auth.go +++ b/service/cognitosync/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/cognitosync/go.mod b/service/cognitosync/go.mod index 557950a490d..b57a4212daf 100644 --- a/service/cognitosync/go.mod +++ b/service/cognitosync/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/cognitosync go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/cognitosync/go.sum b/service/cognitosync/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/cognitosync/go.sum +++ b/service/cognitosync/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/cognitosync/go_module_metadata.go b/service/cognitosync/go_module_metadata.go index c3b184c1b7e..438d02e5921 100644 --- a/service/cognitosync/go_module_metadata.go +++ b/service/cognitosync/go_module_metadata.go @@ -3,4 +3,4 @@ package cognitosync // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/cognitosync/options.go b/service/cognitosync/options.go index 16e91c843b9..dd58e3fbf6f 100644 --- a/service/cognitosync/options.go +++ b/service/cognitosync/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/comprehend/CHANGELOG.md b/service/comprehend/CHANGELOG.md index 70257f7714a..4882cf2dde1 100644 --- a/service/comprehend/CHANGELOG.md +++ b/service/comprehend/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/comprehend/api_client.go b/service/comprehend/api_client.go index e8da7c6b8bf..023190ab5c5 100644 --- a/service/comprehend/api_client.go +++ b/service/comprehend/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/comprehend/auth.go b/service/comprehend/auth.go index 72d0fa6e993..477250891f5 100644 --- a/service/comprehend/auth.go +++ b/service/comprehend/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/comprehend/go.mod b/service/comprehend/go.mod index b827563af49..44ebfff0295 100644 --- a/service/comprehend/go.mod +++ b/service/comprehend/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/comprehend go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/comprehend/go.sum b/service/comprehend/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/comprehend/go.sum +++ b/service/comprehend/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehend/go_module_metadata.go b/service/comprehend/go_module_metadata.go index 2e2e123be49..4fd087ab03c 100644 --- a/service/comprehend/go_module_metadata.go +++ b/service/comprehend/go_module_metadata.go @@ -3,4 +3,4 @@ package comprehend // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/comprehend/options.go b/service/comprehend/options.go index a8f7a0fb6d4..b629fee4580 100644 --- a/service/comprehend/options.go +++ b/service/comprehend/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/comprehendmedical/CHANGELOG.md b/service/comprehendmedical/CHANGELOG.md index 817ffa02c3c..55c2ba1f762 100644 --- a/service/comprehendmedical/CHANGELOG.md +++ b/service/comprehendmedical/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/comprehendmedical/api_client.go b/service/comprehendmedical/api_client.go index 8fa2ad70d1f..b40534d5171 100644 --- a/service/comprehendmedical/api_client.go +++ b/service/comprehendmedical/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/comprehendmedical/auth.go b/service/comprehendmedical/auth.go index e1a231a8525..a9ca75207e1 100644 --- a/service/comprehendmedical/auth.go +++ b/service/comprehendmedical/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/comprehendmedical/go.mod b/service/comprehendmedical/go.mod index e5c5e797597..e0b0763bde9 100644 --- a/service/comprehendmedical/go.mod +++ b/service/comprehendmedical/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/comprehendmedical go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/comprehendmedical/go.sum b/service/comprehendmedical/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/comprehendmedical/go.sum +++ b/service/comprehendmedical/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/comprehendmedical/go_module_metadata.go b/service/comprehendmedical/go_module_metadata.go index c4d490b4df7..cb1f664bf35 100644 --- a/service/comprehendmedical/go_module_metadata.go +++ b/service/comprehendmedical/go_module_metadata.go @@ -3,4 +3,4 @@ package comprehendmedical // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/comprehendmedical/options.go b/service/comprehendmedical/options.go index de51f21cabf..731c2b1d308 100644 --- a/service/comprehendmedical/options.go +++ b/service/comprehendmedical/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/computeoptimizer/CHANGELOG.md b/service/computeoptimizer/CHANGELOG.md index df441d92fb6..6e14658c057 100644 --- a/service/computeoptimizer/CHANGELOG.md +++ b/service/computeoptimizer/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.31.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.31.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.31.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/computeoptimizer/api_client.go b/service/computeoptimizer/api_client.go index df9b167038a..a5a55a98f45 100644 --- a/service/computeoptimizer/api_client.go +++ b/service/computeoptimizer/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/computeoptimizer/auth.go b/service/computeoptimizer/auth.go index c2d7338399b..49d79c17f56 100644 --- a/service/computeoptimizer/auth.go +++ b/service/computeoptimizer/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/computeoptimizer/go.mod b/service/computeoptimizer/go.mod index 57d1508772a..3d369978214 100644 --- a/service/computeoptimizer/go.mod +++ b/service/computeoptimizer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/computeoptimizer go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/computeoptimizer/go.sum b/service/computeoptimizer/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/computeoptimizer/go.sum +++ b/service/computeoptimizer/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/computeoptimizer/go_module_metadata.go b/service/computeoptimizer/go_module_metadata.go index 8afbbcb2e0a..590189b5150 100644 --- a/service/computeoptimizer/go_module_metadata.go +++ b/service/computeoptimizer/go_module_metadata.go @@ -3,4 +3,4 @@ package computeoptimizer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.31.0" +const goModuleVersion = "1.31.2" diff --git a/service/computeoptimizer/options.go b/service/computeoptimizer/options.go index b493675999e..40a0d88c8fd 100644 --- a/service/computeoptimizer/options.go +++ b/service/computeoptimizer/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/configservice/CHANGELOG.md b/service/configservice/CHANGELOG.md index 39d802e9eb7..59b72bedd37 100644 --- a/service/configservice/CHANGELOG.md +++ b/service/configservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.43.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.43.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/configservice/api_client.go b/service/configservice/api_client.go index 7f4260d91d7..abef8ca1ef8 100644 --- a/service/configservice/api_client.go +++ b/service/configservice/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/configservice/auth.go b/service/configservice/auth.go index 1ac544fcdfe..fd246998d95 100644 --- a/service/configservice/auth.go +++ b/service/configservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/configservice/go.mod b/service/configservice/go.mod index 44d608edb81..cf42fbcdf00 100644 --- a/service/configservice/go.mod +++ b/service/configservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/configservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/configservice/go.sum b/service/configservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/configservice/go.sum +++ b/service/configservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/configservice/go_module_metadata.go b/service/configservice/go_module_metadata.go index 4684061f448..f41f869662e 100644 --- a/service/configservice/go_module_metadata.go +++ b/service/configservice/go_module_metadata.go @@ -3,4 +3,4 @@ package configservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.0" +const goModuleVersion = "1.43.2" diff --git a/service/configservice/options.go b/service/configservice/options.go index 445bb614fd3..b0ba55a36f3 100644 --- a/service/configservice/options.go +++ b/service/configservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connect/CHANGELOG.md b/service/connect/CHANGELOG.md index a2236c817ea..1eeb8586388 100644 --- a/service/connect/CHANGELOG.md +++ b/service/connect/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.83.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.83.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.83.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/connect/api_client.go b/service/connect/api_client.go index bfdeb0414dd..1c79e554167 100644 --- a/service/connect/api_client.go +++ b/service/connect/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/connect/auth.go b/service/connect/auth.go index 374da248126..0b5bcb35983 100644 --- a/service/connect/auth.go +++ b/service/connect/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/connect/go.mod b/service/connect/go.mod index 975bed5a164..d0a3104ae81 100644 --- a/service/connect/go.mod +++ b/service/connect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connect go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connect/go.sum b/service/connect/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/connect/go.sum +++ b/service/connect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connect/go_module_metadata.go b/service/connect/go_module_metadata.go index fb063bdb5e2..023b8450113 100644 --- a/service/connect/go_module_metadata.go +++ b/service/connect/go_module_metadata.go @@ -3,4 +3,4 @@ package connect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.83.0" +const goModuleVersion = "1.83.2" diff --git a/service/connect/options.go b/service/connect/options.go index a252c38d215..22a86938bf8 100644 --- a/service/connect/options.go +++ b/service/connect/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectcampaigns/CHANGELOG.md b/service/connectcampaigns/CHANGELOG.md index 0f9727314b9..18fbbfe149d 100644 --- a/service/connectcampaigns/CHANGELOG.md +++ b/service/connectcampaigns/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/connectcampaigns/api_client.go b/service/connectcampaigns/api_client.go index 0bd98fda587..a63a179403e 100644 --- a/service/connectcampaigns/api_client.go +++ b/service/connectcampaigns/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/connectcampaigns/auth.go b/service/connectcampaigns/auth.go index c02a1aeb7b6..e81dc839302 100644 --- a/service/connectcampaigns/auth.go +++ b/service/connectcampaigns/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/connectcampaigns/go.mod b/service/connectcampaigns/go.mod index c04cc6c512e..9278cea8b34 100644 --- a/service/connectcampaigns/go.mod +++ b/service/connectcampaigns/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcampaigns go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcampaigns/go.sum b/service/connectcampaigns/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/connectcampaigns/go.sum +++ b/service/connectcampaigns/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcampaigns/go_module_metadata.go b/service/connectcampaigns/go_module_metadata.go index 36d960984c9..ace5f68405f 100644 --- a/service/connectcampaigns/go_module_metadata.go +++ b/service/connectcampaigns/go_module_metadata.go @@ -3,4 +3,4 @@ package connectcampaigns // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/connectcampaigns/options.go b/service/connectcampaigns/options.go index ffd05f2789d..5d4b41c0d45 100644 --- a/service/connectcampaigns/options.go +++ b/service/connectcampaigns/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectcases/CHANGELOG.md b/service/connectcases/CHANGELOG.md index 28a19ed6265..3c78ce21035 100644 --- a/service/connectcases/CHANGELOG.md +++ b/service/connectcases/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.12.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.12.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.12.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/connectcases/api_client.go b/service/connectcases/api_client.go index 35cef39e7ef..1211c36b218 100644 --- a/service/connectcases/api_client.go +++ b/service/connectcases/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/connectcases/auth.go b/service/connectcases/auth.go index 4e2e3d19d53..de3d29c20c8 100644 --- a/service/connectcases/auth.go +++ b/service/connectcases/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/connectcases/go.mod b/service/connectcases/go.mod index a080b70241b..64a6b104a1c 100644 --- a/service/connectcases/go.mod +++ b/service/connectcases/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcases go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcases/go.sum b/service/connectcases/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/connectcases/go.sum +++ b/service/connectcases/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcases/go_module_metadata.go b/service/connectcases/go_module_metadata.go index c1cf0eb0bd3..894194641a1 100644 --- a/service/connectcases/go_module_metadata.go +++ b/service/connectcases/go_module_metadata.go @@ -3,4 +3,4 @@ package connectcases // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.12.0" +const goModuleVersion = "1.12.2" diff --git a/service/connectcases/options.go b/service/connectcases/options.go index dc74c5558e0..ca167e7055e 100644 --- a/service/connectcases/options.go +++ b/service/connectcases/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectcontactlens/CHANGELOG.md b/service/connectcontactlens/CHANGELOG.md index 9b44cd37d55..f02d01e7035 100644 --- a/service/connectcontactlens/CHANGELOG.md +++ b/service/connectcontactlens/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/connectcontactlens/api_client.go b/service/connectcontactlens/api_client.go index 601ee786ba8..c6a0f48b94c 100644 --- a/service/connectcontactlens/api_client.go +++ b/service/connectcontactlens/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/connectcontactlens/auth.go b/service/connectcontactlens/auth.go index 0789db9ed3a..3088404a434 100644 --- a/service/connectcontactlens/auth.go +++ b/service/connectcontactlens/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/connectcontactlens/go.mod b/service/connectcontactlens/go.mod index b3bf7ef3156..51544e17aa6 100644 --- a/service/connectcontactlens/go.mod +++ b/service/connectcontactlens/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectcontactlens go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectcontactlens/go.sum b/service/connectcontactlens/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/connectcontactlens/go.sum +++ b/service/connectcontactlens/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectcontactlens/go_module_metadata.go b/service/connectcontactlens/go_module_metadata.go index 11429c11e79..fefea72187b 100644 --- a/service/connectcontactlens/go_module_metadata.go +++ b/service/connectcontactlens/go_module_metadata.go @@ -3,4 +3,4 @@ package connectcontactlens // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/connectcontactlens/options.go b/service/connectcontactlens/options.go index 0f551a399a0..28455ee762f 100644 --- a/service/connectcontactlens/options.go +++ b/service/connectcontactlens/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/connectparticipant/CHANGELOG.md b/service/connectparticipant/CHANGELOG.md index 5b76afa4256..8f44c528cf1 100644 --- a/service/connectparticipant/CHANGELOG.md +++ b/service/connectparticipant/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/connectparticipant/api_client.go b/service/connectparticipant/api_client.go index 2378544073b..a70c1622c39 100644 --- a/service/connectparticipant/api_client.go +++ b/service/connectparticipant/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/connectparticipant/auth.go b/service/connectparticipant/auth.go index 1cd2f4fde9c..71ce701a8b5 100644 --- a/service/connectparticipant/auth.go +++ b/service/connectparticipant/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/connectparticipant/go.mod b/service/connectparticipant/go.mod index 308f0e8cf55..1d5c186b92b 100644 --- a/service/connectparticipant/go.mod +++ b/service/connectparticipant/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/connectparticipant go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/connectparticipant/go.sum b/service/connectparticipant/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/connectparticipant/go.sum +++ b/service/connectparticipant/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/connectparticipant/go_module_metadata.go b/service/connectparticipant/go_module_metadata.go index e3249dc494e..ca39933e78b 100644 --- a/service/connectparticipant/go_module_metadata.go +++ b/service/connectparticipant/go_module_metadata.go @@ -3,4 +3,4 @@ package connectparticipant // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/connectparticipant/options.go b/service/connectparticipant/options.go index 0b0eecce656..30aa3a9591a 100644 --- a/service/connectparticipant/options.go +++ b/service/connectparticipant/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/controltower/CHANGELOG.md b/service/controltower/CHANGELOG.md index a8fb1c1a244..97f8203d354 100644 --- a/service/controltower/CHANGELOG.md +++ b/service/controltower/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/controltower/api_client.go b/service/controltower/api_client.go index 73203c4866e..93bf3470dcd 100644 --- a/service/controltower/api_client.go +++ b/service/controltower/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/controltower/auth.go b/service/controltower/auth.go index c00aa7a08a1..3f2f6adc2a6 100644 --- a/service/controltower/auth.go +++ b/service/controltower/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/controltower/go.mod b/service/controltower/go.mod index 9817f1bd0e0..3c86aeaac36 100644 --- a/service/controltower/go.mod +++ b/service/controltower/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/controltower go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/controltower/go.sum b/service/controltower/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/controltower/go.sum +++ b/service/controltower/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/controltower/go_module_metadata.go b/service/controltower/go_module_metadata.go index c8d49f17828..b5f4ff8c2a9 100644 --- a/service/controltower/go_module_metadata.go +++ b/service/controltower/go_module_metadata.go @@ -3,4 +3,4 @@ package controltower // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/controltower/options.go b/service/controltower/options.go index 5676a287bef..1e46739d68f 100644 --- a/service/controltower/options.go +++ b/service/controltower/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/costandusagereportservice/CHANGELOG.md b/service/costandusagereportservice/CHANGELOG.md index 06503142cc8..7e2abcfa0e7 100644 --- a/service/costandusagereportservice/CHANGELOG.md +++ b/service/costandusagereportservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/costandusagereportservice/api_client.go b/service/costandusagereportservice/api_client.go index 7e45041218b..5acaed656ec 100644 --- a/service/costandusagereportservice/api_client.go +++ b/service/costandusagereportservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/costandusagereportservice/auth.go b/service/costandusagereportservice/auth.go index eb84daacea8..1bce420a285 100644 --- a/service/costandusagereportservice/auth.go +++ b/service/costandusagereportservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/costandusagereportservice/go.mod b/service/costandusagereportservice/go.mod index 2ee58d0faa2..687bf0c41cb 100644 --- a/service/costandusagereportservice/go.mod +++ b/service/costandusagereportservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costandusagereportservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costandusagereportservice/go.sum b/service/costandusagereportservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/costandusagereportservice/go.sum +++ b/service/costandusagereportservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costandusagereportservice/go_module_metadata.go b/service/costandusagereportservice/go_module_metadata.go index 749351102da..a2b4a8de540 100644 --- a/service/costandusagereportservice/go_module_metadata.go +++ b/service/costandusagereportservice/go_module_metadata.go @@ -3,4 +3,4 @@ package costandusagereportservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/costandusagereportservice/options.go b/service/costandusagereportservice/options.go index f014baf42a7..7c4169b1b75 100644 --- a/service/costandusagereportservice/options.go +++ b/service/costandusagereportservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/costexplorer/CHANGELOG.md b/service/costexplorer/CHANGELOG.md index 77f500f3c57..972666b030c 100644 --- a/service/costexplorer/CHANGELOG.md +++ b/service/costexplorer/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.33.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.33.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/costexplorer/api_client.go b/service/costexplorer/api_client.go index 4e139428327..dd98b4b5e84 100644 --- a/service/costexplorer/api_client.go +++ b/service/costexplorer/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/costexplorer/auth.go b/service/costexplorer/auth.go index a2ec66add81..10044acec23 100644 --- a/service/costexplorer/auth.go +++ b/service/costexplorer/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/costexplorer/go.mod b/service/costexplorer/go.mod index f9a1f18dbd1..4ea7010ffc8 100644 --- a/service/costexplorer/go.mod +++ b/service/costexplorer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costexplorer go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costexplorer/go.sum b/service/costexplorer/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/costexplorer/go.sum +++ b/service/costexplorer/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costexplorer/go_module_metadata.go b/service/costexplorer/go_module_metadata.go index 203762c2dd2..376dca9242b 100644 --- a/service/costexplorer/go_module_metadata.go +++ b/service/costexplorer/go_module_metadata.go @@ -3,4 +3,4 @@ package costexplorer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.0" +const goModuleVersion = "1.33.2" diff --git a/service/costexplorer/options.go b/service/costexplorer/options.go index 9c29fec05bd..05922092123 100644 --- a/service/costexplorer/options.go +++ b/service/costexplorer/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/costoptimizationhub/CHANGELOG.md b/service/costoptimizationhub/CHANGELOG.md index 539d19c963a..bcbfe3a2af9 100644 --- a/service/costoptimizationhub/CHANGELOG.md +++ b/service/costoptimizationhub/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/costoptimizationhub/api_client.go b/service/costoptimizationhub/api_client.go index 11f5169bf54..944ddd99ac2 100644 --- a/service/costoptimizationhub/api_client.go +++ b/service/costoptimizationhub/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/costoptimizationhub/auth.go b/service/costoptimizationhub/auth.go index eaaebf94089..ad5251d2f75 100644 --- a/service/costoptimizationhub/auth.go +++ b/service/costoptimizationhub/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/costoptimizationhub/go.mod b/service/costoptimizationhub/go.mod index 0e2e22e7ff3..32877ffc023 100644 --- a/service/costoptimizationhub/go.mod +++ b/service/costoptimizationhub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/costoptimizationhub go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/costoptimizationhub/go.sum b/service/costoptimizationhub/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/costoptimizationhub/go.sum +++ b/service/costoptimizationhub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/costoptimizationhub/go_module_metadata.go b/service/costoptimizationhub/go_module_metadata.go index 930ca1cd1e4..37a50c0acf3 100644 --- a/service/costoptimizationhub/go_module_metadata.go +++ b/service/costoptimizationhub/go_module_metadata.go @@ -3,4 +3,4 @@ package costoptimizationhub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/costoptimizationhub/options.go b/service/costoptimizationhub/options.go index 5b9b16540f9..39941255691 100644 --- a/service/costoptimizationhub/options.go +++ b/service/costoptimizationhub/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/customerprofiles/CHANGELOG.md b/service/customerprofiles/CHANGELOG.md index 7279294ea62..d8c3273c300 100644 --- a/service/customerprofiles/CHANGELOG.md +++ b/service/customerprofiles/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.34.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.34.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/customerprofiles/api_client.go b/service/customerprofiles/api_client.go index 5573d102e2d..6c4bce4aff7 100644 --- a/service/customerprofiles/api_client.go +++ b/service/customerprofiles/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/customerprofiles/auth.go b/service/customerprofiles/auth.go index 8d9d0b27b2d..7bd68580f6f 100644 --- a/service/customerprofiles/auth.go +++ b/service/customerprofiles/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/customerprofiles/go.mod b/service/customerprofiles/go.mod index ac912e85c42..b2cadb99c42 100644 --- a/service/customerprofiles/go.mod +++ b/service/customerprofiles/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/customerprofiles go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/customerprofiles/go.sum b/service/customerprofiles/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/customerprofiles/go.sum +++ b/service/customerprofiles/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/customerprofiles/go_module_metadata.go b/service/customerprofiles/go_module_metadata.go index 71ee577327d..3d5221f7b06 100644 --- a/service/customerprofiles/go_module_metadata.go +++ b/service/customerprofiles/go_module_metadata.go @@ -3,4 +3,4 @@ package customerprofiles // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.2" diff --git a/service/customerprofiles/options.go b/service/customerprofiles/options.go index d526725ba2f..c90f1ea0318 100644 --- a/service/customerprofiles/options.go +++ b/service/customerprofiles/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/databasemigrationservice/CHANGELOG.md b/service/databasemigrationservice/CHANGELOG.md index 420fd612b56..add5005cdc5 100644 --- a/service/databasemigrationservice/CHANGELOG.md +++ b/service/databasemigrationservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/databasemigrationservice/api_client.go b/service/databasemigrationservice/api_client.go index 873b9f7776d..f9c7c9962f2 100644 --- a/service/databasemigrationservice/api_client.go +++ b/service/databasemigrationservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/databasemigrationservice/auth.go b/service/databasemigrationservice/auth.go index fb86c317ca5..d62e59c7014 100644 --- a/service/databasemigrationservice/auth.go +++ b/service/databasemigrationservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/databasemigrationservice/go.mod b/service/databasemigrationservice/go.mod index 877ce09e17d..7ea15e053af 100644 --- a/service/databasemigrationservice/go.mod +++ b/service/databasemigrationservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/databasemigrationservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/databasemigrationservice/go.sum b/service/databasemigrationservice/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/databasemigrationservice/go.sum +++ b/service/databasemigrationservice/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/databasemigrationservice/go_module_metadata.go b/service/databasemigrationservice/go_module_metadata.go index c051dd6edfa..687d1118bc8 100644 --- a/service/databasemigrationservice/go_module_metadata.go +++ b/service/databasemigrationservice/go_module_metadata.go @@ -3,4 +3,4 @@ package databasemigrationservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/databasemigrationservice/options.go b/service/databasemigrationservice/options.go index 98a5d05463d..9df0bb93e4e 100644 --- a/service/databasemigrationservice/options.go +++ b/service/databasemigrationservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/databrew/CHANGELOG.md b/service/databrew/CHANGELOG.md index 1ed74ffcca6..173588c6c16 100644 --- a/service/databrew/CHANGELOG.md +++ b/service/databrew/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.27.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/databrew/api_client.go b/service/databrew/api_client.go index 09ac36d15bc..b7b8ba0b4d7 100644 --- a/service/databrew/api_client.go +++ b/service/databrew/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/databrew/auth.go b/service/databrew/auth.go index f5ab015e507..e7bf90ede9d 100644 --- a/service/databrew/auth.go +++ b/service/databrew/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/databrew/go.mod b/service/databrew/go.mod index 1d04a090d54..1a19ee2da8f 100644 --- a/service/databrew/go.mod +++ b/service/databrew/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/databrew go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/databrew/go.sum b/service/databrew/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/databrew/go.sum +++ b/service/databrew/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/databrew/go_module_metadata.go b/service/databrew/go_module_metadata.go index c063660f1d8..34e3930d06e 100644 --- a/service/databrew/go_module_metadata.go +++ b/service/databrew/go_module_metadata.go @@ -3,4 +3,4 @@ package databrew // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.2" diff --git a/service/databrew/options.go b/service/databrew/options.go index 8caddf5f417..2a825c21f79 100644 --- a/service/databrew/options.go +++ b/service/databrew/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dataexchange/CHANGELOG.md b/service/dataexchange/CHANGELOG.md index 92a81cf8084..83e945c14f1 100644 --- a/service/dataexchange/CHANGELOG.md +++ b/service/dataexchange/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/dataexchange/api_client.go b/service/dataexchange/api_client.go index f4165741f8a..f473ae158f6 100644 --- a/service/dataexchange/api_client.go +++ b/service/dataexchange/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/dataexchange/auth.go b/service/dataexchange/auth.go index 8fe9a83dd9c..acc34d05fec 100644 --- a/service/dataexchange/auth.go +++ b/service/dataexchange/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/dataexchange/go.mod b/service/dataexchange/go.mod index 966f1d2127c..56da2737775 100644 --- a/service/dataexchange/go.mod +++ b/service/dataexchange/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dataexchange go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dataexchange/go.sum b/service/dataexchange/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/dataexchange/go.sum +++ b/service/dataexchange/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dataexchange/go_module_metadata.go b/service/dataexchange/go_module_metadata.go index 7e198cc5a38..4ccc301b28d 100644 --- a/service/dataexchange/go_module_metadata.go +++ b/service/dataexchange/go_module_metadata.go @@ -3,4 +3,4 @@ package dataexchange // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/dataexchange/options.go b/service/dataexchange/options.go index 1b742999637..2454169c899 100644 --- a/service/dataexchange/options.go +++ b/service/dataexchange/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/datapipeline/CHANGELOG.md b/service/datapipeline/CHANGELOG.md index 3818e1862d4..f175c03344e 100644 --- a/service/datapipeline/CHANGELOG.md +++ b/service/datapipeline/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/datapipeline/api_client.go b/service/datapipeline/api_client.go index 93e6f0e0d45..558afb70f3d 100644 --- a/service/datapipeline/api_client.go +++ b/service/datapipeline/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/datapipeline/auth.go b/service/datapipeline/auth.go index 95a81d7ae0c..d9c0ee7bbbd 100644 --- a/service/datapipeline/auth.go +++ b/service/datapipeline/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/datapipeline/go.mod b/service/datapipeline/go.mod index ccabc50957c..423460c1726 100644 --- a/service/datapipeline/go.mod +++ b/service/datapipeline/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datapipeline go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datapipeline/go.sum b/service/datapipeline/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/datapipeline/go.sum +++ b/service/datapipeline/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datapipeline/go_module_metadata.go b/service/datapipeline/go_module_metadata.go index a8544a7ff1e..f78c664430d 100644 --- a/service/datapipeline/go_module_metadata.go +++ b/service/datapipeline/go_module_metadata.go @@ -3,4 +3,4 @@ package datapipeline // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/datapipeline/options.go b/service/datapipeline/options.go index 1a3086daa8f..727fb49d5d3 100644 --- a/service/datapipeline/options.go +++ b/service/datapipeline/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/datasync/CHANGELOG.md b/service/datasync/CHANGELOG.md index ddc213d66ce..359f5bc9c49 100644 --- a/service/datasync/CHANGELOG.md +++ b/service/datasync/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.33.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.33.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.33.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/datasync/api_client.go b/service/datasync/api_client.go index b2ea0f5e0a5..420dd674119 100644 --- a/service/datasync/api_client.go +++ b/service/datasync/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/datasync/auth.go b/service/datasync/auth.go index 12e198aeb86..13f48c88e5a 100644 --- a/service/datasync/auth.go +++ b/service/datasync/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/datasync/go.mod b/service/datasync/go.mod index 1e6dc01fb2a..0afcdd45bb8 100644 --- a/service/datasync/go.mod +++ b/service/datasync/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datasync go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datasync/go.sum b/service/datasync/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/datasync/go.sum +++ b/service/datasync/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datasync/go_module_metadata.go b/service/datasync/go_module_metadata.go index 019aa7ef47a..a2bdbbc837e 100644 --- a/service/datasync/go_module_metadata.go +++ b/service/datasync/go_module_metadata.go @@ -3,4 +3,4 @@ package datasync // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.33.0" +const goModuleVersion = "1.33.2" diff --git a/service/datasync/options.go b/service/datasync/options.go index abb2d07f548..3b8c1675a95 100644 --- a/service/datasync/options.go +++ b/service/datasync/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/datazone/CHANGELOG.md b/service/datazone/CHANGELOG.md index 377ff4b317e..57252cd0388 100644 --- a/service/datazone/CHANGELOG.md +++ b/service/datazone/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.3.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.3.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.3.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/datazone/api_client.go b/service/datazone/api_client.go index 0e62bf4e1f9..bb74e4a5275 100644 --- a/service/datazone/api_client.go +++ b/service/datazone/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/datazone/auth.go b/service/datazone/auth.go index 630137bd271..65d0eebdee5 100644 --- a/service/datazone/auth.go +++ b/service/datazone/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/datazone/go.mod b/service/datazone/go.mod index e9b7f0f14b8..f482ac3f988 100644 --- a/service/datazone/go.mod +++ b/service/datazone/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/datazone go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/datazone/go.sum b/service/datazone/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/datazone/go.sum +++ b/service/datazone/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/datazone/go_module_metadata.go b/service/datazone/go_module_metadata.go index f14e3c72526..f56d2be94f6 100644 --- a/service/datazone/go_module_metadata.go +++ b/service/datazone/go_module_metadata.go @@ -3,4 +3,4 @@ package datazone // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.3.0" +const goModuleVersion = "1.3.2" diff --git a/service/datazone/options.go b/service/datazone/options.go index 013299152ea..a8b27c4a8f9 100644 --- a/service/datazone/options.go +++ b/service/datazone/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dax/CHANGELOG.md b/service/dax/CHANGELOG.md index 64a95baeb5a..6ad25e1d900 100644 --- a/service/dax/CHANGELOG.md +++ b/service/dax/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/dax/api_client.go b/service/dax/api_client.go index 86b29ffae3c..6ff87eccd27 100644 --- a/service/dax/api_client.go +++ b/service/dax/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/dax/auth.go b/service/dax/auth.go index a9c91e1750c..7a78931fe67 100644 --- a/service/dax/auth.go +++ b/service/dax/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/dax/go.mod b/service/dax/go.mod index 0c8ef5052fa..fa3640dddf9 100644 --- a/service/dax/go.mod +++ b/service/dax/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dax go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dax/go.sum b/service/dax/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/dax/go.sum +++ b/service/dax/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dax/go_module_metadata.go b/service/dax/go_module_metadata.go index 5aa140c1bf8..e8466e1d28b 100644 --- a/service/dax/go_module_metadata.go +++ b/service/dax/go_module_metadata.go @@ -3,4 +3,4 @@ package dax // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/dax/options.go b/service/dax/options.go index 61c8157df53..e07ae364ddc 100644 --- a/service/dax/options.go +++ b/service/dax/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/detective/CHANGELOG.md b/service/detective/CHANGELOG.md index cae2d537156..21ba4a1d108 100644 --- a/service/detective/CHANGELOG.md +++ b/service/detective/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/detective/api_client.go b/service/detective/api_client.go index 608fbb31f5b..98f23d8eb97 100644 --- a/service/detective/api_client.go +++ b/service/detective/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/detective/auth.go b/service/detective/auth.go index fc139213614..dc16d186c7f 100644 --- a/service/detective/auth.go +++ b/service/detective/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/detective/go.mod b/service/detective/go.mod index fb025ec8e40..d7c4b143d3c 100644 --- a/service/detective/go.mod +++ b/service/detective/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/detective go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/detective/go.sum b/service/detective/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/detective/go.sum +++ b/service/detective/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/detective/go_module_metadata.go b/service/detective/go_module_metadata.go index ed4f2b80ff8..be37f8d42fc 100644 --- a/service/detective/go_module_metadata.go +++ b/service/detective/go_module_metadata.go @@ -3,4 +3,4 @@ package detective // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/detective/options.go b/service/detective/options.go index 5f3387b809e..392cb3b24a0 100644 --- a/service/detective/options.go +++ b/service/detective/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/devicefarm/CHANGELOG.md b/service/devicefarm/CHANGELOG.md index b966cdab75f..7f22d68601d 100644 --- a/service/devicefarm/CHANGELOG.md +++ b/service/devicefarm/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/devicefarm/api_client.go b/service/devicefarm/api_client.go index 40e5eefa100..8acbbaa570b 100644 --- a/service/devicefarm/api_client.go +++ b/service/devicefarm/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/devicefarm/auth.go b/service/devicefarm/auth.go index 116d0d53877..f6ffdaac2a7 100644 --- a/service/devicefarm/auth.go +++ b/service/devicefarm/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/devicefarm/go.mod b/service/devicefarm/go.mod index d6f091f3e3e..aedd60a7323 100644 --- a/service/devicefarm/go.mod +++ b/service/devicefarm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/devicefarm go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/devicefarm/go.sum b/service/devicefarm/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/devicefarm/go.sum +++ b/service/devicefarm/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devicefarm/go_module_metadata.go b/service/devicefarm/go_module_metadata.go index 01683debd29..c0c40cbf8b2 100644 --- a/service/devicefarm/go_module_metadata.go +++ b/service/devicefarm/go_module_metadata.go @@ -3,4 +3,4 @@ package devicefarm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/devicefarm/options.go b/service/devicefarm/options.go index 6f85194f02b..037aecc00d1 100644 --- a/service/devicefarm/options.go +++ b/service/devicefarm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/devopsguru/CHANGELOG.md b/service/devopsguru/CHANGELOG.md index 76d5046bbd7..cc6fdad9c4a 100644 --- a/service/devopsguru/CHANGELOG.md +++ b/service/devopsguru/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/devopsguru/api_client.go b/service/devopsguru/api_client.go index 1a4e2cc6fda..aca68d2523a 100644 --- a/service/devopsguru/api_client.go +++ b/service/devopsguru/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/devopsguru/auth.go b/service/devopsguru/auth.go index b1c31f1c782..5d995ed2ab1 100644 --- a/service/devopsguru/auth.go +++ b/service/devopsguru/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/devopsguru/go.mod b/service/devopsguru/go.mod index a0bd85615a0..a855d367c9c 100644 --- a/service/devopsguru/go.mod +++ b/service/devopsguru/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/devopsguru go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/devopsguru/go.sum b/service/devopsguru/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/devopsguru/go.sum +++ b/service/devopsguru/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/devopsguru/go_module_metadata.go b/service/devopsguru/go_module_metadata.go index a703d7eac72..64485c25a9f 100644 --- a/service/devopsguru/go_module_metadata.go +++ b/service/devopsguru/go_module_metadata.go @@ -3,4 +3,4 @@ package devopsguru // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/devopsguru/options.go b/service/devopsguru/options.go index 2073ce52d4a..8e8082ac588 100644 --- a/service/devopsguru/options.go +++ b/service/devopsguru/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/directconnect/CHANGELOG.md b/service/directconnect/CHANGELOG.md index 8562908b2d2..1e86573f655 100644 --- a/service/directconnect/CHANGELOG.md +++ b/service/directconnect/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/directconnect/api_client.go b/service/directconnect/api_client.go index 006c3745727..17167ebeb56 100644 --- a/service/directconnect/api_client.go +++ b/service/directconnect/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/directconnect/auth.go b/service/directconnect/auth.go index 4cb6ec1f821..83de9d41f9a 100644 --- a/service/directconnect/auth.go +++ b/service/directconnect/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/directconnect/go.mod b/service/directconnect/go.mod index 940f83bea49..fc3488bb759 100644 --- a/service/directconnect/go.mod +++ b/service/directconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directconnect go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/directconnect/go.sum b/service/directconnect/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/directconnect/go.sum +++ b/service/directconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directconnect/go_module_metadata.go b/service/directconnect/go_module_metadata.go index 87fe02f1001..187d6eb636a 100644 --- a/service/directconnect/go_module_metadata.go +++ b/service/directconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package directconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/directconnect/options.go b/service/directconnect/options.go index 62b817a7d92..33cc83020c3 100644 --- a/service/directconnect/options.go +++ b/service/directconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/directoryservice/CHANGELOG.md b/service/directoryservice/CHANGELOG.md index 2f57a415619..bb6ab2252fb 100644 --- a/service/directoryservice/CHANGELOG.md +++ b/service/directoryservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/directoryservice/api_client.go b/service/directoryservice/api_client.go index 3c0215bdff0..1c329406495 100644 --- a/service/directoryservice/api_client.go +++ b/service/directoryservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/directoryservice/auth.go b/service/directoryservice/auth.go index 64e086fd1d8..a66bd4e5eda 100644 --- a/service/directoryservice/auth.go +++ b/service/directoryservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/directoryservice/go.mod b/service/directoryservice/go.mod index 6c05280f79c..c72424b82ba 100644 --- a/service/directoryservice/go.mod +++ b/service/directoryservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/directoryservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/directoryservice/go.sum b/service/directoryservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/directoryservice/go.sum +++ b/service/directoryservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/directoryservice/go_module_metadata.go b/service/directoryservice/go_module_metadata.go index e8af78de0e5..cabefc010c6 100644 --- a/service/directoryservice/go_module_metadata.go +++ b/service/directoryservice/go_module_metadata.go @@ -3,4 +3,4 @@ package directoryservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/directoryservice/options.go b/service/directoryservice/options.go index 0cb5b846415..5879887d4e7 100644 --- a/service/directoryservice/options.go +++ b/service/directoryservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dlm/CHANGELOG.md b/service/dlm/CHANGELOG.md index 46b5dffb276..77915e532f2 100644 --- a/service/dlm/CHANGELOG.md +++ b/service/dlm/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/dlm/api_client.go b/service/dlm/api_client.go index e9cd7ab8bd6..d6cf78ede54 100644 --- a/service/dlm/api_client.go +++ b/service/dlm/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/dlm/auth.go b/service/dlm/auth.go index 6f05365b12f..b0758cdf580 100644 --- a/service/dlm/auth.go +++ b/service/dlm/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/dlm/go.mod b/service/dlm/go.mod index 8a077d6b720..efcea1acb4e 100644 --- a/service/dlm/go.mod +++ b/service/dlm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dlm go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dlm/go.sum b/service/dlm/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/dlm/go.sum +++ b/service/dlm/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dlm/go_module_metadata.go b/service/dlm/go_module_metadata.go index 522c9c4b0a4..edd65a8532e 100644 --- a/service/dlm/go_module_metadata.go +++ b/service/dlm/go_module_metadata.go @@ -3,4 +3,4 @@ package dlm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/dlm/options.go b/service/dlm/options.go index bcae965f8a8..29b8571233e 100644 --- a/service/dlm/options.go +++ b/service/dlm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/docdb/CHANGELOG.md b/service/docdb/CHANGELOG.md index 0f09f50f466..6e4cbc15c67 100644 --- a/service/docdb/CHANGELOG.md +++ b/service/docdb/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/docdb/api_client.go b/service/docdb/api_client.go index 27c98d82fbc..216f3c80919 100644 --- a/service/docdb/api_client.go +++ b/service/docdb/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/docdb/auth.go b/service/docdb/auth.go index c8c59847b01..f14c6dcccc9 100644 --- a/service/docdb/auth.go +++ b/service/docdb/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/docdb/go.mod b/service/docdb/go.mod index 28e824660d6..f76a4afa64c 100644 --- a/service/docdb/go.mod +++ b/service/docdb/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/docdb go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/docdb/go.sum b/service/docdb/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/docdb/go.sum +++ b/service/docdb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/docdb/go_module_metadata.go b/service/docdb/go_module_metadata.go index b2a8f342e74..6ad6ae83f27 100644 --- a/service/docdb/go_module_metadata.go +++ b/service/docdb/go_module_metadata.go @@ -3,4 +3,4 @@ package docdb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/docdb/options.go b/service/docdb/options.go index a0180ea06c1..a9ad411ea5a 100644 --- a/service/docdb/options.go +++ b/service/docdb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/docdbelastic/CHANGELOG.md b/service/docdbelastic/CHANGELOG.md index f458b8d4285..28d6777d6b6 100644 --- a/service/docdbelastic/CHANGELOG.md +++ b/service/docdbelastic/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/docdbelastic/api_client.go b/service/docdbelastic/api_client.go index cd1e087b92c..50c410299bb 100644 --- a/service/docdbelastic/api_client.go +++ b/service/docdbelastic/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/docdbelastic/auth.go b/service/docdbelastic/auth.go index 7639084ed9b..a86c73f8362 100644 --- a/service/docdbelastic/auth.go +++ b/service/docdbelastic/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/docdbelastic/go.mod b/service/docdbelastic/go.mod index 6e5fe7493e8..e7cadfa6f20 100644 --- a/service/docdbelastic/go.mod +++ b/service/docdbelastic/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/docdbelastic go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/docdbelastic/go.sum b/service/docdbelastic/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/docdbelastic/go.sum +++ b/service/docdbelastic/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/docdbelastic/go_module_metadata.go b/service/docdbelastic/go_module_metadata.go index f1c5ba4efbf..e7a78707015 100644 --- a/service/docdbelastic/go_module_metadata.go +++ b/service/docdbelastic/go_module_metadata.go @@ -3,4 +3,4 @@ package docdbelastic // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/docdbelastic/options.go b/service/docdbelastic/options.go index 9ee42867161..f305f3640fc 100644 --- a/service/docdbelastic/options.go +++ b/service/docdbelastic/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/drs/CHANGELOG.md b/service/drs/CHANGELOG.md index 3734606c63c..86c058f406d 100644 --- a/service/drs/CHANGELOG.md +++ b/service/drs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/drs/api_client.go b/service/drs/api_client.go index 45c66dd910f..c826a5e9089 100644 --- a/service/drs/api_client.go +++ b/service/drs/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/drs/auth.go b/service/drs/auth.go index 4be9b201bc7..ae9ad6d87d7 100644 --- a/service/drs/auth.go +++ b/service/drs/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/drs/go.mod b/service/drs/go.mod index f4d4edcf85f..aae24db38fd 100644 --- a/service/drs/go.mod +++ b/service/drs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/drs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/drs/go.sum b/service/drs/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/drs/go.sum +++ b/service/drs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/drs/go_module_metadata.go b/service/drs/go_module_metadata.go index 7c1ab1dc76a..b5a4f6cb4c7 100644 --- a/service/drs/go_module_metadata.go +++ b/service/drs/go_module_metadata.go @@ -3,4 +3,4 @@ package drs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/drs/options.go b/service/drs/options.go index 800fd27e758..10caa52299e 100644 --- a/service/drs/options.go +++ b/service/drs/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dynamodb/CHANGELOG.md b/service/dynamodb/CHANGELOG.md index 3195ecc69ea..05da657769b 100644 --- a/service/dynamodb/CHANGELOG.md +++ b/service/dynamodb/CHANGELOG.md @@ -1,3 +1,18 @@ +# v1.26.3 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.2 (2023-11-30.2) + +* **Bug Fix**: Respect caller region overrides in endpoint discovery. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/dynamodb/api_client.go b/service/dynamodb/api_client.go index aea21d7feea..5da008a6d33 100644 --- a/service/dynamodb/api_client.go +++ b/service/dynamodb/api_client.go @@ -155,7 +155,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -164,7 +164,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } @@ -473,8 +473,10 @@ func resolveEnableEndpointDiscovery(o *Options) { o.EndpointDiscovery.EnableEndpointDiscovery = aws.EndpointDiscoveryAuto } -func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input *DescribeEndpointsInput, key string, opt internalEndpointDiscovery.DiscoverEndpointOptions) (internalEndpointDiscovery.Endpoint, error) { +func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input *DescribeEndpointsInput, region, key string, opt internalEndpointDiscovery.DiscoverEndpointOptions) (internalEndpointDiscovery.Endpoint, error) { output, err := c.DescribeEndpoints(ctx, input, func(o *Options) { + o.Region = region + o.EndpointOptions.DisableHTTPS = opt.DisableHTTPS o.Logger = opt.Logger }) diff --git a/service/dynamodb/api_op_BatchGetItem.go b/service/dynamodb/api_op_BatchGetItem.go index 2cd44f71344..3b715ebeda6 100644 --- a/service/dynamodb/api_op_BatchGetItem.go +++ b/service/dynamodb/api_op_BatchGetItem.go @@ -266,10 +266,11 @@ func addOpBatchGetItemDiscoverEndpointMiddleware(stack *middleware.Stack, o Opti DiscoverOperation: c.fetchOpBatchGetItemDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpBatchGetItemDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpBatchGetItemDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*BatchGetItemInput) if !ok { @@ -278,6 +279,7 @@ func (c *Client) fetchOpBatchGetItemDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -292,7 +294,7 @@ func (c *Client) fetchOpBatchGetItemDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_BatchWriteItem.go b/service/dynamodb/api_op_BatchWriteItem.go index 01569a15826..19d9eb5177a 100644 --- a/service/dynamodb/api_op_BatchWriteItem.go +++ b/service/dynamodb/api_op_BatchWriteItem.go @@ -284,10 +284,11 @@ func addOpBatchWriteItemDiscoverEndpointMiddleware(stack *middleware.Stack, o Op DiscoverOperation: c.fetchOpBatchWriteItemDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpBatchWriteItemDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpBatchWriteItemDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*BatchWriteItemInput) if !ok { @@ -296,6 +297,7 @@ func (c *Client) fetchOpBatchWriteItemDiscoverEndpoint(ctx context.Context, optF _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -310,7 +312,7 @@ func (c *Client) fetchOpBatchWriteItemDiscoverEndpoint(ctx context.Context, optF fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_CreateBackup.go b/service/dynamodb/api_op_CreateBackup.go index 73115570dbf..83c266cbd65 100644 --- a/service/dynamodb/api_op_CreateBackup.go +++ b/service/dynamodb/api_op_CreateBackup.go @@ -171,10 +171,11 @@ func addOpCreateBackupDiscoverEndpointMiddleware(stack *middleware.Stack, o Opti DiscoverOperation: c.fetchOpCreateBackupDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCreateBackupDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCreateBackupDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CreateBackupInput) if !ok { @@ -183,6 +184,7 @@ func (c *Client) fetchOpCreateBackupDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -197,7 +199,7 @@ func (c *Client) fetchOpCreateBackupDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_CreateGlobalTable.go b/service/dynamodb/api_op_CreateGlobalTable.go index 4e7d48b7786..3747567a61e 100644 --- a/service/dynamodb/api_op_CreateGlobalTable.go +++ b/service/dynamodb/api_op_CreateGlobalTable.go @@ -190,10 +190,11 @@ func addOpCreateGlobalTableDiscoverEndpointMiddleware(stack *middleware.Stack, o DiscoverOperation: c.fetchOpCreateGlobalTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCreateGlobalTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCreateGlobalTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CreateGlobalTableInput) if !ok { @@ -202,6 +203,7 @@ func (c *Client) fetchOpCreateGlobalTableDiscoverEndpoint(ctx context.Context, o _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -216,7 +218,7 @@ func (c *Client) fetchOpCreateGlobalTableDiscoverEndpoint(ctx context.Context, o fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_CreateTable.go b/service/dynamodb/api_op_CreateTable.go index 2688198b8a7..f13d1cf0c88 100644 --- a/service/dynamodb/api_op_CreateTable.go +++ b/service/dynamodb/api_op_CreateTable.go @@ -291,10 +291,11 @@ func addOpCreateTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpCreateTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CreateTableInput) if !ok { @@ -303,6 +304,7 @@ func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -317,7 +319,7 @@ func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DeleteBackup.go b/service/dynamodb/api_op_DeleteBackup.go index 9e2e2382e1f..8cdc7465d5f 100644 --- a/service/dynamodb/api_op_DeleteBackup.go +++ b/service/dynamodb/api_op_DeleteBackup.go @@ -150,10 +150,11 @@ func addOpDeleteBackupDiscoverEndpointMiddleware(stack *middleware.Stack, o Opti DiscoverOperation: c.fetchOpDeleteBackupDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDeleteBackupDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDeleteBackupDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DeleteBackupInput) if !ok { @@ -162,6 +163,7 @@ func (c *Client) fetchOpDeleteBackupDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -176,7 +178,7 @@ func (c *Client) fetchOpDeleteBackupDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DeleteItem.go b/service/dynamodb/api_op_DeleteItem.go index 2f4cb0447c9..a419f531c14 100644 --- a/service/dynamodb/api_op_DeleteItem.go +++ b/service/dynamodb/api_op_DeleteItem.go @@ -286,10 +286,11 @@ func addOpDeleteItemDiscoverEndpointMiddleware(stack *middleware.Stack, o Option DiscoverOperation: c.fetchOpDeleteItemDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDeleteItemDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDeleteItemDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DeleteItemInput) if !ok { @@ -298,6 +299,7 @@ func (c *Client) fetchOpDeleteItemDiscoverEndpoint(ctx context.Context, optFns . _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -312,7 +314,7 @@ func (c *Client) fetchOpDeleteItemDiscoverEndpoint(ctx context.Context, optFns . fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DeleteTable.go b/service/dynamodb/api_op_DeleteTable.go index 4d4887ade42..620e0dc83b9 100644 --- a/service/dynamodb/api_op_DeleteTable.go +++ b/service/dynamodb/api_op_DeleteTable.go @@ -165,10 +165,11 @@ func addOpDeleteTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpDeleteTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DeleteTableInput) if !ok { @@ -177,6 +178,7 @@ func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -191,7 +193,7 @@ func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeBackup.go b/service/dynamodb/api_op_DescribeBackup.go index 4d8df37a8e4..6fbbc24848e 100644 --- a/service/dynamodb/api_op_DescribeBackup.go +++ b/service/dynamodb/api_op_DescribeBackup.go @@ -150,10 +150,11 @@ func addOpDescribeBackupDiscoverEndpointMiddleware(stack *middleware.Stack, o Op DiscoverOperation: c.fetchOpDescribeBackupDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeBackupDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeBackupDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeBackupInput) if !ok { @@ -162,6 +163,7 @@ func (c *Client) fetchOpDescribeBackupDiscoverEndpoint(ctx context.Context, optF _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -176,7 +178,7 @@ func (c *Client) fetchOpDescribeBackupDiscoverEndpoint(ctx context.Context, optF fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeContinuousBackups.go b/service/dynamodb/api_op_DescribeContinuousBackups.go index a8c8a551c9a..b34230c0f86 100644 --- a/service/dynamodb/api_op_DescribeContinuousBackups.go +++ b/service/dynamodb/api_op_DescribeContinuousBackups.go @@ -159,10 +159,11 @@ func addOpDescribeContinuousBackupsDiscoverEndpointMiddleware(stack *middleware. DiscoverOperation: c.fetchOpDescribeContinuousBackupsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeContinuousBackupsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeContinuousBackupsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeContinuousBackupsInput) if !ok { @@ -171,6 +172,7 @@ func (c *Client) fetchOpDescribeContinuousBackupsDiscoverEndpoint(ctx context.Co _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -185,7 +187,7 @@ func (c *Client) fetchOpDescribeContinuousBackupsDiscoverEndpoint(ctx context.Co fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeGlobalTable.go b/service/dynamodb/api_op_DescribeGlobalTable.go index cc19679a267..54018ab9546 100644 --- a/service/dynamodb/api_op_DescribeGlobalTable.go +++ b/service/dynamodb/api_op_DescribeGlobalTable.go @@ -157,10 +157,11 @@ func addOpDescribeGlobalTableDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpDescribeGlobalTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeGlobalTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeGlobalTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeGlobalTableInput) if !ok { @@ -169,6 +170,7 @@ func (c *Client) fetchOpDescribeGlobalTableDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -183,7 +185,7 @@ func (c *Client) fetchOpDescribeGlobalTableDiscoverEndpoint(ctx context.Context, fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeGlobalTableSettings.go b/service/dynamodb/api_op_DescribeGlobalTableSettings.go index d82dd82b413..a4bc35832ed 100644 --- a/service/dynamodb/api_op_DescribeGlobalTableSettings.go +++ b/service/dynamodb/api_op_DescribeGlobalTableSettings.go @@ -160,10 +160,11 @@ func addOpDescribeGlobalTableSettingsDiscoverEndpointMiddleware(stack *middlewar DiscoverOperation: c.fetchOpDescribeGlobalTableSettingsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeGlobalTableSettingsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeGlobalTableSettingsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeGlobalTableSettingsInput) if !ok { @@ -172,6 +173,7 @@ func (c *Client) fetchOpDescribeGlobalTableSettingsDiscoverEndpoint(ctx context. _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -186,7 +188,7 @@ func (c *Client) fetchOpDescribeGlobalTableSettingsDiscoverEndpoint(ctx context. fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeKinesisStreamingDestination.go b/service/dynamodb/api_op_DescribeKinesisStreamingDestination.go index 81dbdeb841c..dc1a38b22d5 100644 --- a/service/dynamodb/api_op_DescribeKinesisStreamingDestination.go +++ b/service/dynamodb/api_op_DescribeKinesisStreamingDestination.go @@ -152,10 +152,11 @@ func addOpDescribeKinesisStreamingDestinationDiscoverEndpointMiddleware(stack *m DiscoverOperation: c.fetchOpDescribeKinesisStreamingDestinationDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeKinesisStreamingDestinationDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeKinesisStreamingDestinationDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeKinesisStreamingDestinationInput) if !ok { @@ -164,6 +165,7 @@ func (c *Client) fetchOpDescribeKinesisStreamingDestinationDiscoverEndpoint(ctx _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -178,7 +180,7 @@ func (c *Client) fetchOpDescribeKinesisStreamingDestinationDiscoverEndpoint(ctx fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeLimits.go b/service/dynamodb/api_op_DescribeLimits.go index 89753aa12d1..ebeb13a1092 100644 --- a/service/dynamodb/api_op_DescribeLimits.go +++ b/service/dynamodb/api_op_DescribeLimits.go @@ -193,10 +193,11 @@ func addOpDescribeLimitsDiscoverEndpointMiddleware(stack *middleware.Stack, o Op DiscoverOperation: c.fetchOpDescribeLimitsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeLimitsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeLimitsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeLimitsInput) if !ok { @@ -205,6 +206,7 @@ func (c *Client) fetchOpDescribeLimitsDiscoverEndpoint(ctx context.Context, optF _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -219,7 +221,7 @@ func (c *Client) fetchOpDescribeLimitsDiscoverEndpoint(ctx context.Context, optF fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeTable.go b/service/dynamodb/api_op_DescribeTable.go index 5b7bc648663..f57a700479e 100644 --- a/service/dynamodb/api_op_DescribeTable.go +++ b/service/dynamodb/api_op_DescribeTable.go @@ -163,10 +163,11 @@ func addOpDescribeTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Opt DiscoverOperation: c.fetchOpDescribeTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeTableInput) if !ok { @@ -175,6 +176,7 @@ func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, optFn _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -189,7 +191,7 @@ func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, optFn fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DescribeTimeToLive.go b/service/dynamodb/api_op_DescribeTimeToLive.go index 1dd79dc1323..524def9c942 100644 --- a/service/dynamodb/api_op_DescribeTimeToLive.go +++ b/service/dynamodb/api_op_DescribeTimeToLive.go @@ -149,10 +149,11 @@ func addOpDescribeTimeToLiveDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpDescribeTimeToLiveDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeTimeToLiveDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeTimeToLiveDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeTimeToLiveInput) if !ok { @@ -161,6 +162,7 @@ func (c *Client) fetchOpDescribeTimeToLiveDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -175,7 +177,7 @@ func (c *Client) fetchOpDescribeTimeToLiveDiscoverEndpoint(ctx context.Context, fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_DisableKinesisStreamingDestination.go b/service/dynamodb/api_op_DisableKinesisStreamingDestination.go index 67ea0f2ea6b..81b43d04dfe 100644 --- a/service/dynamodb/api_op_DisableKinesisStreamingDestination.go +++ b/service/dynamodb/api_op_DisableKinesisStreamingDestination.go @@ -161,10 +161,11 @@ func addOpDisableKinesisStreamingDestinationDiscoverEndpointMiddleware(stack *mi DiscoverOperation: c.fetchOpDisableKinesisStreamingDestinationDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDisableKinesisStreamingDestinationDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDisableKinesisStreamingDestinationDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DisableKinesisStreamingDestinationInput) if !ok { @@ -173,6 +174,7 @@ func (c *Client) fetchOpDisableKinesisStreamingDestinationDiscoverEndpoint(ctx c _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -187,7 +189,7 @@ func (c *Client) fetchOpDisableKinesisStreamingDestinationDiscoverEndpoint(ctx c fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_EnableKinesisStreamingDestination.go b/service/dynamodb/api_op_EnableKinesisStreamingDestination.go index 74784c52cf0..6eee7606b65 100644 --- a/service/dynamodb/api_op_EnableKinesisStreamingDestination.go +++ b/service/dynamodb/api_op_EnableKinesisStreamingDestination.go @@ -163,10 +163,11 @@ func addOpEnableKinesisStreamingDestinationDiscoverEndpointMiddleware(stack *mid DiscoverOperation: c.fetchOpEnableKinesisStreamingDestinationDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpEnableKinesisStreamingDestinationDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpEnableKinesisStreamingDestinationDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*EnableKinesisStreamingDestinationInput) if !ok { @@ -175,6 +176,7 @@ func (c *Client) fetchOpEnableKinesisStreamingDestinationDiscoverEndpoint(ctx co _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -189,7 +191,7 @@ func (c *Client) fetchOpEnableKinesisStreamingDestinationDiscoverEndpoint(ctx co fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_GetItem.go b/service/dynamodb/api_op_GetItem.go index df6595e8ce9..e4a3ed39e7e 100644 --- a/service/dynamodb/api_op_GetItem.go +++ b/service/dynamodb/api_op_GetItem.go @@ -230,10 +230,11 @@ func addOpGetItemDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, DiscoverOperation: c.fetchOpGetItemDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpGetItemDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpGetItemDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*GetItemInput) if !ok { @@ -242,6 +243,7 @@ func (c *Client) fetchOpGetItemDiscoverEndpoint(ctx context.Context, optFns ...f _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -256,7 +258,7 @@ func (c *Client) fetchOpGetItemDiscoverEndpoint(ctx context.Context, optFns ...f fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_ListBackups.go b/service/dynamodb/api_op_ListBackups.go index 5d7f269a761..7b4337aa3cf 100644 --- a/service/dynamodb/api_op_ListBackups.go +++ b/service/dynamodb/api_op_ListBackups.go @@ -190,10 +190,11 @@ func addOpListBackupsDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpListBackupsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListBackupsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListBackupsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListBackupsInput) if !ok { @@ -202,6 +203,7 @@ func (c *Client) fetchOpListBackupsDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -216,7 +218,7 @@ func (c *Client) fetchOpListBackupsDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_ListGlobalTables.go b/service/dynamodb/api_op_ListGlobalTables.go index c3e07f76d08..c95a235d243 100644 --- a/service/dynamodb/api_op_ListGlobalTables.go +++ b/service/dynamodb/api_op_ListGlobalTables.go @@ -165,10 +165,11 @@ func addOpListGlobalTablesDiscoverEndpointMiddleware(stack *middleware.Stack, o DiscoverOperation: c.fetchOpListGlobalTablesDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListGlobalTablesDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListGlobalTablesDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListGlobalTablesInput) if !ok { @@ -177,6 +178,7 @@ func (c *Client) fetchOpListGlobalTablesDiscoverEndpoint(ctx context.Context, op _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -191,7 +193,7 @@ func (c *Client) fetchOpListGlobalTablesDiscoverEndpoint(ctx context.Context, op fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_ListTables.go b/service/dynamodb/api_op_ListTables.go index 1bcfe6f4c41..8f452044797 100644 --- a/service/dynamodb/api_op_ListTables.go +++ b/service/dynamodb/api_op_ListTables.go @@ -164,10 +164,11 @@ func addOpListTablesDiscoverEndpointMiddleware(stack *middleware.Stack, o Option DiscoverOperation: c.fetchOpListTablesDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListTablesInput) if !ok { @@ -176,6 +177,7 @@ func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, optFns . _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -190,7 +192,7 @@ func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, optFns . fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_ListTagsOfResource.go b/service/dynamodb/api_op_ListTagsOfResource.go index 6f92cc2e412..d5e4a398efb 100644 --- a/service/dynamodb/api_op_ListTagsOfResource.go +++ b/service/dynamodb/api_op_ListTagsOfResource.go @@ -162,10 +162,11 @@ func addOpListTagsOfResourceDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpListTagsOfResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListTagsOfResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListTagsOfResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListTagsOfResourceInput) if !ok { @@ -174,6 +175,7 @@ func (c *Client) fetchOpListTagsOfResourceDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -188,7 +190,7 @@ func (c *Client) fetchOpListTagsOfResourceDiscoverEndpoint(ctx context.Context, fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_PutItem.go b/service/dynamodb/api_op_PutItem.go index fb61bdbedbc..9b283842cd0 100644 --- a/service/dynamodb/api_op_PutItem.go +++ b/service/dynamodb/api_op_PutItem.go @@ -305,10 +305,11 @@ func addOpPutItemDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, DiscoverOperation: c.fetchOpPutItemDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpPutItemDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpPutItemDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*PutItemInput) if !ok { @@ -317,6 +318,7 @@ func (c *Client) fetchOpPutItemDiscoverEndpoint(ctx context.Context, optFns ...f _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -331,7 +333,7 @@ func (c *Client) fetchOpPutItemDiscoverEndpoint(ctx context.Context, optFns ...f fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_Query.go b/service/dynamodb/api_op_Query.go index 7a974b4efff..f5cff1836d4 100644 --- a/service/dynamodb/api_op_Query.go +++ b/service/dynamodb/api_op_Query.go @@ -440,10 +440,11 @@ func addOpQueryDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c DiscoverOperation: c.fetchOpQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*QueryInput) if !ok { @@ -452,6 +453,7 @@ func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, optFns ...fun _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -466,7 +468,7 @@ func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, optFns ...fun fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_RestoreTableFromBackup.go b/service/dynamodb/api_op_RestoreTableFromBackup.go index fe3d9178814..fbdc19e40d8 100644 --- a/service/dynamodb/api_op_RestoreTableFromBackup.go +++ b/service/dynamodb/api_op_RestoreTableFromBackup.go @@ -182,10 +182,11 @@ func addOpRestoreTableFromBackupDiscoverEndpointMiddleware(stack *middleware.Sta DiscoverOperation: c.fetchOpRestoreTableFromBackupDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpRestoreTableFromBackupDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpRestoreTableFromBackupDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*RestoreTableFromBackupInput) if !ok { @@ -194,6 +195,7 @@ func (c *Client) fetchOpRestoreTableFromBackupDiscoverEndpoint(ctx context.Conte _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -208,7 +210,7 @@ func (c *Client) fetchOpRestoreTableFromBackupDiscoverEndpoint(ctx context.Conte fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_RestoreTableToPointInTime.go b/service/dynamodb/api_op_RestoreTableToPointInTime.go index cda6519fbe1..79a98b606f9 100644 --- a/service/dynamodb/api_op_RestoreTableToPointInTime.go +++ b/service/dynamodb/api_op_RestoreTableToPointInTime.go @@ -204,10 +204,11 @@ func addOpRestoreTableToPointInTimeDiscoverEndpointMiddleware(stack *middleware. DiscoverOperation: c.fetchOpRestoreTableToPointInTimeDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpRestoreTableToPointInTimeDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpRestoreTableToPointInTimeDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*RestoreTableToPointInTimeInput) if !ok { @@ -216,6 +217,7 @@ func (c *Client) fetchOpRestoreTableToPointInTimeDiscoverEndpoint(ctx context.Co _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -230,7 +232,7 @@ func (c *Client) fetchOpRestoreTableToPointInTimeDiscoverEndpoint(ctx context.Co fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_Scan.go b/service/dynamodb/api_op_Scan.go index baea197ce34..935e0b1f623 100644 --- a/service/dynamodb/api_op_Scan.go +++ b/service/dynamodb/api_op_Scan.go @@ -389,10 +389,11 @@ func addOpScanDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c * DiscoverOperation: c.fetchOpScanDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpScanDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpScanDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ScanInput) if !ok { @@ -401,6 +402,7 @@ func (c *Client) fetchOpScanDiscoverEndpoint(ctx context.Context, optFns ...func _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -415,7 +417,7 @@ func (c *Client) fetchOpScanDiscoverEndpoint(ctx context.Context, optFns ...func fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_TagResource.go b/service/dynamodb/api_op_TagResource.go index 96549a798da..baed093265a 100644 --- a/service/dynamodb/api_op_TagResource.go +++ b/service/dynamodb/api_op_TagResource.go @@ -156,10 +156,11 @@ func addOpTagResourceDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpTagResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*TagResourceInput) if !ok { @@ -168,6 +169,7 @@ func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -182,7 +184,7 @@ func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_TransactGetItems.go b/service/dynamodb/api_op_TransactGetItems.go index 064311ce6a8..f61d74fd0cc 100644 --- a/service/dynamodb/api_op_TransactGetItems.go +++ b/service/dynamodb/api_op_TransactGetItems.go @@ -179,10 +179,11 @@ func addOpTransactGetItemsDiscoverEndpointMiddleware(stack *middleware.Stack, o DiscoverOperation: c.fetchOpTransactGetItemsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpTransactGetItemsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpTransactGetItemsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*TransactGetItemsInput) if !ok { @@ -191,6 +192,7 @@ func (c *Client) fetchOpTransactGetItemsDiscoverEndpoint(ctx context.Context, op _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -205,7 +207,7 @@ func (c *Client) fetchOpTransactGetItemsDiscoverEndpoint(ctx context.Context, op fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_TransactWriteItems.go b/service/dynamodb/api_op_TransactWriteItems.go index 18f74fbbef5..a74c74322ce 100644 --- a/service/dynamodb/api_op_TransactWriteItems.go +++ b/service/dynamodb/api_op_TransactWriteItems.go @@ -236,10 +236,11 @@ func addOpTransactWriteItemsDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpTransactWriteItemsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpTransactWriteItemsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpTransactWriteItemsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*TransactWriteItemsInput) if !ok { @@ -248,6 +249,7 @@ func (c *Client) fetchOpTransactWriteItemsDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -262,7 +264,7 @@ func (c *Client) fetchOpTransactWriteItemsDiscoverEndpoint(ctx context.Context, fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_UntagResource.go b/service/dynamodb/api_op_UntagResource.go index 67ebd3c4671..780af8f9797 100644 --- a/service/dynamodb/api_op_UntagResource.go +++ b/service/dynamodb/api_op_UntagResource.go @@ -154,10 +154,11 @@ func addOpUntagResourceDiscoverEndpointMiddleware(stack *middleware.Stack, o Opt DiscoverOperation: c.fetchOpUntagResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UntagResourceInput) if !ok { @@ -166,6 +167,7 @@ func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFn _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -180,7 +182,7 @@ func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFn fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_UpdateContinuousBackups.go b/service/dynamodb/api_op_UpdateContinuousBackups.go index 92b6eb9fa33..f423f10ec3f 100644 --- a/service/dynamodb/api_op_UpdateContinuousBackups.go +++ b/service/dynamodb/api_op_UpdateContinuousBackups.go @@ -163,10 +163,11 @@ func addOpUpdateContinuousBackupsDiscoverEndpointMiddleware(stack *middleware.St DiscoverOperation: c.fetchOpUpdateContinuousBackupsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateContinuousBackupsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateContinuousBackupsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateContinuousBackupsInput) if !ok { @@ -175,6 +176,7 @@ func (c *Client) fetchOpUpdateContinuousBackupsDiscoverEndpoint(ctx context.Cont _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -189,7 +191,7 @@ func (c *Client) fetchOpUpdateContinuousBackupsDiscoverEndpoint(ctx context.Cont fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_UpdateGlobalTable.go b/service/dynamodb/api_op_UpdateGlobalTable.go index 951600088ad..c72d117e4d2 100644 --- a/service/dynamodb/api_op_UpdateGlobalTable.go +++ b/service/dynamodb/api_op_UpdateGlobalTable.go @@ -176,10 +176,11 @@ func addOpUpdateGlobalTableDiscoverEndpointMiddleware(stack *middleware.Stack, o DiscoverOperation: c.fetchOpUpdateGlobalTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateGlobalTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateGlobalTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateGlobalTableInput) if !ok { @@ -188,6 +189,7 @@ func (c *Client) fetchOpUpdateGlobalTableDiscoverEndpoint(ctx context.Context, o _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -202,7 +204,7 @@ func (c *Client) fetchOpUpdateGlobalTableDiscoverEndpoint(ctx context.Context, o fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_UpdateGlobalTableSettings.go b/service/dynamodb/api_op_UpdateGlobalTableSettings.go index 2fa225e7f41..5f9fda591b8 100644 --- a/service/dynamodb/api_op_UpdateGlobalTableSettings.go +++ b/service/dynamodb/api_op_UpdateGlobalTableSettings.go @@ -185,10 +185,11 @@ func addOpUpdateGlobalTableSettingsDiscoverEndpointMiddleware(stack *middleware. DiscoverOperation: c.fetchOpUpdateGlobalTableSettingsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateGlobalTableSettingsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateGlobalTableSettingsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateGlobalTableSettingsInput) if !ok { @@ -197,6 +198,7 @@ func (c *Client) fetchOpUpdateGlobalTableSettingsDiscoverEndpoint(ctx context.Co _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -211,7 +213,7 @@ func (c *Client) fetchOpUpdateGlobalTableSettingsDiscoverEndpoint(ctx context.Co fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_UpdateItem.go b/service/dynamodb/api_op_UpdateItem.go index eef7727a1b1..ec34acc5847 100644 --- a/service/dynamodb/api_op_UpdateItem.go +++ b/service/dynamodb/api_op_UpdateItem.go @@ -348,10 +348,11 @@ func addOpUpdateItemDiscoverEndpointMiddleware(stack *middleware.Stack, o Option DiscoverOperation: c.fetchOpUpdateItemDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateItemDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateItemDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateItemInput) if !ok { @@ -360,6 +361,7 @@ func (c *Client) fetchOpUpdateItemDiscoverEndpoint(ctx context.Context, optFns . _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -374,7 +376,7 @@ func (c *Client) fetchOpUpdateItemDiscoverEndpoint(ctx context.Context, optFns . fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_UpdateTable.go b/service/dynamodb/api_op_UpdateTable.go index 310a1a2c4f0..5ff1bd9e917 100644 --- a/service/dynamodb/api_op_UpdateTable.go +++ b/service/dynamodb/api_op_UpdateTable.go @@ -217,10 +217,11 @@ func addOpUpdateTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpUpdateTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateTableInput) if !ok { @@ -229,6 +230,7 @@ func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -243,7 +245,7 @@ func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/api_op_UpdateTimeToLive.go b/service/dynamodb/api_op_UpdateTimeToLive.go index 9c0142d9826..c5ac3ef58e4 100644 --- a/service/dynamodb/api_op_UpdateTimeToLive.go +++ b/service/dynamodb/api_op_UpdateTimeToLive.go @@ -173,10 +173,11 @@ func addOpUpdateTimeToLiveDiscoverEndpointMiddleware(stack *middleware.Stack, o DiscoverOperation: c.fetchOpUpdateTimeToLiveDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: false, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateTimeToLiveDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateTimeToLiveDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateTimeToLiveInput) if !ok { @@ -185,6 +186,7 @@ func (c *Client) fetchOpUpdateTimeToLiveDiscoverEndpoint(ctx context.Context, op _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("DynamoDB.%v", identifierMap) @@ -199,7 +201,7 @@ func (c *Client) fetchOpUpdateTimeToLiveDiscoverEndpoint(ctx context.Context, op fn(&opt) } - go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) return internalEndpointDiscovery.WeightedAddress{}, nil } diff --git a/service/dynamodb/auth.go b/service/dynamodb/auth.go index 336cd4a286d..ddc52db9cf3 100644 --- a/service/dynamodb/auth.go +++ b/service/dynamodb/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/dynamodb/go.mod b/service/dynamodb/go.mod index 8c4dea92470..2278daaf415 100644 --- a/service/dynamodb/go.mod +++ b/service/dynamodb/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodb go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/dynamodb/go.sum b/service/dynamodb/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/dynamodb/go.sum +++ b/service/dynamodb/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/dynamodb/go_module_metadata.go b/service/dynamodb/go_module_metadata.go index 30f0271cb40..01836cdef4a 100644 --- a/service/dynamodb/go_module_metadata.go +++ b/service/dynamodb/go_module_metadata.go @@ -3,4 +3,4 @@ package dynamodb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.3" diff --git a/service/dynamodb/options.go b/service/dynamodb/options.go index 4ebd9ce0d98..ee8897f83c5 100644 --- a/service/dynamodb/options.go +++ b/service/dynamodb/options.go @@ -228,7 +228,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/dynamodbstreams/CHANGELOG.md b/service/dynamodbstreams/CHANGELOG.md index aa8ee6c6249..685e0720356 100644 --- a/service/dynamodbstreams/CHANGELOG.md +++ b/service/dynamodbstreams/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/dynamodbstreams/api_client.go b/service/dynamodbstreams/api_client.go index 7899c41903c..189f10e4a83 100644 --- a/service/dynamodbstreams/api_client.go +++ b/service/dynamodbstreams/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/dynamodbstreams/auth.go b/service/dynamodbstreams/auth.go index 6880c27d158..c0ff6f08823 100644 --- a/service/dynamodbstreams/auth.go +++ b/service/dynamodbstreams/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/dynamodbstreams/go.mod b/service/dynamodbstreams/go.mod index 06acd7b2d32..871601f5c0b 100644 --- a/service/dynamodbstreams/go.mod +++ b/service/dynamodbstreams/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/dynamodbstreams go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/dynamodbstreams/go.sum b/service/dynamodbstreams/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/dynamodbstreams/go.sum +++ b/service/dynamodbstreams/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/dynamodbstreams/go_module_metadata.go b/service/dynamodbstreams/go_module_metadata.go index a33fce96798..21296259621 100644 --- a/service/dynamodbstreams/go_module_metadata.go +++ b/service/dynamodbstreams/go_module_metadata.go @@ -3,4 +3,4 @@ package dynamodbstreams // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/dynamodbstreams/options.go b/service/dynamodbstreams/options.go index 8583825e819..f5a191832f1 100644 --- a/service/dynamodbstreams/options.go +++ b/service/dynamodbstreams/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ebs/CHANGELOG.md b/service/ebs/CHANGELOG.md index 24750894c4f..629b667cb62 100644 --- a/service/ebs/CHANGELOG.md +++ b/service/ebs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ebs/api_client.go b/service/ebs/api_client.go index 663ad8660de..347709e14e5 100644 --- a/service/ebs/api_client.go +++ b/service/ebs/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ebs/auth.go b/service/ebs/auth.go index f4eef414eae..8febbf1de2e 100644 --- a/service/ebs/auth.go +++ b/service/ebs/auth.go @@ -135,7 +135,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -215,7 +215,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -264,7 +264,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ebs/go.mod b/service/ebs/go.mod index 2033905d054..a58723c775c 100644 --- a/service/ebs/go.mod +++ b/service/ebs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ebs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ebs/go.sum b/service/ebs/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ebs/go.sum +++ b/service/ebs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ebs/go_module_metadata.go b/service/ebs/go_module_metadata.go index fc0887c5e1f..19b717b8d7f 100644 --- a/service/ebs/go_module_metadata.go +++ b/service/ebs/go_module_metadata.go @@ -3,4 +3,4 @@ package ebs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/ebs/options.go b/service/ebs/options.go index 804ead17893..8ae34c5423a 100644 --- a/service/ebs/options.go +++ b/service/ebs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ec2/CHANGELOG.md b/service/ec2/CHANGELOG.md index 606af52cb84..ddb9aed3690 100644 --- a/service/ec2/CHANGELOG.md +++ b/service/ec2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.138.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.138.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.138.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ec2/api_client.go b/service/ec2/api_client.go index 306cbd54031..3e931c4d59c 100644 --- a/service/ec2/api_client.go +++ b/service/ec2/api_client.go @@ -147,7 +147,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -156,7 +156,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ec2/auth.go b/service/ec2/auth.go index 41a883f50f9..ff44fe06a1e 100644 --- a/service/ec2/auth.go +++ b/service/ec2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ec2/go.mod b/service/ec2/go.mod index cea9e1d2b65..0e0d1374918 100644 --- a/service/ec2/go.mod +++ b/service/ec2/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/ec2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ec2/go.sum b/service/ec2/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/ec2/go.sum +++ b/service/ec2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ec2/go_module_metadata.go b/service/ec2/go_module_metadata.go index 2672ce5fddb..0e151e9023c 100644 --- a/service/ec2/go_module_metadata.go +++ b/service/ec2/go_module_metadata.go @@ -3,4 +3,4 @@ package ec2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.138.0" +const goModuleVersion = "1.138.2" diff --git a/service/ec2/options.go b/service/ec2/options.go index 574692f9be2..171ecd009f3 100644 --- a/service/ec2/options.go +++ b/service/ec2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ec2instanceconnect/CHANGELOG.md b/service/ec2instanceconnect/CHANGELOG.md index 6b7f455ed3a..f27a1c45296 100644 --- a/service/ec2instanceconnect/CHANGELOG.md +++ b/service/ec2instanceconnect/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ec2instanceconnect/api_client.go b/service/ec2instanceconnect/api_client.go index 4cb02c9920f..3bb9f2fe7ca 100644 --- a/service/ec2instanceconnect/api_client.go +++ b/service/ec2instanceconnect/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ec2instanceconnect/auth.go b/service/ec2instanceconnect/auth.go index 3584012d231..0abd6086586 100644 --- a/service/ec2instanceconnect/auth.go +++ b/service/ec2instanceconnect/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ec2instanceconnect/go.mod b/service/ec2instanceconnect/go.mod index 9e1fb535a4f..c5dc7bfd031 100644 --- a/service/ec2instanceconnect/go.mod +++ b/service/ec2instanceconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ec2instanceconnect go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ec2instanceconnect/go.sum b/service/ec2instanceconnect/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ec2instanceconnect/go.sum +++ b/service/ec2instanceconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ec2instanceconnect/go_module_metadata.go b/service/ec2instanceconnect/go_module_metadata.go index e96bd5f690c..00aee32ebbe 100644 --- a/service/ec2instanceconnect/go_module_metadata.go +++ b/service/ec2instanceconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package ec2instanceconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/ec2instanceconnect/options.go b/service/ec2instanceconnect/options.go index 9c35c0333b0..0e863c7eaec 100644 --- a/service/ec2instanceconnect/options.go +++ b/service/ec2instanceconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ecr/CHANGELOG.md b/service/ecr/CHANGELOG.md index a35e2043d1e..6347961e18f 100644 --- a/service/ecr/CHANGELOG.md +++ b/service/ecr/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ecr/api_client.go b/service/ecr/api_client.go index ea2d2bb8a4d..d4fb594803f 100644 --- a/service/ecr/api_client.go +++ b/service/ecr/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ecr/auth.go b/service/ecr/auth.go index 23852d581ba..2e3b08c2d17 100644 --- a/service/ecr/auth.go +++ b/service/ecr/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ecr/go.mod b/service/ecr/go.mod index 82a798e0531..9fb757177c1 100644 --- a/service/ecr/go.mod +++ b/service/ecr/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecr go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecr/go.sum b/service/ecr/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/ecr/go.sum +++ b/service/ecr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ecr/go_module_metadata.go b/service/ecr/go_module_metadata.go index ee47b643b53..774657d97bb 100644 --- a/service/ecr/go_module_metadata.go +++ b/service/ecr/go_module_metadata.go @@ -3,4 +3,4 @@ package ecr // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/ecr/options.go b/service/ecr/options.go index 1e295f16818..356747f13ee 100644 --- a/service/ecr/options.go +++ b/service/ecr/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ecrpublic/CHANGELOG.md b/service/ecrpublic/CHANGELOG.md index bd702d40102..8c93d96ed18 100644 --- a/service/ecrpublic/CHANGELOG.md +++ b/service/ecrpublic/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ecrpublic/api_client.go b/service/ecrpublic/api_client.go index 546c1b49376..243a6e52b55 100644 --- a/service/ecrpublic/api_client.go +++ b/service/ecrpublic/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ecrpublic/auth.go b/service/ecrpublic/auth.go index e517c5ee62a..69f87ce6163 100644 --- a/service/ecrpublic/auth.go +++ b/service/ecrpublic/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ecrpublic/go.mod b/service/ecrpublic/go.mod index 93c54d7e7d0..f165548d22f 100644 --- a/service/ecrpublic/go.mod +++ b/service/ecrpublic/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecrpublic go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ecrpublic/go.sum b/service/ecrpublic/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ecrpublic/go.sum +++ b/service/ecrpublic/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ecrpublic/go_module_metadata.go b/service/ecrpublic/go_module_metadata.go index 43a9188b7df..cde89cf434b 100644 --- a/service/ecrpublic/go_module_metadata.go +++ b/service/ecrpublic/go_module_metadata.go @@ -3,4 +3,4 @@ package ecrpublic // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/ecrpublic/options.go b/service/ecrpublic/options.go index 2e576d21346..43e516a33e5 100644 --- a/service/ecrpublic/options.go +++ b/service/ecrpublic/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ecs/CHANGELOG.md b/service/ecs/CHANGELOG.md index 2e1cda75b4d..a67e8467590 100644 --- a/service/ecs/CHANGELOG.md +++ b/service/ecs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ecs/api_client.go b/service/ecs/api_client.go index 4d50c16123b..c026c1d50b8 100644 --- a/service/ecs/api_client.go +++ b/service/ecs/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ecs/auth.go b/service/ecs/auth.go index 0936e9e3807..f7b0af9aae3 100644 --- a/service/ecs/auth.go +++ b/service/ecs/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ecs/go.mod b/service/ecs/go.mod index 26314207041..e7074eb1792 100644 --- a/service/ecs/go.mod +++ b/service/ecs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ecs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ecs/go.sum b/service/ecs/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/ecs/go.sum +++ b/service/ecs/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ecs/go_module_metadata.go b/service/ecs/go_module_metadata.go index 3bc056acc48..ea75e39205e 100644 --- a/service/ecs/go_module_metadata.go +++ b/service/ecs/go_module_metadata.go @@ -3,4 +3,4 @@ package ecs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/ecs/options.go b/service/ecs/options.go index cb42e5b8633..c991e0a5df9 100644 --- a/service/ecs/options.go +++ b/service/ecs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/efs/CHANGELOG.md b/service/efs/CHANGELOG.md index 1f5096f735e..211aeabdea7 100644 --- a/service/efs/CHANGELOG.md +++ b/service/efs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/efs/api_client.go b/service/efs/api_client.go index be958820ab0..c70dbb02000 100644 --- a/service/efs/api_client.go +++ b/service/efs/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/efs/auth.go b/service/efs/auth.go index e6d29b72014..1edab40b4da 100644 --- a/service/efs/auth.go +++ b/service/efs/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/efs/go.mod b/service/efs/go.mod index 8b92eca495f..bafe9c345b5 100644 --- a/service/efs/go.mod +++ b/service/efs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/efs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/efs/go.sum b/service/efs/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/efs/go.sum +++ b/service/efs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/efs/go_module_metadata.go b/service/efs/go_module_metadata.go index 2664efb18dd..49ac9e3a162 100644 --- a/service/efs/go_module_metadata.go +++ b/service/efs/go_module_metadata.go @@ -3,4 +3,4 @@ package efs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/efs/options.go b/service/efs/options.go index d33cf29d03c..85aa3e5e86f 100644 --- a/service/efs/options.go +++ b/service/efs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/eks/CHANGELOG.md b/service/eks/CHANGELOG.md index 4d5033250ba..b281e400bdf 100644 --- a/service/eks/CHANGELOG.md +++ b/service/eks/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/eks/api_client.go b/service/eks/api_client.go index 92b4fe758a3..cd1896feeb0 100644 --- a/service/eks/api_client.go +++ b/service/eks/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/eks/auth.go b/service/eks/auth.go index c8fa1cffd86..b42a5fc081f 100644 --- a/service/eks/auth.go +++ b/service/eks/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/eks/go.mod b/service/eks/go.mod index 21118e7a881..4f6d59a7ce2 100644 --- a/service/eks/go.mod +++ b/service/eks/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/eks go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/eks/go.sum b/service/eks/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/eks/go.sum +++ b/service/eks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/eks/go_module_metadata.go b/service/eks/go_module_metadata.go index 8115540482c..28e8be366e6 100644 --- a/service/eks/go_module_metadata.go +++ b/service/eks/go_module_metadata.go @@ -3,4 +3,4 @@ package eks // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/eks/options.go b/service/eks/options.go index 36ee3dffccf..ee1fae70615 100644 --- a/service/eks/options.go +++ b/service/eks/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/eksauth/CHANGELOG.md b/service/eksauth/CHANGELOG.md index 35d281ca766..8f05a47b35f 100644 --- a/service/eksauth/CHANGELOG.md +++ b/service/eksauth/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/eksauth/api_client.go b/service/eksauth/api_client.go index d7436400bb9..172cc5a26d0 100644 --- a/service/eksauth/api_client.go +++ b/service/eksauth/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/eksauth/auth.go b/service/eksauth/auth.go index 613367c1f10..449470d8167 100644 --- a/service/eksauth/auth.go +++ b/service/eksauth/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/eksauth/go.mod b/service/eksauth/go.mod index e0a512b572d..da97bb6cf39 100644 --- a/service/eksauth/go.mod +++ b/service/eksauth/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/eksauth go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/eksauth/go.sum b/service/eksauth/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/eksauth/go.sum +++ b/service/eksauth/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eksauth/go_module_metadata.go b/service/eksauth/go_module_metadata.go index 4f03753033d..0eceac348a5 100644 --- a/service/eksauth/go_module_metadata.go +++ b/service/eksauth/go_module_metadata.go @@ -3,4 +3,4 @@ package eksauth // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/eksauth/options.go b/service/eksauth/options.go index a5f0adb1df2..eb71ce5f467 100644 --- a/service/eksauth/options.go +++ b/service/eksauth/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticache/CHANGELOG.md b/service/elasticache/CHANGELOG.md index a2a25b595f9..128da5fe53e 100644 --- a/service/elasticache/CHANGELOG.md +++ b/service/elasticache/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.34.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.34.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/elasticache/api_client.go b/service/elasticache/api_client.go index 98bb4fbc035..d2972a7f37f 100644 --- a/service/elasticache/api_client.go +++ b/service/elasticache/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/elasticache/auth.go b/service/elasticache/auth.go index 00bff561675..59e3edcb790 100644 --- a/service/elasticache/auth.go +++ b/service/elasticache/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/elasticache/go.mod b/service/elasticache/go.mod index 18be014459e..e3b92247ee4 100644 --- a/service/elasticache/go.mod +++ b/service/elasticache/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticache go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticache/go.sum b/service/elasticache/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/elasticache/go.sum +++ b/service/elasticache/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticache/go_module_metadata.go b/service/elasticache/go_module_metadata.go index 3f4bd4a46e9..82980a39be9 100644 --- a/service/elasticache/go_module_metadata.go +++ b/service/elasticache/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticache // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.2" diff --git a/service/elasticache/options.go b/service/elasticache/options.go index 589c3a29521..7dbadf7e2ea 100644 --- a/service/elasticache/options.go +++ b/service/elasticache/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticbeanstalk/CHANGELOG.md b/service/elasticbeanstalk/CHANGELOG.md index 6caf024da56..17eefea4b9e 100644 --- a/service/elasticbeanstalk/CHANGELOG.md +++ b/service/elasticbeanstalk/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/elasticbeanstalk/api_client.go b/service/elasticbeanstalk/api_client.go index 53b6edfee8a..fb76bf7d76e 100644 --- a/service/elasticbeanstalk/api_client.go +++ b/service/elasticbeanstalk/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/elasticbeanstalk/auth.go b/service/elasticbeanstalk/auth.go index 088c86da8c7..bef04b3b807 100644 --- a/service/elasticbeanstalk/auth.go +++ b/service/elasticbeanstalk/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/elasticbeanstalk/go.mod b/service/elasticbeanstalk/go.mod index 8db77763814..a5f59640aaf 100644 --- a/service/elasticbeanstalk/go.mod +++ b/service/elasticbeanstalk/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticbeanstalk/go.sum b/service/elasticbeanstalk/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/elasticbeanstalk/go.sum +++ b/service/elasticbeanstalk/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticbeanstalk/go_module_metadata.go b/service/elasticbeanstalk/go_module_metadata.go index 3e5922f66c4..29943854c09 100644 --- a/service/elasticbeanstalk/go_module_metadata.go +++ b/service/elasticbeanstalk/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticbeanstalk // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/elasticbeanstalk/options.go b/service/elasticbeanstalk/options.go index 724fc81b6c4..c92838e98f4 100644 --- a/service/elasticbeanstalk/options.go +++ b/service/elasticbeanstalk/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticinference/CHANGELOG.md b/service/elasticinference/CHANGELOG.md index 19d7a232eae..d453a4c7fff 100644 --- a/service/elasticinference/CHANGELOG.md +++ b/service/elasticinference/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/elasticinference/api_client.go b/service/elasticinference/api_client.go index 82345b5764b..8b6509a9807 100644 --- a/service/elasticinference/api_client.go +++ b/service/elasticinference/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/elasticinference/auth.go b/service/elasticinference/auth.go index 219affdc0f2..f353fd620df 100644 --- a/service/elasticinference/auth.go +++ b/service/elasticinference/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/elasticinference/go.mod b/service/elasticinference/go.mod index 09be7a448c4..d4f963de702 100644 --- a/service/elasticinference/go.mod +++ b/service/elasticinference/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticinference go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/elasticinference/go.sum b/service/elasticinference/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/elasticinference/go.sum +++ b/service/elasticinference/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elasticinference/go_module_metadata.go b/service/elasticinference/go_module_metadata.go index 40bf1718762..5c48e17a7ef 100644 --- a/service/elasticinference/go_module_metadata.go +++ b/service/elasticinference/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticinference // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/elasticinference/options.go b/service/elasticinference/options.go index 7d79133adec..42c5d83a8db 100644 --- a/service/elasticinference/options.go +++ b/service/elasticinference/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticloadbalancing/CHANGELOG.md b/service/elasticloadbalancing/CHANGELOG.md index 8526184c0f8..273718a15f0 100644 --- a/service/elasticloadbalancing/CHANGELOG.md +++ b/service/elasticloadbalancing/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/elasticloadbalancing/api_client.go b/service/elasticloadbalancing/api_client.go index f668fb83a97..2976ab36929 100644 --- a/service/elasticloadbalancing/api_client.go +++ b/service/elasticloadbalancing/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/elasticloadbalancing/auth.go b/service/elasticloadbalancing/auth.go index a5e893ea604..254a8fd739c 100644 --- a/service/elasticloadbalancing/auth.go +++ b/service/elasticloadbalancing/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/elasticloadbalancing/go.mod b/service/elasticloadbalancing/go.mod index 8176d428d03..806362262cc 100644 --- a/service/elasticloadbalancing/go.mod +++ b/service/elasticloadbalancing/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancing/go.sum b/service/elasticloadbalancing/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/elasticloadbalancing/go.sum +++ b/service/elasticloadbalancing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticloadbalancing/go_module_metadata.go b/service/elasticloadbalancing/go_module_metadata.go index 155b3a59fa4..23e8f200f14 100644 --- a/service/elasticloadbalancing/go_module_metadata.go +++ b/service/elasticloadbalancing/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticloadbalancing // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/elasticloadbalancing/options.go b/service/elasticloadbalancing/options.go index 2707142645c..894327e7119 100644 --- a/service/elasticloadbalancing/options.go +++ b/service/elasticloadbalancing/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticloadbalancingv2/CHANGELOG.md b/service/elasticloadbalancingv2/CHANGELOG.md index 017a55fdcf9..2830d403b61 100644 --- a/service/elasticloadbalancingv2/CHANGELOG.md +++ b/service/elasticloadbalancingv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/elasticloadbalancingv2/api_client.go b/service/elasticloadbalancingv2/api_client.go index 828944c7e94..10122f9d805 100644 --- a/service/elasticloadbalancingv2/api_client.go +++ b/service/elasticloadbalancingv2/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/elasticloadbalancingv2/auth.go b/service/elasticloadbalancingv2/auth.go index 9559205817a..aac8212c9f9 100644 --- a/service/elasticloadbalancingv2/auth.go +++ b/service/elasticloadbalancingv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/elasticloadbalancingv2/go.mod b/service/elasticloadbalancingv2/go.mod index 5480d79c766..0c9a4725f6e 100644 --- a/service/elasticloadbalancingv2/go.mod +++ b/service/elasticloadbalancingv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elasticloadbalancingv2/go.sum b/service/elasticloadbalancingv2/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/elasticloadbalancingv2/go.sum +++ b/service/elasticloadbalancingv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elasticloadbalancingv2/go_module_metadata.go b/service/elasticloadbalancingv2/go_module_metadata.go index eea698ec8e3..1ef09cc09bd 100644 --- a/service/elasticloadbalancingv2/go_module_metadata.go +++ b/service/elasticloadbalancingv2/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticloadbalancingv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/elasticloadbalancingv2/options.go b/service/elasticloadbalancingv2/options.go index 3d4d091dce8..9e8fdb5aec8 100644 --- a/service/elasticloadbalancingv2/options.go +++ b/service/elasticloadbalancingv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elasticsearchservice/CHANGELOG.md b/service/elasticsearchservice/CHANGELOG.md index efdf1c81212..bf1f849d35f 100644 --- a/service/elasticsearchservice/CHANGELOG.md +++ b/service/elasticsearchservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/elasticsearchservice/api_client.go b/service/elasticsearchservice/api_client.go index 585ed4214a0..29600e9dd1f 100644 --- a/service/elasticsearchservice/api_client.go +++ b/service/elasticsearchservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/elasticsearchservice/auth.go b/service/elasticsearchservice/auth.go index ea3683c6a33..f640dcb7f17 100644 --- a/service/elasticsearchservice/auth.go +++ b/service/elasticsearchservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/elasticsearchservice/go.mod b/service/elasticsearchservice/go.mod index e5005b05289..f9c87cdfe8f 100644 --- a/service/elasticsearchservice/go.mod +++ b/service/elasticsearchservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elasticsearchservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/elasticsearchservice/go.sum b/service/elasticsearchservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/elasticsearchservice/go.sum +++ b/service/elasticsearchservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/elasticsearchservice/go_module_metadata.go b/service/elasticsearchservice/go_module_metadata.go index cb6be6af57a..07dbe114ce8 100644 --- a/service/elasticsearchservice/go_module_metadata.go +++ b/service/elasticsearchservice/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticsearchservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/elasticsearchservice/options.go b/service/elasticsearchservice/options.go index 978c574ad1f..65170862fdb 100644 --- a/service/elasticsearchservice/options.go +++ b/service/elasticsearchservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/elastictranscoder/CHANGELOG.md b/service/elastictranscoder/CHANGELOG.md index 92585fbf528..4e38a36070d 100644 --- a/service/elastictranscoder/CHANGELOG.md +++ b/service/elastictranscoder/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/elastictranscoder/api_client.go b/service/elastictranscoder/api_client.go index 711e8968c72..16e5033ceda 100644 --- a/service/elastictranscoder/api_client.go +++ b/service/elastictranscoder/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/elastictranscoder/auth.go b/service/elastictranscoder/auth.go index 9cf19a8c7ae..ef8808afaf4 100644 --- a/service/elastictranscoder/auth.go +++ b/service/elastictranscoder/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/elastictranscoder/go.mod b/service/elastictranscoder/go.mod index 9eeb650c62b..f7e3527044b 100644 --- a/service/elastictranscoder/go.mod +++ b/service/elastictranscoder/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/elastictranscoder go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/elastictranscoder/go.sum b/service/elastictranscoder/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/elastictranscoder/go.sum +++ b/service/elastictranscoder/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/elastictranscoder/go_module_metadata.go b/service/elastictranscoder/go_module_metadata.go index fe5e932c768..835213c8e21 100644 --- a/service/elastictranscoder/go_module_metadata.go +++ b/service/elastictranscoder/go_module_metadata.go @@ -3,4 +3,4 @@ package elastictranscoder // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/elastictranscoder/options.go b/service/elastictranscoder/options.go index e9da3076fce..7686a2f0cb0 100644 --- a/service/elastictranscoder/options.go +++ b/service/elastictranscoder/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/emr/CHANGELOG.md b/service/emr/CHANGELOG.md index 2a2fdc6ad45..a55fc56dd89 100644 --- a/service/emr/CHANGELOG.md +++ b/service/emr/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/emr/api_client.go b/service/emr/api_client.go index 5c2471066a0..a283d45f490 100644 --- a/service/emr/api_client.go +++ b/service/emr/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/emr/auth.go b/service/emr/auth.go index 85e800e5a13..086691b136e 100644 --- a/service/emr/auth.go +++ b/service/emr/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/emr/go.mod b/service/emr/go.mod index 0d7f9c2eaee..ded38fc65d0 100644 --- a/service/emr/go.mod +++ b/service/emr/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emr go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/emr/go.sum b/service/emr/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/emr/go.sum +++ b/service/emr/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/emr/go_module_metadata.go b/service/emr/go_module_metadata.go index da67ba9ebf9..de2a7d531a9 100644 --- a/service/emr/go_module_metadata.go +++ b/service/emr/go_module_metadata.go @@ -3,4 +3,4 @@ package emr // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/emr/options.go b/service/emr/options.go index aed8b35b911..34fe982daa6 100644 --- a/service/emr/options.go +++ b/service/emr/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/emrcontainers/CHANGELOG.md b/service/emrcontainers/CHANGELOG.md index 750ba1c3f46..111410b4a52 100644 --- a/service/emrcontainers/CHANGELOG.md +++ b/service/emrcontainers/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/emrcontainers/api_client.go b/service/emrcontainers/api_client.go index 6573c886893..32f3fe56c8a 100644 --- a/service/emrcontainers/api_client.go +++ b/service/emrcontainers/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/emrcontainers/auth.go b/service/emrcontainers/auth.go index 065a0a0b5a8..b8ce61c93a0 100644 --- a/service/emrcontainers/auth.go +++ b/service/emrcontainers/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/emrcontainers/go.mod b/service/emrcontainers/go.mod index 6bd0709889a..5fac114a9df 100644 --- a/service/emrcontainers/go.mod +++ b/service/emrcontainers/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emrcontainers go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/emrcontainers/go.sum b/service/emrcontainers/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/emrcontainers/go.sum +++ b/service/emrcontainers/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/emrcontainers/go_module_metadata.go b/service/emrcontainers/go_module_metadata.go index f31454aa5d2..2510afd1d38 100644 --- a/service/emrcontainers/go_module_metadata.go +++ b/service/emrcontainers/go_module_metadata.go @@ -3,4 +3,4 @@ package emrcontainers // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/emrcontainers/options.go b/service/emrcontainers/options.go index 2b741f4f042..9bedd3f10a0 100644 --- a/service/emrcontainers/options.go +++ b/service/emrcontainers/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/emrserverless/CHANGELOG.md b/service/emrserverless/CHANGELOG.md index 533e94a097c..7600f6dbc49 100644 --- a/service/emrserverless/CHANGELOG.md +++ b/service/emrserverless/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.14.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.14.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/emrserverless/api_client.go b/service/emrserverless/api_client.go index 66c44f0f751..4e23f2043f8 100644 --- a/service/emrserverless/api_client.go +++ b/service/emrserverless/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/emrserverless/auth.go b/service/emrserverless/auth.go index ab758cb554f..3371d49c4d6 100644 --- a/service/emrserverless/auth.go +++ b/service/emrserverless/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/emrserverless/go.mod b/service/emrserverless/go.mod index 3cb9668274c..8bfb6dfc745 100644 --- a/service/emrserverless/go.mod +++ b/service/emrserverless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/emrserverless go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/emrserverless/go.sum b/service/emrserverless/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/emrserverless/go.sum +++ b/service/emrserverless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/emrserverless/go_module_metadata.go b/service/emrserverless/go_module_metadata.go index 1bebe5ba119..c64015cfcbd 100644 --- a/service/emrserverless/go_module_metadata.go +++ b/service/emrserverless/go_module_metadata.go @@ -3,4 +3,4 @@ package emrserverless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.14.2" diff --git a/service/emrserverless/options.go b/service/emrserverless/options.go index 5aac7fe3eca..77182470f7c 100644 --- a/service/emrserverless/options.go +++ b/service/emrserverless/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/entityresolution/CHANGELOG.md b/service/entityresolution/CHANGELOG.md index a91754df924..3e8f5b5732a 100644 --- a/service/entityresolution/CHANGELOG.md +++ b/service/entityresolution/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/entityresolution/api_client.go b/service/entityresolution/api_client.go index 5e929315317..8845df5a377 100644 --- a/service/entityresolution/api_client.go +++ b/service/entityresolution/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/entityresolution/auth.go b/service/entityresolution/auth.go index 56c73135c73..2e34f4ec7cb 100644 --- a/service/entityresolution/auth.go +++ b/service/entityresolution/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/entityresolution/go.mod b/service/entityresolution/go.mod index 36673a3e689..7eb85727936 100644 --- a/service/entityresolution/go.mod +++ b/service/entityresolution/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/entityresolution go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/entityresolution/go.sum b/service/entityresolution/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/entityresolution/go.sum +++ b/service/entityresolution/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/entityresolution/go_module_metadata.go b/service/entityresolution/go_module_metadata.go index dc394c475b2..b450b9c672a 100644 --- a/service/entityresolution/go_module_metadata.go +++ b/service/entityresolution/go_module_metadata.go @@ -3,4 +3,4 @@ package entityresolution // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/entityresolution/options.go b/service/entityresolution/options.go index 2237c870183..2b03b82546a 100644 --- a/service/entityresolution/options.go +++ b/service/entityresolution/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/eventbridge/CHANGELOG.md b/service/eventbridge/CHANGELOG.md index 0e25b19804a..d29438a633f 100644 --- a/service/eventbridge/CHANGELOG.md +++ b/service/eventbridge/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/eventbridge/api_client.go b/service/eventbridge/api_client.go index 04c1168ac4c..d3d9f681743 100644 --- a/service/eventbridge/api_client.go +++ b/service/eventbridge/api_client.go @@ -151,7 +151,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -160,7 +160,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/eventbridge/auth.go b/service/eventbridge/auth.go index 35dc8f7b93b..50151e416c9 100644 --- a/service/eventbridge/auth.go +++ b/service/eventbridge/auth.go @@ -131,7 +131,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -211,7 +211,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -260,7 +260,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/eventbridge/endpoint_auth_resolver.go b/service/eventbridge/endpoint_auth_resolver.go index dd67a6b06e2..950272ee3e0 100644 --- a/service/eventbridge/endpoint_auth_resolver.go +++ b/service/eventbridge/endpoint_auth_resolver.go @@ -22,7 +22,7 @@ func (r *endpointAuthResolver) ResolveAuthSchemes( ) { endpt, err := r.EndpointResolver.ResolveEndpoint(ctx, *params.endpointParams) if err != nil { - return nil, fmt.Errorf("resolve endpoint: %v", err) + return nil, fmt.Errorf("resolve endpoint: %w", err) } if opts, ok := smithyauth.GetAuthOptions(&endpt.Properties); ok { diff --git a/service/eventbridge/go.mod b/service/eventbridge/go.mod index 3ea6e02ff64..253845998dd 100644 --- a/service/eventbridge/go.mod +++ b/service/eventbridge/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/eventbridge go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/eventbridge/go.sum b/service/eventbridge/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/eventbridge/go.sum +++ b/service/eventbridge/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/eventbridge/go_module_metadata.go b/service/eventbridge/go_module_metadata.go index 9c5f0843906..d150eec5e5d 100644 --- a/service/eventbridge/go_module_metadata.go +++ b/service/eventbridge/go_module_metadata.go @@ -3,4 +3,4 @@ package eventbridge // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/eventbridge/options.go b/service/eventbridge/options.go index 71d3f46ed09..bd92d1a31f4 100644 --- a/service/eventbridge/options.go +++ b/service/eventbridge/options.go @@ -261,7 +261,7 @@ func WithSigV4ASigningRegions(regions []string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/evidently/CHANGELOG.md b/service/evidently/CHANGELOG.md index 4245c3e8725..efcd781edea 100644 --- a/service/evidently/CHANGELOG.md +++ b/service/evidently/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.16.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/evidently/api_client.go b/service/evidently/api_client.go index a85253b228b..1fdd5ed91bd 100644 --- a/service/evidently/api_client.go +++ b/service/evidently/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/evidently/auth.go b/service/evidently/auth.go index 59bdfd319d0..3978a2e030e 100644 --- a/service/evidently/auth.go +++ b/service/evidently/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/evidently/go.mod b/service/evidently/go.mod index 4a4e50fbe8e..266facf849a 100644 --- a/service/evidently/go.mod +++ b/service/evidently/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/evidently go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/evidently/go.sum b/service/evidently/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/evidently/go.sum +++ b/service/evidently/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/evidently/go_module_metadata.go b/service/evidently/go_module_metadata.go index 7fa14b60c90..c927b9e1b57 100644 --- a/service/evidently/go_module_metadata.go +++ b/service/evidently/go_module_metadata.go @@ -3,4 +3,4 @@ package evidently // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.2" diff --git a/service/evidently/options.go b/service/evidently/options.go index 22ad0b4c1cf..45695851784 100644 --- a/service/evidently/options.go +++ b/service/evidently/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/finspace/CHANGELOG.md b/service/finspace/CHANGELOG.md index f97aa58576b..d35b82b1619 100644 --- a/service/finspace/CHANGELOG.md +++ b/service/finspace/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.19.0 (2023-12-04) + +* **Feature**: Release General Purpose type clusters + +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/finspace/api_client.go b/service/finspace/api_client.go index ab1056c7c97..e466b47d167 100644 --- a/service/finspace/api_client.go +++ b/service/finspace/api_client.go @@ -145,7 +145,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -154,7 +154,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/finspace/api_op_CreateKxChangeset.go b/service/finspace/api_op_CreateKxChangeset.go index a4b51120911..c37bf3c8c76 100644 --- a/service/finspace/api_op_CreateKxChangeset.go +++ b/service/finspace/api_op_CreateKxChangeset.go @@ -33,22 +33,30 @@ func (c *Client) CreateKxChangeset(ctx context.Context, params *CreateKxChangese type CreateKxChangesetInput struct { // A list of change request objects that are run in order. A change request object - // consists of changeType , s3Path, and a dbPath. A changeType can has the + // consists of changeType , s3Path , and dbPath . A changeType can has the // following values: // - PUT – Adds or updates files in a database. // - DELETE – Deletes files in a database. // All the change requests require a mandatory dbPath attribute that defines the - // path within the database directory. The s3Path attribute defines the s3 source - // file path and is required for a PUT change type. Here is an example of how you - // can use the change request object: [ { "changeType": "PUT", - // "s3Path":"s3://bucket/db/2020.01.02/", "dbPath":"/2020.01.02/"}, { "changeType": - // "PUT", "s3Path":"s3://bucket/db/sym", "dbPath":"/"}, { "changeType": "DELETE", - // "dbPath": "/2020.01.01/"} ] In this example, the first request with PUT change - // type allows you to add files in the given s3Path under the 2020.01.02 partition - // of the database. The second request with PUT change type allows you to add a - // single sym file at database root location. The last request with DELETE change - // type allows you to delete the files under the 2020.01.01 partition of the - // database. + // path within the database directory. All database paths must start with a leading + // / and end with a trailing /. The s3Path attribute defines the s3 source file + // path and is required for a PUT change type. The s3path must end with a trailing + // / if it is a directory and must end without a trailing / if it is a file. Here + // are few examples of how you can use the change request object: + // - This request adds a single sym file at database root location. { + // "changeType": "PUT", "s3Path":"s3://bucket/db/sym", "dbPath":"/"} + // - This request adds files in the given s3Path under the 2020.01.02 partition + // of the database. { "changeType": "PUT", + // "s3Path":"s3://bucket/db/2020.01.02/", "dbPath":"/2020.01.02/"} + // - This request adds files in the given s3Path under the taq table partition of + // the database. [ { "changeType": "PUT", + // "s3Path":"s3://bucket/db/2020.01.02/taq/", "dbPath":"/2020.01.02/taq/"}] + // - This request deletes the 2020.01.02 partition of the database. [{ + // "changeType": "DELETE", "dbPath": "/2020.01.02/"} ] + // - The DELETE request allows you to delete the existing files under the + // 2020.01.02 partition of the database, and the PUT request adds a new taq table + // under it. [ {"changeType": "DELETE", "dbPath":"/2020.01.02/"}, {"changeType": + // "PUT", "s3Path":"s3://bucket/db/2020.01.02/taq/", "dbPath":"/2020.01.02/taq/"}] // // This member is required. ChangeRequests []types.ChangeRequest diff --git a/service/finspace/api_op_CreateKxCluster.go b/service/finspace/api_op_CreateKxCluster.go index 8b6596fd0a3..1a6bfb78cf0 100644 --- a/service/finspace/api_op_CreateKxCluster.go +++ b/service/finspace/api_op_CreateKxCluster.go @@ -65,6 +65,11 @@ type CreateKxClusterInput struct { // kdb systems. It allows you to create your own routing logic using the // initialization scripts and custom code. This type of cluster does not require a // writable local storage. + // - GP – A general purpose cluster allows you to quickly iterate on code during + // development by granting greater access to system commands and enabling a fast + // reload of custom code. This cluster type can optionally mount databases + // including cache and savedown storage. For this cluster type, the node count is + // fixed at 1. It does not support autoscaling and supports only SINGLE AZ mode. // // This member is required. ClusterType types.KxClusterType @@ -178,6 +183,11 @@ type CreateKxClusterOutput struct { // kdb systems. It allows you to create your own routing logic using the // initialization scripts and custom code. This type of cluster does not require a // writable local storage. + // - GP – A general purpose cluster allows you to quickly iterate on code during + // development by granting greater access to system commands and enabling a fast + // reload of custom code. This cluster type can optionally mount databases + // including cache and savedown storage. For this cluster type, the node count is + // fixed at 1. It does not support autoscaling and supports only SINGLE AZ mode. ClusterType types.KxClusterType // The details of the custom code that you want to use inside a cluster when diff --git a/service/finspace/api_op_GetKxCluster.go b/service/finspace/api_op_GetKxCluster.go index c361376c82c..c669f455e1b 100644 --- a/service/finspace/api_op_GetKxCluster.go +++ b/service/finspace/api_op_GetKxCluster.go @@ -88,6 +88,11 @@ type GetKxClusterOutput struct { // kdb systems. It allows you to create your own routing logic using the // initialization scripts and custom code. This type of cluster does not require a // writable local storage. + // - GP – A general purpose cluster allows you to quickly iterate on code during + // development by granting greater access to system commands and enabling a fast + // reload of custom code. This cluster type can optionally mount databases + // including cache and savedown storage. For this cluster type, the node count is + // fixed at 1. It does not support autoscaling and supports only SINGLE AZ mode. ClusterType types.KxClusterType // The details of the custom code that you want to use inside a cluster when diff --git a/service/finspace/api_op_ListKxClusters.go b/service/finspace/api_op_ListKxClusters.go index 933af73ae40..e906524ffc2 100644 --- a/service/finspace/api_op_ListKxClusters.go +++ b/service/finspace/api_op_ListKxClusters.go @@ -50,6 +50,11 @@ type ListKxClustersInput struct { // kdb systems. It allows you to create your own routing logic using the // initialization scripts and custom code. This type of cluster does not require a // writable local storage. + // - GP – A general purpose cluster allows you to quickly iterate on code during + // development by granting greater access to system commands and enabling a fast + // reload of custom code. This cluster type can optionally mount databases + // including cache and savedown storage. For this cluster type, the node count is + // fixed at 1. It does not support autoscaling and supports only SINGLE AZ mode. ClusterType types.KxClusterType // The maximum number of results to return in this request. diff --git a/service/finspace/api_op_UpdateKxClusterCodeConfiguration.go b/service/finspace/api_op_UpdateKxClusterCodeConfiguration.go index a7ec81a4212..afc03d8ae5c 100644 --- a/service/finspace/api_op_UpdateKxClusterCodeConfiguration.go +++ b/service/finspace/api_op_UpdateKxClusterCodeConfiguration.go @@ -51,7 +51,8 @@ type UpdateKxClusterCodeConfigurationInput struct { // A token that ensures idempotency. This token expires in 10 minutes. ClientToken *string - // Specifies the key-value pairs to make them available inside the cluster. + // Specifies the key-value pairs to make them available inside the cluster. You + // cannot update this parameter for a NO_RESTART deployment. CommandLineArguments []types.KxCommandLineArgument // The configuration that allows you to choose how you want to update the code on @@ -60,7 +61,8 @@ type UpdateKxClusterCodeConfigurationInput struct { // Specifies a Q program that will be run at launch of a cluster. It is a relative // path within .zip file that contains the custom code, which will be loaded on the - // cluster. It must include the file name itself. For example, somedir/init.q . + // cluster. It must include the file name itself. For example, somedir/init.q . You + // cannot update this parameter for a NO_RESTART deployment. InitializationScript *string noSmithyDocumentSerde diff --git a/service/finspace/auth.go b/service/finspace/auth.go index 6cc3e629bef..7b5d0786e78 100644 --- a/service/finspace/auth.go +++ b/service/finspace/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/finspace/go.mod b/service/finspace/go.mod index ab6530890bd..dafd57b987b 100644 --- a/service/finspace/go.mod +++ b/service/finspace/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/finspace go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/finspace/go.sum b/service/finspace/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/finspace/go.sum +++ b/service/finspace/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspace/go_module_metadata.go b/service/finspace/go_module_metadata.go index 27578344b13..260c7098695 100644 --- a/service/finspace/go_module_metadata.go +++ b/service/finspace/go_module_metadata.go @@ -3,4 +3,4 @@ package finspace // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.19.0" diff --git a/service/finspace/options.go b/service/finspace/options.go index 7be03a775f1..7431bc9a1e3 100644 --- a/service/finspace/options.go +++ b/service/finspace/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/finspace/types/enums.go b/service/finspace/types/enums.go index 2317f4ff638..d614d685149 100644 --- a/service/finspace/types/enums.go +++ b/service/finspace/types/enums.go @@ -208,8 +208,9 @@ type KxClusterCodeDeploymentStrategy string // Enum values for KxClusterCodeDeploymentStrategy const ( - KxClusterCodeDeploymentStrategyRolling KxClusterCodeDeploymentStrategy = "ROLLING" - KxClusterCodeDeploymentStrategyForce KxClusterCodeDeploymentStrategy = "FORCE" + KxClusterCodeDeploymentStrategyNoRestart KxClusterCodeDeploymentStrategy = "NO_RESTART" + KxClusterCodeDeploymentStrategyRolling KxClusterCodeDeploymentStrategy = "ROLLING" + KxClusterCodeDeploymentStrategyForce KxClusterCodeDeploymentStrategy = "FORCE" ) // Values returns all known values for KxClusterCodeDeploymentStrategy. Note that @@ -218,6 +219,7 @@ const ( // updates. func (KxClusterCodeDeploymentStrategy) Values() []KxClusterCodeDeploymentStrategy { return []KxClusterCodeDeploymentStrategy{ + "NO_RESTART", "ROLLING", "FORCE", } @@ -260,6 +262,7 @@ const ( KxClusterTypeHdb KxClusterType = "HDB" KxClusterTypeRdb KxClusterType = "RDB" KxClusterTypeGateway KxClusterType = "GATEWAY" + KxClusterTypeGp KxClusterType = "GP" ) // Values returns all known values for KxClusterType. Note that this can be @@ -270,6 +273,7 @@ func (KxClusterType) Values() []KxClusterType { "HDB", "RDB", "GATEWAY", + "GP", } } diff --git a/service/finspace/types/types.go b/service/finspace/types/types.go index f9d99910bfc..8e0fcb901fe 100644 --- a/service/finspace/types/types.go +++ b/service/finspace/types/types.go @@ -315,6 +315,11 @@ type KxCluster struct { // kdb systems. It allows you to create your own routing logic using the // initialization scripts and custom code. This type of cluster does not require a // writable local storage. + // - GP – A general purpose cluster allows you to quickly iterate on code during + // development by granting greater access to system commands and enabling a fast + // reload of custom code. This cluster type can optionally mount databases + // including cache and savedown storage. For this cluster type, the node count is + // fixed at 1. It does not support autoscaling and supports only SINGLE AZ mode. ClusterType KxClusterType // The timestamp at which the cluster was created in FinSpace. The value is @@ -364,6 +369,11 @@ type KxClusterCodeDeploymentConfiguration struct { // The type of deployment that you want on a cluster. // - ROLLING – This options updates the cluster by stopping the exiting q // process and starting a new q process with updated configuration. + // - NO_RESTART – This option updates the cluster without stopping the running q + // process. It is only available for GP type cluster. This option is quicker as + // it reduces the turn around time to update configuration on a cluster. With this + // deployment mode, you cannot update the initializationScript and + // commandLineArguments parameters. // - FORCE – This option updates the cluster by immediately stopping all the // running processes before starting up new ones with the updated configuration. // diff --git a/service/finspacedata/CHANGELOG.md b/service/finspacedata/CHANGELOG.md index 59a8d2ced29..0d43c74ec57 100644 --- a/service/finspacedata/CHANGELOG.md +++ b/service/finspacedata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/finspacedata/api_client.go b/service/finspacedata/api_client.go index 583f924aaa6..b6a49d7e4f9 100644 --- a/service/finspacedata/api_client.go +++ b/service/finspacedata/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/finspacedata/auth.go b/service/finspacedata/auth.go index 0d1673f61c2..2f1d54dbb20 100644 --- a/service/finspacedata/auth.go +++ b/service/finspacedata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/finspacedata/go.mod b/service/finspacedata/go.mod index 68a7ed800e9..5374a2a9e27 100644 --- a/service/finspacedata/go.mod +++ b/service/finspacedata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/finspacedata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/finspacedata/go.sum b/service/finspacedata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/finspacedata/go.sum +++ b/service/finspacedata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/finspacedata/go_module_metadata.go b/service/finspacedata/go_module_metadata.go index 3cd5c798a9b..5ca4d1341e3 100644 --- a/service/finspacedata/go_module_metadata.go +++ b/service/finspacedata/go_module_metadata.go @@ -3,4 +3,4 @@ package finspacedata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/finspacedata/options.go b/service/finspacedata/options.go index 1bf80b639ca..a43803a6333 100644 --- a/service/finspacedata/options.go +++ b/service/finspacedata/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/firehose/CHANGELOG.md b/service/firehose/CHANGELOG.md index de436ac1d26..364901bc486 100644 --- a/service/firehose/CHANGELOG.md +++ b/service/firehose/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/firehose/api_client.go b/service/firehose/api_client.go index 17e82103ebb..2e5a73ab989 100644 --- a/service/firehose/api_client.go +++ b/service/firehose/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/firehose/auth.go b/service/firehose/auth.go index c53b2ef55de..72fbda96c48 100644 --- a/service/firehose/auth.go +++ b/service/firehose/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/firehose/go.mod b/service/firehose/go.mod index 2ae100f8c29..78532603c33 100644 --- a/service/firehose/go.mod +++ b/service/firehose/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/firehose go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/firehose/go.sum b/service/firehose/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/firehose/go.sum +++ b/service/firehose/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/firehose/go_module_metadata.go b/service/firehose/go_module_metadata.go index 09a89b3aa1c..a179870ee75 100644 --- a/service/firehose/go_module_metadata.go +++ b/service/firehose/go_module_metadata.go @@ -3,4 +3,4 @@ package firehose // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/firehose/options.go b/service/firehose/options.go index eadcf8d6489..a25da4fcad2 100644 --- a/service/firehose/options.go +++ b/service/firehose/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/fis/CHANGELOG.md b/service/fis/CHANGELOG.md index bdb81b7620e..5c3d3274a68 100644 --- a/service/fis/CHANGELOG.md +++ b/service/fis/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/fis/api_client.go b/service/fis/api_client.go index 529000621d0..ae25b5e7b94 100644 --- a/service/fis/api_client.go +++ b/service/fis/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/fis/auth.go b/service/fis/auth.go index 738e70520ac..685c03e2d78 100644 --- a/service/fis/auth.go +++ b/service/fis/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/fis/go.mod b/service/fis/go.mod index ebc9587981b..ef6b931d0b5 100644 --- a/service/fis/go.mod +++ b/service/fis/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fis go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fis/go.sum b/service/fis/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/fis/go.sum +++ b/service/fis/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fis/go_module_metadata.go b/service/fis/go_module_metadata.go index 861db369695..e0993556b45 100644 --- a/service/fis/go_module_metadata.go +++ b/service/fis/go_module_metadata.go @@ -3,4 +3,4 @@ package fis // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/fis/options.go b/service/fis/options.go index 987d2008139..16bb3680b6f 100644 --- a/service/fis/options.go +++ b/service/fis/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/fms/CHANGELOG.md b/service/fms/CHANGELOG.md index b0eceeff0b6..2487835b943 100644 --- a/service/fms/CHANGELOG.md +++ b/service/fms/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/fms/api_client.go b/service/fms/api_client.go index 3407e4f1a95..7dbbd404894 100644 --- a/service/fms/api_client.go +++ b/service/fms/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/fms/auth.go b/service/fms/auth.go index 6fb4a2f89c2..8f3e2bfda31 100644 --- a/service/fms/auth.go +++ b/service/fms/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/fms/go.mod b/service/fms/go.mod index afecf447894..fd593f7b1c7 100644 --- a/service/fms/go.mod +++ b/service/fms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fms go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fms/go.sum b/service/fms/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/fms/go.sum +++ b/service/fms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fms/go_module_metadata.go b/service/fms/go_module_metadata.go index 08d5450516d..2c2569a8b7b 100644 --- a/service/fms/go_module_metadata.go +++ b/service/fms/go_module_metadata.go @@ -3,4 +3,4 @@ package fms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/fms/options.go b/service/fms/options.go index 0cfbe0bc87b..fffcf95b3f4 100644 --- a/service/fms/options.go +++ b/service/fms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/forecast/CHANGELOG.md b/service/forecast/CHANGELOG.md index 5fb1a13ac82..d0931c1e09d 100644 --- a/service/forecast/CHANGELOG.md +++ b/service/forecast/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.30.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.30.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/forecast/api_client.go b/service/forecast/api_client.go index 1845567d68d..b9e37befdbc 100644 --- a/service/forecast/api_client.go +++ b/service/forecast/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/forecast/auth.go b/service/forecast/auth.go index c4b60701ff1..7bd1e23034a 100644 --- a/service/forecast/auth.go +++ b/service/forecast/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/forecast/go.mod b/service/forecast/go.mod index 82f2ba845f7..e59cf967cc3 100644 --- a/service/forecast/go.mod +++ b/service/forecast/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/forecast go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/forecast/go.sum b/service/forecast/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/forecast/go.sum +++ b/service/forecast/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecast/go_module_metadata.go b/service/forecast/go_module_metadata.go index 14e9c060b74..260c1db5e77 100644 --- a/service/forecast/go_module_metadata.go +++ b/service/forecast/go_module_metadata.go @@ -3,4 +3,4 @@ package forecast // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.0" +const goModuleVersion = "1.30.2" diff --git a/service/forecast/options.go b/service/forecast/options.go index 681f63ad450..1264f451689 100644 --- a/service/forecast/options.go +++ b/service/forecast/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/forecastquery/CHANGELOG.md b/service/forecastquery/CHANGELOG.md index ffd838e775c..8b759b5ee57 100644 --- a/service/forecastquery/CHANGELOG.md +++ b/service/forecastquery/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/forecastquery/api_client.go b/service/forecastquery/api_client.go index ce5460eeab5..4312d346641 100644 --- a/service/forecastquery/api_client.go +++ b/service/forecastquery/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/forecastquery/auth.go b/service/forecastquery/auth.go index 134a7bc7d6a..bb6345456d9 100644 --- a/service/forecastquery/auth.go +++ b/service/forecastquery/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/forecastquery/go.mod b/service/forecastquery/go.mod index 881d6d4c9fa..d3bfe58c2b2 100644 --- a/service/forecastquery/go.mod +++ b/service/forecastquery/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/forecastquery go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/forecastquery/go.sum b/service/forecastquery/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/forecastquery/go.sum +++ b/service/forecastquery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/forecastquery/go_module_metadata.go b/service/forecastquery/go_module_metadata.go index 197afe8aa62..262481c288c 100644 --- a/service/forecastquery/go_module_metadata.go +++ b/service/forecastquery/go_module_metadata.go @@ -3,4 +3,4 @@ package forecastquery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/forecastquery/options.go b/service/forecastquery/options.go index 22427f41b15..156f6066201 100644 --- a/service/forecastquery/options.go +++ b/service/forecastquery/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/frauddetector/CHANGELOG.md b/service/frauddetector/CHANGELOG.md index dbf24436afb..14edf42232f 100644 --- a/service/frauddetector/CHANGELOG.md +++ b/service/frauddetector/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/frauddetector/api_client.go b/service/frauddetector/api_client.go index 91e8058acdd..3349eea8ac7 100644 --- a/service/frauddetector/api_client.go +++ b/service/frauddetector/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/frauddetector/auth.go b/service/frauddetector/auth.go index ba527bdf5eb..07125816fe6 100644 --- a/service/frauddetector/auth.go +++ b/service/frauddetector/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/frauddetector/go.mod b/service/frauddetector/go.mod index a221d47de15..33597dc61a9 100644 --- a/service/frauddetector/go.mod +++ b/service/frauddetector/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/frauddetector go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/frauddetector/go.sum b/service/frauddetector/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/frauddetector/go.sum +++ b/service/frauddetector/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/frauddetector/go_module_metadata.go b/service/frauddetector/go_module_metadata.go index d1f1079a6e8..72956046ea0 100644 --- a/service/frauddetector/go_module_metadata.go +++ b/service/frauddetector/go_module_metadata.go @@ -3,4 +3,4 @@ package frauddetector // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/frauddetector/options.go b/service/frauddetector/options.go index 5688836c679..c8d88a52aaf 100644 --- a/service/frauddetector/options.go +++ b/service/frauddetector/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/freetier/CHANGELOG.md b/service/freetier/CHANGELOG.md index eb17602476a..e372d71a835 100644 --- a/service/freetier/CHANGELOG.md +++ b/service/freetier/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/freetier/api_client.go b/service/freetier/api_client.go index d3c77ff48fc..0fa53d9dd3e 100644 --- a/service/freetier/api_client.go +++ b/service/freetier/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/freetier/auth.go b/service/freetier/auth.go index 12f163906a2..328f470de66 100644 --- a/service/freetier/auth.go +++ b/service/freetier/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/freetier/go.mod b/service/freetier/go.mod index a25aefb3bad..79345b30573 100644 --- a/service/freetier/go.mod +++ b/service/freetier/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/freetier go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/freetier/go.sum b/service/freetier/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/freetier/go.sum +++ b/service/freetier/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/freetier/go_module_metadata.go b/service/freetier/go_module_metadata.go index ddd159f0e60..bba23fff78b 100644 --- a/service/freetier/go_module_metadata.go +++ b/service/freetier/go_module_metadata.go @@ -3,4 +3,4 @@ package freetier // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/freetier/options.go b/service/freetier/options.go index 66cceb79bd0..3517d989c67 100644 --- a/service/freetier/options.go +++ b/service/freetier/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/fsx/CHANGELOG.md b/service/fsx/CHANGELOG.md index 48382ceca0d..0f06a6a4b24 100644 --- a/service/fsx/CHANGELOG.md +++ b/service/fsx/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.39.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.39.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/fsx/api_client.go b/service/fsx/api_client.go index d12a33a4603..9de48583a7c 100644 --- a/service/fsx/api_client.go +++ b/service/fsx/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/fsx/auth.go b/service/fsx/auth.go index 3f6dedadadd..ac7b7d8a3ce 100644 --- a/service/fsx/auth.go +++ b/service/fsx/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/fsx/go.mod b/service/fsx/go.mod index 924e3e0e5b1..722f45727bd 100644 --- a/service/fsx/go.mod +++ b/service/fsx/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/fsx go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/fsx/go.sum b/service/fsx/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/fsx/go.sum +++ b/service/fsx/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/fsx/go_module_metadata.go b/service/fsx/go_module_metadata.go index 88f66d0a8dc..21d440acfaf 100644 --- a/service/fsx/go_module_metadata.go +++ b/service/fsx/go_module_metadata.go @@ -3,4 +3,4 @@ package fsx // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.0" +const goModuleVersion = "1.39.2" diff --git a/service/fsx/options.go b/service/fsx/options.go index 947414c3e50..ad3e7b0f896 100644 --- a/service/fsx/options.go +++ b/service/fsx/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/gamelift/CHANGELOG.md b/service/gamelift/CHANGELOG.md index 63234cb0e29..bb02d9c4e06 100644 --- a/service/gamelift/CHANGELOG.md +++ b/service/gamelift/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.27.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/gamelift/api_client.go b/service/gamelift/api_client.go index 1a18e18af69..bb088fd7cb0 100644 --- a/service/gamelift/api_client.go +++ b/service/gamelift/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/gamelift/auth.go b/service/gamelift/auth.go index 7b2e8236b02..7c4cbc1fdec 100644 --- a/service/gamelift/auth.go +++ b/service/gamelift/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/gamelift/go.mod b/service/gamelift/go.mod index 44f4c9039db..014893072e4 100644 --- a/service/gamelift/go.mod +++ b/service/gamelift/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/gamelift go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/gamelift/go.sum b/service/gamelift/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/gamelift/go.sum +++ b/service/gamelift/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/gamelift/go_module_metadata.go b/service/gamelift/go_module_metadata.go index e4fc1f68287..4d4ea9b6cc4 100644 --- a/service/gamelift/go_module_metadata.go +++ b/service/gamelift/go_module_metadata.go @@ -3,4 +3,4 @@ package gamelift // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.2" diff --git a/service/gamelift/options.go b/service/gamelift/options.go index 45ff7071592..36e75fd5be8 100644 --- a/service/gamelift/options.go +++ b/service/gamelift/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/glacier/CHANGELOG.md b/service/glacier/CHANGELOG.md index 4caf1040149..3c6360d32e0 100644 --- a/service/glacier/CHANGELOG.md +++ b/service/glacier/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/glacier/api_client.go b/service/glacier/api_client.go index 294ad475315..6fc656e2396 100644 --- a/service/glacier/api_client.go +++ b/service/glacier/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/glacier/auth.go b/service/glacier/auth.go index c9482d969ab..83eb0881573 100644 --- a/service/glacier/auth.go +++ b/service/glacier/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/glacier/go.mod b/service/glacier/go.mod index db994df4a91..6d3fadf354e 100644 --- a/service/glacier/go.mod +++ b/service/glacier/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/glacier go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/glacier/go.sum b/service/glacier/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/glacier/go.sum +++ b/service/glacier/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glacier/go_module_metadata.go b/service/glacier/go_module_metadata.go index d5ad27b67b9..eef0b364a0c 100644 --- a/service/glacier/go_module_metadata.go +++ b/service/glacier/go_module_metadata.go @@ -3,4 +3,4 @@ package glacier // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/glacier/options.go b/service/glacier/options.go index 5c979f6210c..841f87e2f6c 100644 --- a/service/glacier/options.go +++ b/service/glacier/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/globalaccelerator/CHANGELOG.md b/service/globalaccelerator/CHANGELOG.md index 38b8e114f1d..4cf479ac52d 100644 --- a/service/globalaccelerator/CHANGELOG.md +++ b/service/globalaccelerator/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/globalaccelerator/api_client.go b/service/globalaccelerator/api_client.go index 1a9fd55ef6a..fca9988bc9b 100644 --- a/service/globalaccelerator/api_client.go +++ b/service/globalaccelerator/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/globalaccelerator/auth.go b/service/globalaccelerator/auth.go index 29539e292b6..e41d6acade9 100644 --- a/service/globalaccelerator/auth.go +++ b/service/globalaccelerator/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/globalaccelerator/go.mod b/service/globalaccelerator/go.mod index 03c69a00fdd..159f1119fbb 100644 --- a/service/globalaccelerator/go.mod +++ b/service/globalaccelerator/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/globalaccelerator go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/globalaccelerator/go.sum b/service/globalaccelerator/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/globalaccelerator/go.sum +++ b/service/globalaccelerator/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/globalaccelerator/go_module_metadata.go b/service/globalaccelerator/go_module_metadata.go index 0a1d8bcc4ff..9253d38a57b 100644 --- a/service/globalaccelerator/go_module_metadata.go +++ b/service/globalaccelerator/go_module_metadata.go @@ -3,4 +3,4 @@ package globalaccelerator // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/globalaccelerator/options.go b/service/globalaccelerator/options.go index a203bc0e804..f1b6a63f9e8 100644 --- a/service/globalaccelerator/options.go +++ b/service/globalaccelerator/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/glue/CHANGELOG.md b/service/glue/CHANGELOG.md index d3e156de5c7..b97ce6bab33 100644 --- a/service/glue/CHANGELOG.md +++ b/service/glue/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.72.1 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.72.0 (2023-11-30.2) + +* **Feature**: Adds observation and analyzer support to the GetDataQualityResult and BatchGetDataQualityResult APIs. + +# v1.71.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.71.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/glue/api_client.go b/service/glue/api_client.go index 54d7ad731e3..b255f672412 100644 --- a/service/glue/api_client.go +++ b/service/glue/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/glue/api_op_GetDataQualityResult.go b/service/glue/api_op_GetDataQualityResult.go index 9f09194658f..0c03ae9840e 100644 --- a/service/glue/api_op_GetDataQualityResult.go +++ b/service/glue/api_op_GetDataQualityResult.go @@ -41,6 +41,10 @@ type GetDataQualityResultInput struct { type GetDataQualityResultOutput struct { + // A list of DataQualityAnalyzerResult objects representing the results for each + // analyzer. + AnalyzerResults []types.DataQualityAnalyzerResult + // The date and time when the run for this data quality result was completed. CompletedOn *time.Time @@ -58,6 +62,10 @@ type GetDataQualityResultOutput struct { // The job run ID associated with the data quality result, if any. JobRunId *string + // A list of DataQualityObservation objects representing the observations + // generated after evaluating the rules and analyzers. + Observations []types.DataQualityObservation + // A unique result ID for the data quality result. ResultId *string diff --git a/service/glue/auth.go b/service/glue/auth.go index 36bd1569486..bda1e172c01 100644 --- a/service/glue/auth.go +++ b/service/glue/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/glue/deserializers.go b/service/glue/deserializers.go index b70e899552c..759e937f13a 100644 --- a/service/glue/deserializers.go +++ b/service/glue/deserializers.go @@ -34551,6 +34551,103 @@ func awsAwsjson11_deserializeDocumentDataLakePrincipal(v **types.DataLakePrincip return nil } +func awsAwsjson11_deserializeDocumentDataQualityAnalyzerResult(v **types.DataQualityAnalyzerResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataQualityAnalyzerResult + if *v == nil { + sv = &types.DataQualityAnalyzerResult{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataQualityRuleResultDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "EvaluatedMetrics": + if err := awsAwsjson11_deserializeDocumentEvaluatedMetricsMap(&sv.EvaluatedMetrics, value); err != nil { + return err + } + + case "EvaluationMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataQualityRuleResultDescription to be of type string, got %T instead", value) + } + sv.EvaluationMessage = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDataQualityAnalyzerResults(v *[]types.DataQualityAnalyzerResult, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataQualityAnalyzerResult + if *v == nil { + cv = []types.DataQualityAnalyzerResult{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataQualityAnalyzerResult + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataQualityAnalyzerResult(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentDataQualityEvaluationRunAdditionalRunOptions(v **types.DataQualityEvaluationRunAdditionalRunOptions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -34600,6 +34697,252 @@ func awsAwsjson11_deserializeDocumentDataQualityEvaluationRunAdditionalRunOption return nil } +func awsAwsjson11_deserializeDocumentDataQualityMetricValues(v **types.DataQualityMetricValues, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataQualityMetricValues + if *v == nil { + sv = &types.DataQualityMetricValues{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ActualValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ActualValue = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.ActualValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected NullableDouble to be a JSON Number, got %T instead", value) + + } + } + + case "ExpectedValue": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ExpectedValue = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.ExpectedValue = ptr.Float64(f64) + + default: + return fmt.Errorf("expected NullableDouble to be a JSON Number, got %T instead", value) + + } + } + + case "LowerLimit": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.LowerLimit = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.LowerLimit = ptr.Float64(f64) + + default: + return fmt.Errorf("expected NullableDouble to be a JSON Number, got %T instead", value) + + } + } + + case "UpperLimit": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.UpperLimit = ptr.Float64(f64) + + case string: + var f64 float64 + switch { + case strings.EqualFold(jtv, "NaN"): + f64 = math.NaN() + + case strings.EqualFold(jtv, "Infinity"): + f64 = math.Inf(1) + + case strings.EqualFold(jtv, "-Infinity"): + f64 = math.Inf(-1) + + default: + return fmt.Errorf("unknown JSON number value: %s", jtv) + + } + sv.UpperLimit = ptr.Float64(f64) + + default: + return fmt.Errorf("expected NullableDouble to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDataQualityObservation(v **types.DataQualityObservation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataQualityObservation + if *v == nil { + sv = &types.DataQualityObservation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataQualityObservationDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "MetricBasedObservation": + if err := awsAwsjson11_deserializeDocumentMetricBasedObservation(&sv.MetricBasedObservation, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentDataQualityObservations(v *[]types.DataQualityObservation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DataQualityObservation + if *v == nil { + cv = []types.DataQualityObservation{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DataQualityObservation + destAddr := &col + if err := awsAwsjson11_deserializeDocumentDataQualityObservation(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentDataQualityResult(v **types.DataQualityResult, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -34622,6 +34965,11 @@ func awsAwsjson11_deserializeDocumentDataQualityResult(v **types.DataQualityResu for key, value := range shape { switch key { + case "AnalyzerResults": + if err := awsAwsjson11_deserializeDocumentDataQualityAnalyzerResults(&sv.AnalyzerResults, value); err != nil { + return err + } + case "CompletedOn": if value != nil { switch jtv := value.(type) { @@ -34670,6 +35018,11 @@ func awsAwsjson11_deserializeDocumentDataQualityResult(v **types.DataQualityResu sv.JobRunId = ptr.String(jtv) } + case "Observations": + if err := awsAwsjson11_deserializeDocumentDataQualityObservations(&sv.Observations, value); err != nil { + return err + } + case "ResultId": if value != nil { jtv, ok := value.(string) @@ -35110,7 +35463,7 @@ func awsAwsjson11_deserializeDocumentDataQualityRuleResult(v **types.DataQuality if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) + return fmt.Errorf("expected DataQualityRuleResultDescription to be of type string, got %T instead", value) } sv.Description = ptr.String(jtv) } @@ -35124,7 +35477,7 @@ func awsAwsjson11_deserializeDocumentDataQualityRuleResult(v **types.DataQuality if value != nil { jtv, ok := value.(string) if !ok { - return fmt.Errorf("expected DescriptionString to be of type string, got %T instead", value) + return fmt.Errorf("expected DataQualityRuleResultDescription to be of type string, got %T instead", value) } sv.EvaluationMessage = ptr.String(jtv) } @@ -43591,6 +43944,56 @@ func awsAwsjson11_deserializeDocumentMetadataInfoMap(v *map[string]types.Metadat return nil } +func awsAwsjson11_deserializeDocumentMetricBasedObservation(v **types.MetricBasedObservation, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.MetricBasedObservation + if *v == nil { + sv = &types.MetricBasedObservation{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "MetricName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + sv.MetricName = ptr.String(jtv) + } + + case "MetricValues": + if err := awsAwsjson11_deserializeDocumentDataQualityMetricValues(&sv.MetricValues, value); err != nil { + return err + } + + case "NewRules": + if err := awsAwsjson11_deserializeDocumentNewRules(&sv.NewRules, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentMicrosoftSQLServerCatalogSource(v **types.MicrosoftSQLServerCatalogSource, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -44287,6 +44690,42 @@ func awsAwsjson11_deserializeDocumentNameStringList(v *[]string, value interface return nil } +func awsAwsjson11_deserializeDocumentNewRules(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NameString to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentNode(v **types.Node, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -58219,6 +58658,11 @@ func awsAwsjson11_deserializeOpDocumentGetDataQualityResultOutput(v **GetDataQua for key, value := range shape { switch key { + case "AnalyzerResults": + if err := awsAwsjson11_deserializeDocumentDataQualityAnalyzerResults(&sv.AnalyzerResults, value); err != nil { + return err + } + case "CompletedOn": if value != nil { switch jtv := value.(type) { @@ -58267,6 +58711,11 @@ func awsAwsjson11_deserializeOpDocumentGetDataQualityResultOutput(v **GetDataQua sv.JobRunId = ptr.String(jtv) } + case "Observations": + if err := awsAwsjson11_deserializeDocumentDataQualityObservations(&sv.Observations, value); err != nil { + return err + } + case "ResultId": if value != nil { jtv, ok := value.(string) diff --git a/service/glue/go.mod b/service/glue/go.mod index ec0349c5551..d17504deee2 100644 --- a/service/glue/go.mod +++ b/service/glue/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/glue go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/glue/go.sum b/service/glue/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/glue/go.sum +++ b/service/glue/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/glue/go_module_metadata.go b/service/glue/go_module_metadata.go index d2f14666231..5f6b62f9145 100644 --- a/service/glue/go_module_metadata.go +++ b/service/glue/go_module_metadata.go @@ -3,4 +3,4 @@ package glue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.71.0" +const goModuleVersion = "1.72.1" diff --git a/service/glue/options.go b/service/glue/options.go index 94d1ad38833..6afeed444e7 100644 --- a/service/glue/options.go +++ b/service/glue/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/glue/types/types.go b/service/glue/types/types.go index 0c8361a16da..d67f3f84c38 100644 --- a/service/glue/types/types.go +++ b/service/glue/types/types.go @@ -2294,6 +2294,24 @@ type DataLakePrincipal struct { noSmithyDocumentSerde } +// Describes the result of the evaluation of a data quality analyzer. +type DataQualityAnalyzerResult struct { + + // A description of the data quality analyzer. + Description *string + + // A map of metrics associated with the evaluation of the analyzer. + EvaluatedMetrics map[string]float64 + + // An evaluation message. + EvaluationMessage *string + + // The name of the data quality analyzer. + Name *string + + noSmithyDocumentSerde +} + // Additional run options you can specify for an evaluation run. type DataQualityEvaluationRunAdditionalRunOptions struct { @@ -2306,9 +2324,48 @@ type DataQualityEvaluationRunAdditionalRunOptions struct { noSmithyDocumentSerde } +// Describes the data quality metric value according to the analysis of historical +// data. +type DataQualityMetricValues struct { + + // The actual value of the data quality metric. + ActualValue *float64 + + // The expected value of the data quality metric according to the analysis of + // historical data. + ExpectedValue *float64 + + // The lower limit of the data quality metric value according to the analysis of + // historical data. + LowerLimit *float64 + + // The upper limit of the data quality metric value according to the analysis of + // historical data. + UpperLimit *float64 + + noSmithyDocumentSerde +} + +// Describes the observation generated after evaluating the rules and analyzers. +type DataQualityObservation struct { + + // A description of the data quality observation. + Description *string + + // An object of type MetricBasedObservation representing the observation that is + // based on evaluated data quality metrics. + MetricBasedObservation *MetricBasedObservation + + noSmithyDocumentSerde +} + // Describes a data quality result. type DataQualityResult struct { + // A list of DataQualityAnalyzerResult objects representing the results for each + // analyzer. + AnalyzerResults []DataQualityAnalyzerResult + // The date and time when this data quality run completed. CompletedOn *time.Time @@ -2326,6 +2383,10 @@ type DataQualityResult struct { // The job run ID associated with the data quality result, if any. JobRunId *string + // A list of DataQualityObservation objects representing the observations + // generated after evaluating the rules and analyzers. + Observations []DataQualityObservation + // A unique result ID for the data quality result. ResultId *string @@ -5019,6 +5080,24 @@ type MetadataKeyValuePair struct { noSmithyDocumentSerde } +// Describes the metric based observation generated based on evaluated data +// quality metrics. +type MetricBasedObservation struct { + + // The name of the data quality metric used for generating the observation. + MetricName *string + + // An object of type DataQualityMetricValues representing the analysis of the data + // quality metric value. + MetricValues *DataQualityMetricValues + + // A list of new data quality rules generated as part of the observation based on + // the data quality metric value. + NewRules []string + + noSmithyDocumentSerde +} + // Specifies a Microsoft SQL server data source in the Glue Data Catalog. type MicrosoftSQLServerCatalogSource struct { diff --git a/service/grafana/CHANGELOG.md b/service/grafana/CHANGELOG.md index 41e1c66d431..352eb1d8811 100644 --- a/service/grafana/CHANGELOG.md +++ b/service/grafana/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/grafana/api_client.go b/service/grafana/api_client.go index e517db14ac4..92b969618fc 100644 --- a/service/grafana/api_client.go +++ b/service/grafana/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/grafana/auth.go b/service/grafana/auth.go index 59e396794e8..df5b03a2d2d 100644 --- a/service/grafana/auth.go +++ b/service/grafana/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/grafana/go.mod b/service/grafana/go.mod index e0adf893e4e..248cea0f9d9 100644 --- a/service/grafana/go.mod +++ b/service/grafana/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/grafana go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/grafana/go.sum b/service/grafana/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/grafana/go.sum +++ b/service/grafana/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/grafana/go_module_metadata.go b/service/grafana/go_module_metadata.go index 5023f03607b..e4476f5849d 100644 --- a/service/grafana/go_module_metadata.go +++ b/service/grafana/go_module_metadata.go @@ -3,4 +3,4 @@ package grafana // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/grafana/options.go b/service/grafana/options.go index bbe5e475250..2ba89e44622 100644 --- a/service/grafana/options.go +++ b/service/grafana/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/greengrass/CHANGELOG.md b/service/greengrass/CHANGELOG.md index 4487bb88dbb..17e0f5224c5 100644 --- a/service/greengrass/CHANGELOG.md +++ b/service/greengrass/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/greengrass/api_client.go b/service/greengrass/api_client.go index 8b1fe9f2f40..7c7b346ab78 100644 --- a/service/greengrass/api_client.go +++ b/service/greengrass/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/greengrass/auth.go b/service/greengrass/auth.go index 00dbdbb11d2..44689a60a8b 100644 --- a/service/greengrass/auth.go +++ b/service/greengrass/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/greengrass/go.mod b/service/greengrass/go.mod index 82eaeb195c4..2fa83697ac3 100644 --- a/service/greengrass/go.mod +++ b/service/greengrass/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/greengrass go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/greengrass/go.sum b/service/greengrass/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/greengrass/go.sum +++ b/service/greengrass/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrass/go_module_metadata.go b/service/greengrass/go_module_metadata.go index c27b852d61b..b146c558e68 100644 --- a/service/greengrass/go_module_metadata.go +++ b/service/greengrass/go_module_metadata.go @@ -3,4 +3,4 @@ package greengrass // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/greengrass/options.go b/service/greengrass/options.go index 1e13065b674..b52006133ce 100644 --- a/service/greengrass/options.go +++ b/service/greengrass/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/greengrassv2/CHANGELOG.md b/service/greengrassv2/CHANGELOG.md index d2d8961960e..82a849ca662 100644 --- a/service/greengrassv2/CHANGELOG.md +++ b/service/greengrassv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/greengrassv2/api_client.go b/service/greengrassv2/api_client.go index 42e96a74f8f..a8dd59f2312 100644 --- a/service/greengrassv2/api_client.go +++ b/service/greengrassv2/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/greengrassv2/auth.go b/service/greengrassv2/auth.go index 73a7632dbe2..87f79b0110f 100644 --- a/service/greengrassv2/auth.go +++ b/service/greengrassv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/greengrassv2/go.mod b/service/greengrassv2/go.mod index 38efe85ae6e..5f9372c6c51 100644 --- a/service/greengrassv2/go.mod +++ b/service/greengrassv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/greengrassv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/greengrassv2/go.sum b/service/greengrassv2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/greengrassv2/go.sum +++ b/service/greengrassv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/greengrassv2/go_module_metadata.go b/service/greengrassv2/go_module_metadata.go index 557213e4cb2..4ab3d3e68e2 100644 --- a/service/greengrassv2/go_module_metadata.go +++ b/service/greengrassv2/go_module_metadata.go @@ -3,4 +3,4 @@ package greengrassv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/greengrassv2/options.go b/service/greengrassv2/options.go index fa6b57543bf..a55cda59f18 100644 --- a/service/greengrassv2/options.go +++ b/service/greengrassv2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/groundstation/CHANGELOG.md b/service/groundstation/CHANGELOG.md index ed558efb8f0..df2cd3f8156 100644 --- a/service/groundstation/CHANGELOG.md +++ b/service/groundstation/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/groundstation/api_client.go b/service/groundstation/api_client.go index 9c8a6b7102e..9a275461e59 100644 --- a/service/groundstation/api_client.go +++ b/service/groundstation/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/groundstation/auth.go b/service/groundstation/auth.go index d4c0c3eb882..60b3c46e78f 100644 --- a/service/groundstation/auth.go +++ b/service/groundstation/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/groundstation/go.mod b/service/groundstation/go.mod index 768faa91fdd..282aac57202 100644 --- a/service/groundstation/go.mod +++ b/service/groundstation/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/groundstation go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/groundstation/go.sum b/service/groundstation/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/groundstation/go.sum +++ b/service/groundstation/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/groundstation/go_module_metadata.go b/service/groundstation/go_module_metadata.go index 5f645e6b690..dc06e7b09c7 100644 --- a/service/groundstation/go_module_metadata.go +++ b/service/groundstation/go_module_metadata.go @@ -3,4 +3,4 @@ package groundstation // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/groundstation/options.go b/service/groundstation/options.go index cdb9264f952..3f4e9938823 100644 --- a/service/groundstation/options.go +++ b/service/groundstation/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/guardduty/CHANGELOG.md b/service/guardduty/CHANGELOG.md index 664f1c1191f..c2190c7a203 100644 --- a/service/guardduty/CHANGELOG.md +++ b/service/guardduty/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/guardduty/api_client.go b/service/guardduty/api_client.go index 4e2b095dd92..02889050c13 100644 --- a/service/guardduty/api_client.go +++ b/service/guardduty/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/guardduty/auth.go b/service/guardduty/auth.go index 77ede1742ae..1920a38c662 100644 --- a/service/guardduty/auth.go +++ b/service/guardduty/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/guardduty/go.mod b/service/guardduty/go.mod index 20574358cb9..4dfacd4d172 100644 --- a/service/guardduty/go.mod +++ b/service/guardduty/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/guardduty go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/guardduty/go.sum b/service/guardduty/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/guardduty/go.sum +++ b/service/guardduty/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/guardduty/go_module_metadata.go b/service/guardduty/go_module_metadata.go index f85c92e98ae..15c4df18c7c 100644 --- a/service/guardduty/go_module_metadata.go +++ b/service/guardduty/go_module_metadata.go @@ -3,4 +3,4 @@ package guardduty // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/guardduty/options.go b/service/guardduty/options.go index f972ada307f..9b5f0cdd64f 100644 --- a/service/guardduty/options.go +++ b/service/guardduty/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/health/CHANGELOG.md b/service/health/CHANGELOG.md index 4ba5598d299..7f201c96846 100644 --- a/service/health/CHANGELOG.md +++ b/service/health/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/health/api_client.go b/service/health/api_client.go index 1b3d747fa68..ea3476d1dec 100644 --- a/service/health/api_client.go +++ b/service/health/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/health/auth.go b/service/health/auth.go index 2389c1553ec..244aaeab614 100644 --- a/service/health/auth.go +++ b/service/health/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/health/go.mod b/service/health/go.mod index 8ac421d049c..1b5ca3e8339 100644 --- a/service/health/go.mod +++ b/service/health/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/health go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/health/go.sum b/service/health/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/health/go.sum +++ b/service/health/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/health/go_module_metadata.go b/service/health/go_module_metadata.go index ec8bd1ffb9b..e4fec524521 100644 --- a/service/health/go_module_metadata.go +++ b/service/health/go_module_metadata.go @@ -3,4 +3,4 @@ package health // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/health/options.go b/service/health/options.go index 582dfc43310..620b052aa5a 100644 --- a/service/health/options.go +++ b/service/health/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/healthlake/CHANGELOG.md b/service/healthlake/CHANGELOG.md index 361f1aaf63e..5d5acc51408 100644 --- a/service/healthlake/CHANGELOG.md +++ b/service/healthlake/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/healthlake/api_client.go b/service/healthlake/api_client.go index 45c13516d8a..89aa793be2e 100644 --- a/service/healthlake/api_client.go +++ b/service/healthlake/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/healthlake/auth.go b/service/healthlake/auth.go index c2ff82bb01e..e2add0877b3 100644 --- a/service/healthlake/auth.go +++ b/service/healthlake/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/healthlake/go.mod b/service/healthlake/go.mod index d4af174b3ee..79d087a6405 100644 --- a/service/healthlake/go.mod +++ b/service/healthlake/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/healthlake go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/healthlake/go.sum b/service/healthlake/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/healthlake/go.sum +++ b/service/healthlake/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/healthlake/go_module_metadata.go b/service/healthlake/go_module_metadata.go index 32b174a2ac7..271eb0327c6 100644 --- a/service/healthlake/go_module_metadata.go +++ b/service/healthlake/go_module_metadata.go @@ -3,4 +3,4 @@ package healthlake // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/healthlake/options.go b/service/healthlake/options.go index af761758abf..dc8dd288c34 100644 --- a/service/healthlake/options.go +++ b/service/healthlake/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/honeycode/CHANGELOG.md b/service/honeycode/CHANGELOG.md index 4c55fc32bc3..8d1206a30dc 100644 --- a/service/honeycode/CHANGELOG.md +++ b/service/honeycode/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/honeycode/api_client.go b/service/honeycode/api_client.go index 7bddd916ef6..242633cdc0c 100644 --- a/service/honeycode/api_client.go +++ b/service/honeycode/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/honeycode/auth.go b/service/honeycode/auth.go index e673bdb13bb..1985f7c6ef1 100644 --- a/service/honeycode/auth.go +++ b/service/honeycode/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/honeycode/go.mod b/service/honeycode/go.mod index 27a40694508..9e8a8fcc200 100644 --- a/service/honeycode/go.mod +++ b/service/honeycode/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/honeycode go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/honeycode/go.sum b/service/honeycode/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/honeycode/go.sum +++ b/service/honeycode/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/honeycode/go_module_metadata.go b/service/honeycode/go_module_metadata.go index 0941343ff84..5934fbaf6f7 100644 --- a/service/honeycode/go_module_metadata.go +++ b/service/honeycode/go_module_metadata.go @@ -3,4 +3,4 @@ package honeycode // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/honeycode/options.go b/service/honeycode/options.go index d57ea8c8dda..d1a70b9ca32 100644 --- a/service/honeycode/options.go +++ b/service/honeycode/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iam/CHANGELOG.md b/service/iam/CHANGELOG.md index 102be3417a6..11234e1cee5 100644 --- a/service/iam/CHANGELOG.md +++ b/service/iam/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iam/api_client.go b/service/iam/api_client.go index 13eea58ceeb..d6e0b02531e 100644 --- a/service/iam/api_client.go +++ b/service/iam/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iam/auth.go b/service/iam/auth.go index 143895f4eac..f8383ea3e03 100644 --- a/service/iam/auth.go +++ b/service/iam/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iam/go.mod b/service/iam/go.mod index e2692a209d8..8de284b2613 100644 --- a/service/iam/go.mod +++ b/service/iam/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iam go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iam/go.sum b/service/iam/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iam/go.sum +++ b/service/iam/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iam/go_module_metadata.go b/service/iam/go_module_metadata.go index c840f13b74f..358f3eb00b9 100644 --- a/service/iam/go_module_metadata.go +++ b/service/iam/go_module_metadata.go @@ -3,4 +3,4 @@ package iam // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/iam/options.go b/service/iam/options.go index 2861cb10f9b..e95e9851252 100644 --- a/service/iam/options.go +++ b/service/iam/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/identitystore/CHANGELOG.md b/service/identitystore/CHANGELOG.md index 35456d0227e..9fffa2ac504 100644 --- a/service/identitystore/CHANGELOG.md +++ b/service/identitystore/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/identitystore/api_client.go b/service/identitystore/api_client.go index 6b912c45dca..0d4da8feb19 100644 --- a/service/identitystore/api_client.go +++ b/service/identitystore/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/identitystore/auth.go b/service/identitystore/auth.go index eb5af628859..927ed8cc06d 100644 --- a/service/identitystore/auth.go +++ b/service/identitystore/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/identitystore/go.mod b/service/identitystore/go.mod index 81df0440ef7..0a42a05ed98 100644 --- a/service/identitystore/go.mod +++ b/service/identitystore/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/identitystore go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/identitystore/go.sum b/service/identitystore/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/identitystore/go.sum +++ b/service/identitystore/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/identitystore/go_module_metadata.go b/service/identitystore/go_module_metadata.go index a1644b31dd9..15eb6be000d 100644 --- a/service/identitystore/go_module_metadata.go +++ b/service/identitystore/go_module_metadata.go @@ -3,4 +3,4 @@ package identitystore // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/identitystore/options.go b/service/identitystore/options.go index 60bf384c13b..278ca3b7fb2 100644 --- a/service/identitystore/options.go +++ b/service/identitystore/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/imagebuilder/CHANGELOG.md b/service/imagebuilder/CHANGELOG.md index 6886ff9e08f..6ec334ee281 100644 --- a/service/imagebuilder/CHANGELOG.md +++ b/service/imagebuilder/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/imagebuilder/api_client.go b/service/imagebuilder/api_client.go index c4afce06166..263fff6186d 100644 --- a/service/imagebuilder/api_client.go +++ b/service/imagebuilder/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/imagebuilder/auth.go b/service/imagebuilder/auth.go index aba2fdde4fb..9809a06fc2f 100644 --- a/service/imagebuilder/auth.go +++ b/service/imagebuilder/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/imagebuilder/go.mod b/service/imagebuilder/go.mod index a50a196f02b..0250b03beac 100644 --- a/service/imagebuilder/go.mod +++ b/service/imagebuilder/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/imagebuilder go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/imagebuilder/go.sum b/service/imagebuilder/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/imagebuilder/go.sum +++ b/service/imagebuilder/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/imagebuilder/go_module_metadata.go b/service/imagebuilder/go_module_metadata.go index 902ab02eb7d..836422e7926 100644 --- a/service/imagebuilder/go_module_metadata.go +++ b/service/imagebuilder/go_module_metadata.go @@ -3,4 +3,4 @@ package imagebuilder // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/imagebuilder/options.go b/service/imagebuilder/options.go index 395463a5922..7c1adcd85f3 100644 --- a/service/imagebuilder/options.go +++ b/service/imagebuilder/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/inspector/CHANGELOG.md b/service/inspector/CHANGELOG.md index 5761b17c25a..9b0168dbf3a 100644 --- a/service/inspector/CHANGELOG.md +++ b/service/inspector/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/inspector/api_client.go b/service/inspector/api_client.go index 7513ad02a70..7d28049ffa6 100644 --- a/service/inspector/api_client.go +++ b/service/inspector/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/inspector/auth.go b/service/inspector/auth.go index 13fc8f189b0..5f7cece800a 100644 --- a/service/inspector/auth.go +++ b/service/inspector/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/inspector/go.mod b/service/inspector/go.mod index cb6e4c2b4fa..dae4d78cea8 100644 --- a/service/inspector/go.mod +++ b/service/inspector/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspector go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspector/go.sum b/service/inspector/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/inspector/go.sum +++ b/service/inspector/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector/go_module_metadata.go b/service/inspector/go_module_metadata.go index b79f7850510..a00ffed9cbb 100644 --- a/service/inspector/go_module_metadata.go +++ b/service/inspector/go_module_metadata.go @@ -3,4 +3,4 @@ package inspector // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/inspector/options.go b/service/inspector/options.go index 602fc33cf16..edb6290e3d5 100644 --- a/service/inspector/options.go +++ b/service/inspector/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/inspector2/CHANGELOG.md b/service/inspector2/CHANGELOG.md index 6cb2c0d3ecc..3dd6cd50f2c 100644 --- a/service/inspector2/CHANGELOG.md +++ b/service/inspector2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/inspector2/api_client.go b/service/inspector2/api_client.go index 013664af372..ec72adc5075 100644 --- a/service/inspector2/api_client.go +++ b/service/inspector2/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/inspector2/auth.go b/service/inspector2/auth.go index f2f05e5b382..53e034d1b1c 100644 --- a/service/inspector2/auth.go +++ b/service/inspector2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/inspector2/go.mod b/service/inspector2/go.mod index 99a840027d4..a3d7f41af2a 100644 --- a/service/inspector2/go.mod +++ b/service/inspector2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspector2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspector2/go.sum b/service/inspector2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/inspector2/go.sum +++ b/service/inspector2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspector2/go_module_metadata.go b/service/inspector2/go_module_metadata.go index 67babd38cba..ae9d112bf1e 100644 --- a/service/inspector2/go_module_metadata.go +++ b/service/inspector2/go_module_metadata.go @@ -3,4 +3,4 @@ package inspector2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/inspector2/options.go b/service/inspector2/options.go index 241aec4e3d5..72ec2a36b08 100644 --- a/service/inspector2/options.go +++ b/service/inspector2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/inspectorscan/CHANGELOG.md b/service/inspectorscan/CHANGELOG.md index 3593ac663b6..00f5e2682c8 100644 --- a/service/inspectorscan/CHANGELOG.md +++ b/service/inspectorscan/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/inspectorscan/api_client.go b/service/inspectorscan/api_client.go index a4d5479af34..99e6b2c9b13 100644 --- a/service/inspectorscan/api_client.go +++ b/service/inspectorscan/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/inspectorscan/auth.go b/service/inspectorscan/auth.go index 64671eb1beb..c5172a8b678 100644 --- a/service/inspectorscan/auth.go +++ b/service/inspectorscan/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/inspectorscan/go.mod b/service/inspectorscan/go.mod index 07c4288ea22..676d309be8c 100644 --- a/service/inspectorscan/go.mod +++ b/service/inspectorscan/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/inspectorscan go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/inspectorscan/go.sum b/service/inspectorscan/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/inspectorscan/go.sum +++ b/service/inspectorscan/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/inspectorscan/go_module_metadata.go b/service/inspectorscan/go_module_metadata.go index 0d630fafd30..6291d0b1109 100644 --- a/service/inspectorscan/go_module_metadata.go +++ b/service/inspectorscan/go_module_metadata.go @@ -3,4 +3,4 @@ package inspectorscan // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/inspectorscan/options.go b/service/inspectorscan/options.go index 37d349c1715..8403491a573 100644 --- a/service/inspectorscan/options.go +++ b/service/inspectorscan/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/internal/accept-encoding/CHANGELOG.md b/service/internal/accept-encoding/CHANGELOG.md index e4a941cdd78..c2a206b03b9 100644 --- a/service/internal/accept-encoding/CHANGELOG.md +++ b/service/internal/accept-encoding/CHANGELOG.md @@ -1,3 +1,7 @@ +# v1.10.3 (2023-11-30) + +* No change notes available for this release. + # v1.10.2 (2023-11-29) * No change notes available for this release. diff --git a/service/internal/accept-encoding/go.mod b/service/internal/accept-encoding/go.mod index bffe7489daf..5a0f8cbd613 100644 --- a/service/internal/accept-encoding/go.mod +++ b/service/internal/accept-encoding/go.mod @@ -2,4 +2,4 @@ module github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding go 1.19 -require github.com/aws/smithy-go v1.18.0 +require github.com/aws/smithy-go v1.18.1 diff --git a/service/internal/accept-encoding/go.sum b/service/internal/accept-encoding/go.sum index 4a236cdfa85..e5153680047 100644 --- a/service/internal/accept-encoding/go.sum +++ b/service/internal/accept-encoding/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/accept-encoding/go_module_metadata.go b/service/internal/accept-encoding/go_module_metadata.go index b8ee0c9413b..4a245da2962 100644 --- a/service/internal/accept-encoding/go_module_metadata.go +++ b/service/internal/accept-encoding/go_module_metadata.go @@ -3,4 +3,4 @@ package acceptencoding // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.2" +const goModuleVersion = "1.10.3" diff --git a/service/internal/benchmark/go.mod b/service/internal/benchmark/go.mod index d857f10534f..4404fa452b3 100644 --- a/service/internal/benchmark/go.mod +++ b/service/internal/benchmark/go.mod @@ -4,24 +4,24 @@ go 1.19 require ( github.com/aws/aws-sdk-go v1.44.28 - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.0 - github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.18.0 - github.com/aws/aws-sdk-go-v2/service/s3 v1.47.0 - github.com/aws/aws-sdk-go-v2/service/schemas v1.21.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.3 + github.com/aws/aws-sdk-go-v2/service/lexruntimeservice v1.18.2 + github.com/aws/aws-sdk-go-v2/service/s3 v1.47.2 + github.com/aws/aws-sdk-go-v2/service/schemas v1.21.2 + github.com/aws/smithy-go v1.18.1 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) diff --git a/service/internal/benchmark/go.sum b/service/internal/benchmark/go.sum index 01a217d0a34..d332c82ba01 100644 --- a/service/internal/benchmark/go.sum +++ b/service/internal/benchmark/go.sum @@ -1,7 +1,7 @@ github.com/aws/aws-sdk-go v1.44.28 h1:h/OAqEqY18wq//v6h4GNPMmCkxuzSDrWuGyrvSiRqf4= github.com/aws/aws-sdk-go v1.44.28/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/checksum/CHANGELOG.md b/service/internal/checksum/CHANGELOG.md index 15e6c93168d..771955c2353 100644 --- a/service/internal/checksum/CHANGELOG.md +++ b/service/internal/checksum/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.2.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.2.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.2.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/checksum/go.mod b/service/internal/checksum/go.mod index a6d066c6dae..bad1fc5f3d3 100644 --- a/service/internal/checksum/go.mod +++ b/service/internal/checksum/go.mod @@ -3,9 +3,9 @@ module github.com/aws/aws-sdk-go-v2/service/internal/checksum go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/checksum/go.sum b/service/internal/checksum/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/internal/checksum/go.sum +++ b/service/internal/checksum/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/checksum/go_module_metadata.go b/service/internal/checksum/go_module_metadata.go index 057a368a840..e011c3eccba 100644 --- a/service/internal/checksum/go_module_metadata.go +++ b/service/internal/checksum/go_module_metadata.go @@ -3,4 +3,4 @@ package checksum // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.2.6" +const goModuleVersion = "1.2.8" diff --git a/service/internal/endpoint-discovery/CHANGELOG.md b/service/internal/endpoint-discovery/CHANGELOG.md index abfb7d906ad..3239fa24e35 100644 --- a/service/internal/endpoint-discovery/CHANGELOG.md +++ b/service/internal/endpoint-discovery/CHANGELOG.md @@ -1,3 +1,15 @@ +# v1.8.9 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.8.8 (2023-11-30.2) + +* **Bug Fix**: Respect caller region overrides in endpoint discovery. + +# v1.8.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/endpoint-discovery/go.mod b/service/internal/endpoint-discovery/go.mod index 62bd2b8b588..ea2a0d49d1a 100644 --- a/service/internal/endpoint-discovery/go.mod +++ b/service/internal/endpoint-discovery/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/smithy-go v1.18.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/endpoint-discovery/go.sum b/service/internal/endpoint-discovery/go.sum index 4a236cdfa85..e5153680047 100644 --- a/service/internal/endpoint-discovery/go.sum +++ b/service/internal/endpoint-discovery/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/endpoint-discovery/go_module_metadata.go b/service/internal/endpoint-discovery/go_module_metadata.go index 253c5f250b7..60d008c1c61 100644 --- a/service/internal/endpoint-discovery/go_module_metadata.go +++ b/service/internal/endpoint-discovery/go_module_metadata.go @@ -3,4 +3,4 @@ package endpointdiscovery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.6" +const goModuleVersion = "1.8.9" diff --git a/service/internal/endpoint-discovery/middleware.go b/service/internal/endpoint-discovery/middleware.go index 882dd3475d8..c6b073d21fa 100644 --- a/service/internal/endpoint-discovery/middleware.go +++ b/service/internal/endpoint-discovery/middleware.go @@ -38,7 +38,7 @@ type DiscoverEndpoint struct { // DiscoverOperation represents the endpoint discovery operation that // returns an Endpoint or error. - DiscoverOperation func(ctx context.Context, options ...func(*DiscoverEndpointOptions)) (WeightedAddress, error) + DiscoverOperation func(ctx context.Context, region string, options ...func(*DiscoverEndpointOptions)) (WeightedAddress, error) // EndpointDiscoveryEnableState represents the customer configuration for endpoint // discovery feature. @@ -47,6 +47,9 @@ type DiscoverEndpoint struct { // EndpointDiscoveryRequired states if an operation requires to perform // endpoint discovery. EndpointDiscoveryRequired bool + + // The client region + Region string } // ID represents the middleware identifier @@ -79,7 +82,7 @@ func (d *DiscoverEndpoint) HandleFinalize( return next.HandleFinalize(ctx, in) } - weightedAddress, err := d.DiscoverOperation(ctx, d.Options...) + weightedAddress, err := d.DiscoverOperation(ctx, d.Region, d.Options...) if err != nil { return middleware.FinalizeOutput{}, middleware.Metadata{}, err } diff --git a/service/internal/eventstreamtesting/CHANGELOG.md b/service/internal/eventstreamtesting/CHANGELOG.md index 4d78f71de2f..a1013d184c8 100644 --- a/service/internal/eventstreamtesting/CHANGELOG.md +++ b/service/internal/eventstreamtesting/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.2.12 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.2.11 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.2.10 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/eventstreamtesting/go.mod b/service/internal/eventstreamtesting/go.mod index 44cbe8ba6e5..85723e02a48 100644 --- a/service/internal/eventstreamtesting/go.mod +++ b/service/internal/eventstreamtesting/go.mod @@ -3,14 +3,14 @@ module github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 golang.org/x/net v0.19.0 ) require ( - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/smithy-go v1.18.1 // indirect golang.org/x/text v0.14.0 // indirect ) diff --git a/service/internal/eventstreamtesting/go.sum b/service/internal/eventstreamtesting/go.sum index 2f7ac40846a..95a095b06dd 100644 --- a/service/internal/eventstreamtesting/go.sum +++ b/service/internal/eventstreamtesting/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= diff --git a/service/internal/eventstreamtesting/go_module_metadata.go b/service/internal/eventstreamtesting/go_module_metadata.go index 31f46d5bb08..2af4d700d7d 100644 --- a/service/internal/eventstreamtesting/go_module_metadata.go +++ b/service/internal/eventstreamtesting/go_module_metadata.go @@ -3,4 +3,4 @@ package eventstreamtesting // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.2.10" +const goModuleVersion = "1.2.12" diff --git a/service/internal/integrationtest/go.mod b/service/internal/integrationtest/go.mod index 859c39c206a..90da50a04d6 100644 --- a/service/internal/integrationtest/go.mod +++ b/service/internal/integrationtest/go.mod @@ -1,109 +1,110 @@ module github.com/aws/aws-sdk-go-v2/service/internal/integrationtest require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/service/acm v1.22.0 - github.com/aws/aws-sdk-go-v2/service/apigateway v1.21.0 - github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.25.0 - github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice v1.22.0 - github.com/aws/aws-sdk-go-v2/service/appstream v1.29.0 - github.com/aws/aws-sdk-go-v2/service/athena v1.36.0 - github.com/aws/aws-sdk-go-v2/service/autoscaling v1.36.0 - github.com/aws/aws-sdk-go-v2/service/batch v1.30.0 - github.com/aws/aws-sdk-go-v2/service/cloudformation v1.41.0 - github.com/aws/aws-sdk-go-v2/service/cloudfront v1.32.0 - github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 v1.19.0 - github.com/aws/aws-sdk-go-v2/service/cloudsearch v1.20.0 - github.com/aws/aws-sdk-go-v2/service/cloudtrail v1.35.0 - github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.31.0 - github.com/aws/aws-sdk-go-v2/service/codebuild v1.26.0 - github.com/aws/aws-sdk-go-v2/service/codecommit v1.19.0 - github.com/aws/aws-sdk-go-v2/service/codedeploy v1.21.0 - github.com/aws/aws-sdk-go-v2/service/codepipeline v1.22.0 - github.com/aws/aws-sdk-go-v2/service/codestar v1.19.0 - github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.31.0 - github.com/aws/aws-sdk-go-v2/service/configservice v1.43.0 - github.com/aws/aws-sdk-go-v2/service/costandusagereportservice v1.21.0 - github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.35.0 - github.com/aws/aws-sdk-go-v2/service/devicefarm v1.20.0 - github.com/aws/aws-sdk-go-v2/service/directconnect v1.22.0 - github.com/aws/aws-sdk-go-v2/service/directoryservice v1.22.0 - github.com/aws/aws-sdk-go-v2/service/docdb v1.29.0 - github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.0 - github.com/aws/aws-sdk-go-v2/service/ec2 v1.138.0 - github.com/aws/aws-sdk-go-v2/service/ecr v1.24.0 - github.com/aws/aws-sdk-go-v2/service/ecs v1.35.0 - github.com/aws/aws-sdk-go-v2/service/efs v1.26.0 - github.com/aws/aws-sdk-go-v2/service/elasticache v1.34.0 - github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.20.0 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.21.0 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.26.0 - github.com/aws/aws-sdk-go-v2/service/elasticsearchservice v1.24.0 - github.com/aws/aws-sdk-go-v2/service/elastictranscoder v1.19.0 - github.com/aws/aws-sdk-go-v2/service/emr v1.35.0 - github.com/aws/aws-sdk-go-v2/service/eventbridge v1.26.0 - github.com/aws/aws-sdk-go-v2/service/firehose v1.22.0 - github.com/aws/aws-sdk-go-v2/service/gamelift v1.27.0 - github.com/aws/aws-sdk-go-v2/service/glacier v1.19.0 - github.com/aws/aws-sdk-go-v2/service/glue v1.71.0 - github.com/aws/aws-sdk-go-v2/service/health v1.22.0 - github.com/aws/aws-sdk-go-v2/service/iam v1.28.0 - github.com/aws/aws-sdk-go-v2/service/inspector v1.19.0 - github.com/aws/aws-sdk-go-v2/service/iot v1.46.0 - github.com/aws/aws-sdk-go-v2/service/kinesis v1.24.0 - github.com/aws/aws-sdk-go-v2/service/kms v1.27.0 - github.com/aws/aws-sdk-go-v2/service/lambda v1.49.0 - github.com/aws/aws-sdk-go-v2/service/lightsail v1.32.0 - github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics v1.18.0 - github.com/aws/aws-sdk-go-v2/service/neptune v1.27.0 - github.com/aws/aws-sdk-go-v2/service/opsworks v1.19.0 - github.com/aws/aws-sdk-go-v2/service/pinpointemail v1.17.0 - github.com/aws/aws-sdk-go-v2/service/polly v1.36.0 - github.com/aws/aws-sdk-go-v2/service/rds v1.64.0 - github.com/aws/aws-sdk-go-v2/service/redshift v1.39.0 - github.com/aws/aws-sdk-go-v2/service/rekognition v1.35.0 - github.com/aws/aws-sdk-go-v2/service/route53 v1.35.0 - github.com/aws/aws-sdk-go-v2/service/route53domains v1.20.0 - github.com/aws/aws-sdk-go-v2/service/route53resolver v1.23.0 - github.com/aws/aws-sdk-go-v2/service/s3 v1.47.0 - github.com/aws/aws-sdk-go-v2/service/s3control v1.41.0 - github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.25.0 - github.com/aws/aws-sdk-go-v2/service/servicecatalog v1.25.0 - github.com/aws/aws-sdk-go-v2/service/ses v1.19.0 - github.com/aws/aws-sdk-go-v2/service/sfn v1.24.0 - github.com/aws/aws-sdk-go-v2/service/shield v1.23.0 - github.com/aws/aws-sdk-go-v2/service/snowball v1.24.0 - github.com/aws/aws-sdk-go-v2/service/sns v1.26.0 - github.com/aws/aws-sdk-go-v2/service/sqs v1.29.0 - github.com/aws/aws-sdk-go-v2/service/ssm v1.44.0 - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 - github.com/aws/aws-sdk-go-v2/service/support v1.19.0 - github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.23.0 - github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.15.0 - github.com/aws/aws-sdk-go-v2/service/waf v1.18.0 - github.com/aws/aws-sdk-go-v2/service/wafregional v1.19.0 - github.com/aws/aws-sdk-go-v2/service/wafv2 v1.43.0 - github.com/aws/aws-sdk-go-v2/service/workspaces v1.35.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.15.4 + github.com/aws/aws-sdk-go-v2/service/acm v1.22.2 + github.com/aws/aws-sdk-go-v2/service/apigateway v1.21.2 + github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.25.2 + github.com/aws/aws-sdk-go-v2/service/applicationdiscoveryservice v1.22.2 + github.com/aws/aws-sdk-go-v2/service/appstream v1.29.2 + github.com/aws/aws-sdk-go-v2/service/athena v1.36.2 + github.com/aws/aws-sdk-go-v2/service/autoscaling v1.36.2 + github.com/aws/aws-sdk-go-v2/service/batch v1.30.2 + github.com/aws/aws-sdk-go-v2/service/cloudformation v1.42.0 + github.com/aws/aws-sdk-go-v2/service/cloudfront v1.32.2 + github.com/aws/aws-sdk-go-v2/service/cloudhsmv2 v1.19.2 + github.com/aws/aws-sdk-go-v2/service/cloudsearch v1.20.2 + github.com/aws/aws-sdk-go-v2/service/cloudtrail v1.35.2 + github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.31.2 + github.com/aws/aws-sdk-go-v2/service/codebuild v1.26.2 + github.com/aws/aws-sdk-go-v2/service/codecommit v1.19.2 + github.com/aws/aws-sdk-go-v2/service/codedeploy v1.21.2 + github.com/aws/aws-sdk-go-v2/service/codepipeline v1.22.2 + github.com/aws/aws-sdk-go-v2/service/codestar v1.19.2 + github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider v1.31.2 + github.com/aws/aws-sdk-go-v2/service/configservice v1.43.2 + github.com/aws/aws-sdk-go-v2/service/costandusagereportservice v1.21.2 + github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.35.2 + github.com/aws/aws-sdk-go-v2/service/devicefarm v1.20.2 + github.com/aws/aws-sdk-go-v2/service/directconnect v1.22.2 + github.com/aws/aws-sdk-go-v2/service/directoryservice v1.22.2 + github.com/aws/aws-sdk-go-v2/service/docdb v1.29.2 + github.com/aws/aws-sdk-go-v2/service/dynamodb v1.26.3 + github.com/aws/aws-sdk-go-v2/service/ec2 v1.138.2 + github.com/aws/aws-sdk-go-v2/service/ecr v1.24.2 + github.com/aws/aws-sdk-go-v2/service/ecs v1.35.2 + github.com/aws/aws-sdk-go-v2/service/efs v1.26.2 + github.com/aws/aws-sdk-go-v2/service/elasticache v1.34.2 + github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.20.2 + github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.21.2 + github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.26.2 + github.com/aws/aws-sdk-go-v2/service/elasticsearchservice v1.24.2 + github.com/aws/aws-sdk-go-v2/service/elastictranscoder v1.19.2 + github.com/aws/aws-sdk-go-v2/service/emr v1.35.2 + github.com/aws/aws-sdk-go-v2/service/eventbridge v1.26.2 + github.com/aws/aws-sdk-go-v2/service/firehose v1.22.2 + github.com/aws/aws-sdk-go-v2/service/gamelift v1.27.2 + github.com/aws/aws-sdk-go-v2/service/glacier v1.19.2 + github.com/aws/aws-sdk-go-v2/service/glue v1.72.1 + github.com/aws/aws-sdk-go-v2/service/health v1.22.2 + github.com/aws/aws-sdk-go-v2/service/iam v1.28.2 + github.com/aws/aws-sdk-go-v2/service/inspector v1.19.2 + github.com/aws/aws-sdk-go-v2/service/iot v1.46.2 + github.com/aws/aws-sdk-go-v2/service/kinesis v1.24.2 + github.com/aws/aws-sdk-go-v2/service/kms v1.27.2 + github.com/aws/aws-sdk-go-v2/service/lambda v1.49.2 + github.com/aws/aws-sdk-go-v2/service/lightsail v1.32.2 + github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics v1.18.2 + github.com/aws/aws-sdk-go-v2/service/neptune v1.27.2 + github.com/aws/aws-sdk-go-v2/service/opsworks v1.19.2 + github.com/aws/aws-sdk-go-v2/service/pinpointemail v1.17.2 + github.com/aws/aws-sdk-go-v2/service/polly v1.36.2 + github.com/aws/aws-sdk-go-v2/service/rds v1.64.2 + github.com/aws/aws-sdk-go-v2/service/redshift v1.39.3 + github.com/aws/aws-sdk-go-v2/service/rekognition v1.35.2 + github.com/aws/aws-sdk-go-v2/service/route53 v1.35.2 + github.com/aws/aws-sdk-go-v2/service/route53domains v1.20.2 + github.com/aws/aws-sdk-go-v2/service/route53resolver v1.23.2 + github.com/aws/aws-sdk-go-v2/service/s3 v1.47.2 + github.com/aws/aws-sdk-go-v2/service/s3control v1.41.2 + github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.25.2 + github.com/aws/aws-sdk-go-v2/service/servicecatalog v1.25.2 + github.com/aws/aws-sdk-go-v2/service/ses v1.19.2 + github.com/aws/aws-sdk-go-v2/service/sfn v1.24.2 + github.com/aws/aws-sdk-go-v2/service/shield v1.23.2 + github.com/aws/aws-sdk-go-v2/service/snowball v1.24.2 + github.com/aws/aws-sdk-go-v2/service/sns v1.26.2 + github.com/aws/aws-sdk-go-v2/service/sqs v1.29.2 + github.com/aws/aws-sdk-go-v2/service/ssm v1.44.2 + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 + github.com/aws/aws-sdk-go-v2/service/support v1.19.2 + github.com/aws/aws-sdk-go-v2/service/timestreamwrite v1.23.3 + github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.15.2 + github.com/aws/aws-sdk-go-v2/service/waf v1.18.2 + github.com/aws/aws-sdk-go-v2/service/wafregional v1.19.2 + github.com/aws/aws-sdk-go-v2/service/wafv2 v1.43.2 + github.com/aws/aws-sdk-go-v2/service/workspaces v1.35.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) require ( - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect ) @@ -119,6 +120,8 @@ replace github.com/aws/aws-sdk-go-v2/credentials => ../../../credentials/ replace github.com/aws/aws-sdk-go-v2/feature/ec2/imds => ../../../feature/ec2/imds/ +replace github.com/aws/aws-sdk-go-v2/feature/s3/manager => ../../../feature/s3/manager/ + replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../../internal/configsources/ replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../../internal/endpoints/v2/ diff --git a/service/internal/integrationtest/go.sum b/service/internal/integrationtest/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/internal/integrationtest/go.sum +++ b/service/internal/integrationtest/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/integrationtest/s3/express_test.go b/service/internal/integrationtest/s3/express_test.go new file mode 100644 index 00000000000..e25c44a5e7e --- /dev/null +++ b/service/internal/integrationtest/s3/express_test.go @@ -0,0 +1,227 @@ +//go:build integration +// +build integration + +package s3 + +import ( + "bytes" + "context" + "fmt" + "io" + "log" + "net/http" + "net/url" + "strings" + "testing" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/feature/s3/manager" + "github.com/aws/aws-sdk-go-v2/internal/awstesting" + "github.com/aws/aws-sdk-go-v2/service/s3" + "github.com/aws/aws-sdk-go-v2/service/s3/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +func TestExpressRoundTripObject(t *testing.T) { + const key = "TestExpressRoundTripObject" + const value = "TestExpressRoundTripObjectValue" + + _, err := s3client.PutObject(context.Background(), &s3.PutObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + Body: strings.NewReader(value), + }, withAssertExpress) + if err != nil { + t.Fatalf("put object: %v", err) + } + + resp, err := s3client.GetObject(context.Background(), &s3.GetObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + }, withAssertExpress) + if err != nil { + t.Fatalf("get object: %v", err) + } + + obj, err := io.ReadAll(resp.Body) + if err != nil { + t.Fatalf("read object response body: %v", err) + } + + if string(obj) != value { + t.Fatalf("round-trip object didn't match: %q", obj) + } +} + +func TestExpressPresignGetObject(t *testing.T) { + const key = "TestExpressPresignGetObject" + const value = "TestExpressPresignGetObjectValue" + + _, err := s3client.PutObject(context.Background(), &s3.PutObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + Body: strings.NewReader(value), + }, withAssertExpress) + if err != nil { + t.Fatalf("put object: %v", err) + } + + presigner := s3.NewPresignClient(s3client) + req, err := presigner.PresignGetObject(context.Background(), &s3.GetObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + }) + if err != nil { + log.Fatalf("presign get object: %v", err) + } + + u, err := url.Parse(req.URL) + if err != nil { + log.Fatalf("parse url: %v", err) + } + + resp, err := http.DefaultClient.Do(&http.Request{ + Method: req.Method, + URL: u, + }) + if err != nil { + log.Fatalf("call presigned get object: %v", err) + } + + obj, err := io.ReadAll(resp.Body) + if err != nil { + t.Fatalf("read response obj: %v", err) + } + + if string(obj) != value { // ignore the status code, response body wouldn't match anyway + t.Fatalf("presigned get didn't match: %q", obj) + } +} + +func TestExpressPresignPutObject(t *testing.T) { + const key = "TestExpressPresignPutObject" + const value = "TestExpressPresignPutObjectValue" + + presigner := s3.NewPresignClient(s3client) + req, err := presigner.PresignPutObject(context.Background(), &s3.PutObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + }) + if err != nil { + log.Fatalf("presign put object: %v", err) + } + + u, err := url.Parse(req.URL) + if err != nil { + log.Fatal(err) + } + + presp, err := http.DefaultClient.Do(&http.Request{ + Method: req.Method, + URL: u, + Body: io.NopCloser(strings.NewReader(value)), + ContentLength: int64(len(value)), + }) + if err != nil { + log.Fatal(err) + } + if presp.StatusCode != http.StatusOK { + msg, err := io.ReadAll(presp.Body) + if err != nil { + log.Fatalf("read presigned put object response body: %s", msg) + } + + log.Fatalf("call presigned put object: %s", msg) + } + + gresp, err := s3client.GetObject(context.Background(), &s3.GetObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + }, withAssertExpress) + if err != nil { + log.Fatalf("get object: %v", err) + } + + obj, err := io.ReadAll(gresp.Body) + if err != nil { + log.Fatalf("read response body: %v", err) + } + + if string(obj) != value { + t.Fatalf("presigned put didn't match: %q", obj) + } +} + +func TestExpressUploaderDefaultChecksum(t *testing.T) { + const key = "TestExpressUploaderDefaultChecksum" + const valueLen = 12 * 1024 * 1024 // default/min part size is 5MiB, guarantee 2 full + 1 partial + + value := make([]byte, valueLen) + + uploader := manager.NewUploader(s3client, func(u *manager.Uploader) { + u.ClientOptions = append(u.ClientOptions, withAssertExpress) + }) + out, err := uploader.Upload(context.Background(), &s3.PutObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + Body: bytes.NewBuffer(value), + }) + if err != nil { + log.Fatal(err) + } + + if out.ChecksumCRC32 == nil { + log.Fatal("upload didn't default to crc32") + } +} + +func TestExpressUploaderManualChecksum(t *testing.T) { + const key = "TestExpressUploaderManualChecksum" + const valueLen = 12 * 1024 * 1024 + + value := make([]byte, valueLen) + + uploader := manager.NewUploader(s3client, func(u *manager.Uploader) { + u.ClientOptions = append(u.ClientOptions, withAssertExpress) + }) + out, err := uploader.Upload(context.Background(), &s3.PutObjectInput{ + Bucket: &setupMetadata.ExpressBucket, + Key: aws.String(key), + Body: bytes.NewBuffer(value), + ChecksumAlgorithm: types.ChecksumAlgorithmCrc32c, + }) + if err != nil { + log.Fatal(err) + } + + if out.ChecksumCRC32C == nil { + log.Fatal("upload didn't use explicit crc32c") + } +} + +var withAssertExpress = s3.WithAPIOptions(func(s *middleware.Stack) error { + return s.Finalize.Add(&assertExpress{}, middleware.After) +}) + +type assertExpress struct{} + +func (*assertExpress) ID() string { + return "assertExpress" +} + +func (m *assertExpress) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request) + } + + sig := awstesting.ParseSigV4Signature(req.Header) + if sig.SigningName != "s3express" { + return out, metadata, fmt.Errorf("signing name is not s3express: %q", sig.SigningName) + } + + return next.HandleFinalize(ctx, in) +} diff --git a/service/internal/integrationtest/s3/setup_test.go b/service/internal/integrationtest/s3/setup_test.go index 4ce1237ba69..ea00037d6e3 100644 --- a/service/internal/integrationtest/s3/setup_test.go +++ b/service/internal/integrationtest/s3/setup_test.go @@ -39,6 +39,8 @@ var setupMetadata = struct { } } + ExpressBucket string + AccessPoints struct { Source struct { Name string @@ -196,11 +198,15 @@ func getAccountID(ctx context.Context) (string, error) { func setupBuckets(ctx context.Context) (func(), error) { var cleanups []func() + var expressCleanups []func() cleanup := func() { for i := range cleanups { cleanups[i]() } + for i := range expressCleanups { + expressCleanups[i]() + } } bucketCreates := []struct { @@ -237,6 +243,17 @@ func setupBuckets(ctx context.Context) (func(), error) { }) } + setupMetadata.ExpressBucket = s3shared.GenerateExpressBucketName() + if err := s3shared.SetupExpressBucket(ctx, s3client, setupMetadata.ExpressBucket); err != nil { + return cleanup, fmt.Errorf("setup express bucket: %v", err) + } + + expressCleanups = append(expressCleanups, func() { + if err := s3shared.CleanupBucket(ctx, s3client, setupMetadata.ExpressBucket); err != nil { + fmt.Fprintln(os.Stderr, err) + } + }) + return cleanup, nil } diff --git a/service/internal/integrationtest/s3shared/integ_test_setup.go b/service/internal/integrationtest/s3shared/integ_test_setup.go index fd839c5dff0..34c9e1fd9cb 100644 --- a/service/internal/integrationtest/s3shared/integ_test_setup.go +++ b/service/internal/integrationtest/s3shared/integ_test_setup.go @@ -6,13 +6,20 @@ package s3shared import ( "context" "fmt" + "strings" + "time" + "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/internal/integrationtest" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/aws-sdk-go-v2/service/s3/types" "github.com/aws/aws-sdk-go-v2/service/s3control" ) +const expressAZID = "usw2-az3" + +const expressSuffix = "--usw2-az3--x-s3" + // BucketPrefix is the root prefix of integration test buckets. const BucketPrefix = "aws-sdk-go-v2-integration" @@ -22,6 +29,16 @@ func GenerateBucketName() string { BucketPrefix, integrationtest.UniqueID()) } +// GenerateBucketName returns a unique express-formatted bucket name. +func GenerateExpressBucketName() string { + return fmt.Sprintf( + "%s-%s%s", + BucketPrefix, + integrationtest.UniqueID()[0:8], // express suffix adds length, regain that here + expressSuffix, + ) +} + // SetupBucket returns a test bucket created for the integration tests. func SetupBucket(ctx context.Context, svc *s3.Client, bucketName string) (err error) { fmt.Println("Setup: Creating test bucket,", bucketName) @@ -67,7 +84,7 @@ func CleanupBucket(ctx context.Context, svc *s3.Client, bucketName string) (err var errs = make([]error, 0) fmt.Println("TearDown: Deleting objects from test bucket,", bucketName) - listObjectsResp, err := svc.ListObjects(ctx, &s3.ListObjectsInput{ + listObjectsResp, err := svc.ListObjectsV2(ctx, &s3.ListObjectsV2Input{ Bucket: &bucketName, }) if err != nil { @@ -146,3 +163,38 @@ func CleanupAccessPoint(ctx context.Context, svc *s3control.Client, accountID, a } return nil } + +// SetupExpressBucket returns an express bucket for testing. +func SetupExpressBucket(ctx context.Context, svc *s3.Client, bucketName string) error { + if !strings.HasSuffix(bucketName, expressSuffix) { + return fmt.Errorf("bucket name %s is missing required suffix %s", bucketName, expressSuffix) + } + + fmt.Println("Setup: Creating test express bucket,", bucketName) + _, err := svc.CreateBucket(ctx, &s3.CreateBucketInput{ + Bucket: &bucketName, + CreateBucketConfiguration: &types.CreateBucketConfiguration{ + Location: &types.LocationInfo{ + Name: aws.String(expressAZID), + Type: types.LocationTypeAvailabilityZone, + }, + Bucket: &types.BucketInfo{ + DataRedundancy: types.DataRedundancySingleAvailabilityZone, + Type: types.BucketTypeDirectory, + }, + }, + }) + if err != nil { + return fmt.Errorf("create express bucket %s: %v", bucketName, err) + } + + w := s3.NewBucketExistsWaiter(svc) + err = w.Wait(ctx, &s3.HeadBucketInput{ + Bucket: &bucketName, + }, 10*time.Second) + if err != nil { + return fmt.Errorf("wait for express bucket %s: %v", bucketName, err) + } + + return nil +} diff --git a/service/internal/presigned-url/CHANGELOG.md b/service/internal/presigned-url/CHANGELOG.md index 8fcd92a5e6a..5e433862c3b 100644 --- a/service/internal/presigned-url/CHANGELOG.md +++ b/service/internal/presigned-url/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.10.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/presigned-url/go.mod b/service/internal/presigned-url/go.mod index 0aa89452639..14889e1d0c9 100644 --- a/service/internal/presigned-url/go.mod +++ b/service/internal/presigned-url/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/presigned-url go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internal/presigned-url/go.sum b/service/internal/presigned-url/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/internal/presigned-url/go.sum +++ b/service/internal/presigned-url/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internal/presigned-url/go_module_metadata.go b/service/internal/presigned-url/go_module_metadata.go index 7e4669870d2..27415898668 100644 --- a/service/internal/presigned-url/go_module_metadata.go +++ b/service/internal/presigned-url/go_module_metadata.go @@ -3,4 +3,4 @@ package presignedurl // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.6" +const goModuleVersion = "1.10.8" diff --git a/service/internal/s3shared/CHANGELOG.md b/service/internal/s3shared/CHANGELOG.md index 79b978f0791..cf7338277f3 100644 --- a/service/internal/s3shared/CHANGELOG.md +++ b/service/internal/s3shared/CHANGELOG.md @@ -1,3 +1,11 @@ +# v1.16.8 (2023-12-01) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.7 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.6 (2023-11-29) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/service/internal/s3shared/go.mod b/service/internal/s3shared/go.mod index a776f8507f9..f31e1f07f3b 100644 --- a/service/internal/s3shared/go.mod +++ b/service/internal/s3shared/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/s3shared go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/smithy-go v1.18.1 ) replace github.com/aws/aws-sdk-go-v2 => ../../../ diff --git a/service/internal/s3shared/go.sum b/service/internal/s3shared/go.sum index 4a236cdfa85..e5153680047 100644 --- a/service/internal/s3shared/go.sum +++ b/service/internal/s3shared/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/internal/s3shared/go_module_metadata.go b/service/internal/s3shared/go_module_metadata.go index 48e9ac0b94f..146a75564ea 100644 --- a/service/internal/s3shared/go_module_metadata.go +++ b/service/internal/s3shared/go_module_metadata.go @@ -3,4 +3,4 @@ package s3shared // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.6" +const goModuleVersion = "1.16.8" diff --git a/service/internetmonitor/CHANGELOG.md b/service/internetmonitor/CHANGELOG.md index 7723c92e56d..117003f8339 100644 --- a/service/internetmonitor/CHANGELOG.md +++ b/service/internetmonitor/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/internetmonitor/api_client.go b/service/internetmonitor/api_client.go index f7ffeecce9b..c7fe452f84a 100644 --- a/service/internetmonitor/api_client.go +++ b/service/internetmonitor/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/internetmonitor/auth.go b/service/internetmonitor/auth.go index 372156d1e1a..79d6807b7c4 100644 --- a/service/internetmonitor/auth.go +++ b/service/internetmonitor/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/internetmonitor/go.mod b/service/internetmonitor/go.mod index f5256c199f1..a7233442842 100644 --- a/service/internetmonitor/go.mod +++ b/service/internetmonitor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/internetmonitor go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/internetmonitor/go.sum b/service/internetmonitor/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/internetmonitor/go.sum +++ b/service/internetmonitor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/internetmonitor/go_module_metadata.go b/service/internetmonitor/go_module_metadata.go index 91a31f9b388..65948c2545c 100644 --- a/service/internetmonitor/go_module_metadata.go +++ b/service/internetmonitor/go_module_metadata.go @@ -3,4 +3,4 @@ package internetmonitor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/internetmonitor/options.go b/service/internetmonitor/options.go index ce36fc6d680..fbb26f955af 100644 --- a/service/internetmonitor/options.go +++ b/service/internetmonitor/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iot/CHANGELOG.md b/service/iot/CHANGELOG.md index 03d0b1599c2..c17507e1b2a 100644 --- a/service/iot/CHANGELOG.md +++ b/service/iot/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.46.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.46.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.46.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iot/api_client.go b/service/iot/api_client.go index 9e9752c9440..9dcc3e21559 100644 --- a/service/iot/api_client.go +++ b/service/iot/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iot/auth.go b/service/iot/auth.go index 7d5e586e933..282af9f41b5 100644 --- a/service/iot/auth.go +++ b/service/iot/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iot/go.mod b/service/iot/go.mod index 04888c7361f..f80aacbc45b 100644 --- a/service/iot/go.mod +++ b/service/iot/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iot go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot/go.sum b/service/iot/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iot/go.sum +++ b/service/iot/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot/go_module_metadata.go b/service/iot/go_module_metadata.go index 4c0e24cfa67..512d0949e33 100644 --- a/service/iot/go_module_metadata.go +++ b/service/iot/go_module_metadata.go @@ -3,4 +3,4 @@ package iot // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.46.0" +const goModuleVersion = "1.46.2" diff --git a/service/iot/options.go b/service/iot/options.go index 85db4034e27..33b3e2fac4b 100644 --- a/service/iot/options.go +++ b/service/iot/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iot1clickdevicesservice/CHANGELOG.md b/service/iot1clickdevicesservice/CHANGELOG.md index a03b99d0f81..6bda8ec6645 100644 --- a/service/iot1clickdevicesservice/CHANGELOG.md +++ b/service/iot1clickdevicesservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iot1clickdevicesservice/api_client.go b/service/iot1clickdevicesservice/api_client.go index ddd40009db0..e5977c75e2f 100644 --- a/service/iot1clickdevicesservice/api_client.go +++ b/service/iot1clickdevicesservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iot1clickdevicesservice/auth.go b/service/iot1clickdevicesservice/auth.go index b2a64c02c84..44b04a24ba3 100644 --- a/service/iot1clickdevicesservice/auth.go +++ b/service/iot1clickdevicesservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iot1clickdevicesservice/go.mod b/service/iot1clickdevicesservice/go.mod index 2bb9369d634..40faef35bcb 100644 --- a/service/iot1clickdevicesservice/go.mod +++ b/service/iot1clickdevicesservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iot1clickdevicesservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot1clickdevicesservice/go.sum b/service/iot1clickdevicesservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iot1clickdevicesservice/go.sum +++ b/service/iot1clickdevicesservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickdevicesservice/go_module_metadata.go b/service/iot1clickdevicesservice/go_module_metadata.go index e22939d34f3..5f9ea27d8a1 100644 --- a/service/iot1clickdevicesservice/go_module_metadata.go +++ b/service/iot1clickdevicesservice/go_module_metadata.go @@ -3,4 +3,4 @@ package iot1clickdevicesservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/iot1clickdevicesservice/options.go b/service/iot1clickdevicesservice/options.go index ee381a7d022..db81768461d 100644 --- a/service/iot1clickdevicesservice/options.go +++ b/service/iot1clickdevicesservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iot1clickprojects/CHANGELOG.md b/service/iot1clickprojects/CHANGELOG.md index 651da734327..6f898b74cc2 100644 --- a/service/iot1clickprojects/CHANGELOG.md +++ b/service/iot1clickprojects/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iot1clickprojects/api_client.go b/service/iot1clickprojects/api_client.go index 7026168d5c1..d183273307a 100644 --- a/service/iot1clickprojects/api_client.go +++ b/service/iot1clickprojects/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iot1clickprojects/auth.go b/service/iot1clickprojects/auth.go index 954666587a1..a04166228a5 100644 --- a/service/iot1clickprojects/auth.go +++ b/service/iot1clickprojects/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iot1clickprojects/go.mod b/service/iot1clickprojects/go.mod index 51bcac044b2..b7a85a49898 100644 --- a/service/iot1clickprojects/go.mod +++ b/service/iot1clickprojects/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iot1clickprojects go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iot1clickprojects/go.sum b/service/iot1clickprojects/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iot1clickprojects/go.sum +++ b/service/iot1clickprojects/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iot1clickprojects/go_module_metadata.go b/service/iot1clickprojects/go_module_metadata.go index 2ab987be8c7..20fc16a6d1d 100644 --- a/service/iot1clickprojects/go_module_metadata.go +++ b/service/iot1clickprojects/go_module_metadata.go @@ -3,4 +3,4 @@ package iot1clickprojects // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/iot1clickprojects/options.go b/service/iot1clickprojects/options.go index 136d232f550..3eb8ff9d7b6 100644 --- a/service/iot1clickprojects/options.go +++ b/service/iot1clickprojects/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotanalytics/CHANGELOG.md b/service/iotanalytics/CHANGELOG.md index 66587263ca2..f567c4cef18 100644 --- a/service/iotanalytics/CHANGELOG.md +++ b/service/iotanalytics/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotanalytics/api_client.go b/service/iotanalytics/api_client.go index 73dee1fe496..e7e26601300 100644 --- a/service/iotanalytics/api_client.go +++ b/service/iotanalytics/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotanalytics/auth.go b/service/iotanalytics/auth.go index 33612fe0f49..4224f05c3d2 100644 --- a/service/iotanalytics/auth.go +++ b/service/iotanalytics/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotanalytics/go.mod b/service/iotanalytics/go.mod index dd74b15fcbb..a1c88fc7fa7 100644 --- a/service/iotanalytics/go.mod +++ b/service/iotanalytics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotanalytics go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotanalytics/go.sum b/service/iotanalytics/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotanalytics/go.sum +++ b/service/iotanalytics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotanalytics/go_module_metadata.go b/service/iotanalytics/go_module_metadata.go index 5cafc163559..a4e5a2a821e 100644 --- a/service/iotanalytics/go_module_metadata.go +++ b/service/iotanalytics/go_module_metadata.go @@ -3,4 +3,4 @@ package iotanalytics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/iotanalytics/options.go b/service/iotanalytics/options.go index 961d2b2c87f..c1829e5162b 100644 --- a/service/iotanalytics/options.go +++ b/service/iotanalytics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotdataplane/CHANGELOG.md b/service/iotdataplane/CHANGELOG.md index e042584d8b7..cb8377b4cf9 100644 --- a/service/iotdataplane/CHANGELOG.md +++ b/service/iotdataplane/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotdataplane/api_client.go b/service/iotdataplane/api_client.go index 710433da163..ee9d07034c0 100644 --- a/service/iotdataplane/api_client.go +++ b/service/iotdataplane/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotdataplane/auth.go b/service/iotdataplane/auth.go index 56e1571ea50..e2cd262df69 100644 --- a/service/iotdataplane/auth.go +++ b/service/iotdataplane/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotdataplane/go.mod b/service/iotdataplane/go.mod index 774142a5b48..0cb54402132 100644 --- a/service/iotdataplane/go.mod +++ b/service/iotdataplane/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotdataplane go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotdataplane/go.sum b/service/iotdataplane/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotdataplane/go.sum +++ b/service/iotdataplane/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdataplane/go_module_metadata.go b/service/iotdataplane/go_module_metadata.go index c2599117991..53272a51474 100644 --- a/service/iotdataplane/go_module_metadata.go +++ b/service/iotdataplane/go_module_metadata.go @@ -3,4 +3,4 @@ package iotdataplane // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/iotdataplane/options.go b/service/iotdataplane/options.go index f6ec0905e59..33acd92838c 100644 --- a/service/iotdataplane/options.go +++ b/service/iotdataplane/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotdeviceadvisor/CHANGELOG.md b/service/iotdeviceadvisor/CHANGELOG.md index c4c7cf744e2..688dced663e 100644 --- a/service/iotdeviceadvisor/CHANGELOG.md +++ b/service/iotdeviceadvisor/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotdeviceadvisor/api_client.go b/service/iotdeviceadvisor/api_client.go index 040870557c4..a25e2f8f2a4 100644 --- a/service/iotdeviceadvisor/api_client.go +++ b/service/iotdeviceadvisor/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotdeviceadvisor/auth.go b/service/iotdeviceadvisor/auth.go index 59df7b398d6..4ca226a62b6 100644 --- a/service/iotdeviceadvisor/auth.go +++ b/service/iotdeviceadvisor/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotdeviceadvisor/go.mod b/service/iotdeviceadvisor/go.mod index 2fae6fe7923..0629911fca7 100644 --- a/service/iotdeviceadvisor/go.mod +++ b/service/iotdeviceadvisor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotdeviceadvisor go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotdeviceadvisor/go.sum b/service/iotdeviceadvisor/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotdeviceadvisor/go.sum +++ b/service/iotdeviceadvisor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotdeviceadvisor/go_module_metadata.go b/service/iotdeviceadvisor/go_module_metadata.go index 1aa09c1b10b..ce557791acd 100644 --- a/service/iotdeviceadvisor/go_module_metadata.go +++ b/service/iotdeviceadvisor/go_module_metadata.go @@ -3,4 +3,4 @@ package iotdeviceadvisor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/iotdeviceadvisor/options.go b/service/iotdeviceadvisor/options.go index 145eb601f1d..ba7fb3ffee5 100644 --- a/service/iotdeviceadvisor/options.go +++ b/service/iotdeviceadvisor/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotevents/CHANGELOG.md b/service/iotevents/CHANGELOG.md index f5a727f579e..078b7432751 100644 --- a/service/iotevents/CHANGELOG.md +++ b/service/iotevents/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotevents/api_client.go b/service/iotevents/api_client.go index 496ed9e1478..62ef9a10f45 100644 --- a/service/iotevents/api_client.go +++ b/service/iotevents/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotevents/auth.go b/service/iotevents/auth.go index cf97c150771..431e4fb5e7b 100644 --- a/service/iotevents/auth.go +++ b/service/iotevents/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotevents/go.mod b/service/iotevents/go.mod index d1c6f32e937..7f620711474 100644 --- a/service/iotevents/go.mod +++ b/service/iotevents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotevents go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotevents/go.sum b/service/iotevents/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotevents/go.sum +++ b/service/iotevents/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotevents/go_module_metadata.go b/service/iotevents/go_module_metadata.go index 4c72839a4ad..b2249cb7d53 100644 --- a/service/iotevents/go_module_metadata.go +++ b/service/iotevents/go_module_metadata.go @@ -3,4 +3,4 @@ package iotevents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/iotevents/options.go b/service/iotevents/options.go index 0cbe4f25049..d3d39579f74 100644 --- a/service/iotevents/options.go +++ b/service/iotevents/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ioteventsdata/CHANGELOG.md b/service/ioteventsdata/CHANGELOG.md index d25c422b169..9fce895f58c 100644 --- a/service/ioteventsdata/CHANGELOG.md +++ b/service/ioteventsdata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ioteventsdata/api_client.go b/service/ioteventsdata/api_client.go index 9234111ed81..ae014fd91ac 100644 --- a/service/ioteventsdata/api_client.go +++ b/service/ioteventsdata/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ioteventsdata/auth.go b/service/ioteventsdata/auth.go index 474f59b988a..d7b4f7859a1 100644 --- a/service/ioteventsdata/auth.go +++ b/service/ioteventsdata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ioteventsdata/go.mod b/service/ioteventsdata/go.mod index 712db93fa78..c2b8e1f5eac 100644 --- a/service/ioteventsdata/go.mod +++ b/service/ioteventsdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ioteventsdata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ioteventsdata/go.sum b/service/ioteventsdata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ioteventsdata/go.sum +++ b/service/ioteventsdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ioteventsdata/go_module_metadata.go b/service/ioteventsdata/go_module_metadata.go index cab7f4fd2da..dcdbff457a6 100644 --- a/service/ioteventsdata/go_module_metadata.go +++ b/service/ioteventsdata/go_module_metadata.go @@ -3,4 +3,4 @@ package ioteventsdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/ioteventsdata/options.go b/service/ioteventsdata/options.go index 649340dc0da..d171eeec5b3 100644 --- a/service/ioteventsdata/options.go +++ b/service/ioteventsdata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotfleethub/CHANGELOG.md b/service/iotfleethub/CHANGELOG.md index 129640d5780..55f79ab7708 100644 --- a/service/iotfleethub/CHANGELOG.md +++ b/service/iotfleethub/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotfleethub/api_client.go b/service/iotfleethub/api_client.go index de1c15efe29..7d681e0e035 100644 --- a/service/iotfleethub/api_client.go +++ b/service/iotfleethub/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotfleethub/auth.go b/service/iotfleethub/auth.go index 0f13f39e015..aaf5a8386a2 100644 --- a/service/iotfleethub/auth.go +++ b/service/iotfleethub/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotfleethub/go.mod b/service/iotfleethub/go.mod index f871c26f76b..ab84e3a9672 100644 --- a/service/iotfleethub/go.mod +++ b/service/iotfleethub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotfleethub go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotfleethub/go.sum b/service/iotfleethub/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotfleethub/go.sum +++ b/service/iotfleethub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleethub/go_module_metadata.go b/service/iotfleethub/go_module_metadata.go index ba2800d1542..78caada5ed1 100644 --- a/service/iotfleethub/go_module_metadata.go +++ b/service/iotfleethub/go_module_metadata.go @@ -3,4 +3,4 @@ package iotfleethub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/iotfleethub/options.go b/service/iotfleethub/options.go index 769b76d19bc..fb2d5b63829 100644 --- a/service/iotfleethub/options.go +++ b/service/iotfleethub/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotfleetwise/CHANGELOG.md b/service/iotfleetwise/CHANGELOG.md index 4756b3fce66..aab4edfb1a2 100644 --- a/service/iotfleetwise/CHANGELOG.md +++ b/service/iotfleetwise/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotfleetwise/api_client.go b/service/iotfleetwise/api_client.go index 28b6b12882f..f0ea3070ec2 100644 --- a/service/iotfleetwise/api_client.go +++ b/service/iotfleetwise/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotfleetwise/auth.go b/service/iotfleetwise/auth.go index 5b9f263cf33..804580b816c 100644 --- a/service/iotfleetwise/auth.go +++ b/service/iotfleetwise/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotfleetwise/go.mod b/service/iotfleetwise/go.mod index 6687372d5a9..d3a10b4fccc 100644 --- a/service/iotfleetwise/go.mod +++ b/service/iotfleetwise/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotfleetwise go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotfleetwise/go.sum b/service/iotfleetwise/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotfleetwise/go.sum +++ b/service/iotfleetwise/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotfleetwise/go_module_metadata.go b/service/iotfleetwise/go_module_metadata.go index 424913d951e..2e1a9fe4eff 100644 --- a/service/iotfleetwise/go_module_metadata.go +++ b/service/iotfleetwise/go_module_metadata.go @@ -3,4 +3,4 @@ package iotfleetwise // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/iotfleetwise/options.go b/service/iotfleetwise/options.go index 339bc0c7734..adc67277582 100644 --- a/service/iotfleetwise/options.go +++ b/service/iotfleetwise/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotjobsdataplane/CHANGELOG.md b/service/iotjobsdataplane/CHANGELOG.md index 2b7af1db11e..02df4e2e9af 100644 --- a/service/iotjobsdataplane/CHANGELOG.md +++ b/service/iotjobsdataplane/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotjobsdataplane/api_client.go b/service/iotjobsdataplane/api_client.go index a920428e804..dcb0cdbf62e 100644 --- a/service/iotjobsdataplane/api_client.go +++ b/service/iotjobsdataplane/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotjobsdataplane/auth.go b/service/iotjobsdataplane/auth.go index cdc49feff88..148dd3d0ac6 100644 --- a/service/iotjobsdataplane/auth.go +++ b/service/iotjobsdataplane/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotjobsdataplane/go.mod b/service/iotjobsdataplane/go.mod index 8bc3bc8152a..c8ee425f3fc 100644 --- a/service/iotjobsdataplane/go.mod +++ b/service/iotjobsdataplane/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotjobsdataplane go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotjobsdataplane/go.sum b/service/iotjobsdataplane/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotjobsdataplane/go.sum +++ b/service/iotjobsdataplane/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotjobsdataplane/go_module_metadata.go b/service/iotjobsdataplane/go_module_metadata.go index 21f38124df5..73f26692a95 100644 --- a/service/iotjobsdataplane/go_module_metadata.go +++ b/service/iotjobsdataplane/go_module_metadata.go @@ -3,4 +3,4 @@ package iotjobsdataplane // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/iotjobsdataplane/options.go b/service/iotjobsdataplane/options.go index 68b93c5bcd8..f2434d18afb 100644 --- a/service/iotjobsdataplane/options.go +++ b/service/iotjobsdataplane/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotroborunner/CHANGELOG.md b/service/iotroborunner/CHANGELOG.md index 3f1211226ad..a9042bde698 100644 --- a/service/iotroborunner/CHANGELOG.md +++ b/service/iotroborunner/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotroborunner/api_client.go b/service/iotroborunner/api_client.go index 47d533bf57c..8dda3254989 100644 --- a/service/iotroborunner/api_client.go +++ b/service/iotroborunner/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotroborunner/auth.go b/service/iotroborunner/auth.go index 3a9e8c400ef..7e2008a9b95 100644 --- a/service/iotroborunner/auth.go +++ b/service/iotroborunner/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotroborunner/go.mod b/service/iotroborunner/go.mod index de28a55f183..f6033dd6ead 100644 --- a/service/iotroborunner/go.mod +++ b/service/iotroborunner/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotroborunner go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotroborunner/go.sum b/service/iotroborunner/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotroborunner/go.sum +++ b/service/iotroborunner/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotroborunner/go_module_metadata.go b/service/iotroborunner/go_module_metadata.go index ca6ffc0c722..4b246c352e1 100644 --- a/service/iotroborunner/go_module_metadata.go +++ b/service/iotroborunner/go_module_metadata.go @@ -3,4 +3,4 @@ package iotroborunner // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/iotroborunner/options.go b/service/iotroborunner/options.go index 6f4bb87d370..e60af1f18ad 100644 --- a/service/iotroborunner/options.go +++ b/service/iotroborunner/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotsecuretunneling/CHANGELOG.md b/service/iotsecuretunneling/CHANGELOG.md index cb5c3a1b85a..6893e2db98e 100644 --- a/service/iotsecuretunneling/CHANGELOG.md +++ b/service/iotsecuretunneling/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotsecuretunneling/api_client.go b/service/iotsecuretunneling/api_client.go index f338707a87a..785f0b8bf94 100644 --- a/service/iotsecuretunneling/api_client.go +++ b/service/iotsecuretunneling/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotsecuretunneling/auth.go b/service/iotsecuretunneling/auth.go index 0a7aa1010ed..fa657b2e8fa 100644 --- a/service/iotsecuretunneling/auth.go +++ b/service/iotsecuretunneling/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotsecuretunneling/go.mod b/service/iotsecuretunneling/go.mod index 6aba8c439ec..8ecec805815 100644 --- a/service/iotsecuretunneling/go.mod +++ b/service/iotsecuretunneling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotsecuretunneling/go.sum b/service/iotsecuretunneling/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotsecuretunneling/go.sum +++ b/service/iotsecuretunneling/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotsecuretunneling/go_module_metadata.go b/service/iotsecuretunneling/go_module_metadata.go index d3963ab7af0..290d4f14731 100644 --- a/service/iotsecuretunneling/go_module_metadata.go +++ b/service/iotsecuretunneling/go_module_metadata.go @@ -3,4 +3,4 @@ package iotsecuretunneling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/iotsecuretunneling/options.go b/service/iotsecuretunneling/options.go index 5fd3539b7a7..3b6023d9cd7 100644 --- a/service/iotsecuretunneling/options.go +++ b/service/iotsecuretunneling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotsitewise/CHANGELOG.md b/service/iotsitewise/CHANGELOG.md index 6935ade93cf..9ade2356c75 100644 --- a/service/iotsitewise/CHANGELOG.md +++ b/service/iotsitewise/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.34.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.34.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotsitewise/api_client.go b/service/iotsitewise/api_client.go index 3a4a7e4bfe3..61db04b2580 100644 --- a/service/iotsitewise/api_client.go +++ b/service/iotsitewise/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotsitewise/auth.go b/service/iotsitewise/auth.go index da10fbf8997..c7abe095779 100644 --- a/service/iotsitewise/auth.go +++ b/service/iotsitewise/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotsitewise/go.mod b/service/iotsitewise/go.mod index be0d3050e46..0272e8cafe8 100644 --- a/service/iotsitewise/go.mod +++ b/service/iotsitewise/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotsitewise go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/iotsitewise/go.sum b/service/iotsitewise/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/iotsitewise/go.sum +++ b/service/iotsitewise/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/iotsitewise/go_module_metadata.go b/service/iotsitewise/go_module_metadata.go index fe619069d11..24f52190877 100644 --- a/service/iotsitewise/go_module_metadata.go +++ b/service/iotsitewise/go_module_metadata.go @@ -3,4 +3,4 @@ package iotsitewise // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.2" diff --git a/service/iotsitewise/options.go b/service/iotsitewise/options.go index 06fec1c2553..35fe799a7e6 100644 --- a/service/iotsitewise/options.go +++ b/service/iotsitewise/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotthingsgraph/CHANGELOG.md b/service/iotthingsgraph/CHANGELOG.md index b4f09b5e8b1..f629d359ef3 100644 --- a/service/iotthingsgraph/CHANGELOG.md +++ b/service/iotthingsgraph/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotthingsgraph/api_client.go b/service/iotthingsgraph/api_client.go index 1588d18f04a..376df929daa 100644 --- a/service/iotthingsgraph/api_client.go +++ b/service/iotthingsgraph/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotthingsgraph/auth.go b/service/iotthingsgraph/auth.go index 9e28f23841e..aa0b15aafba 100644 --- a/service/iotthingsgraph/auth.go +++ b/service/iotthingsgraph/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotthingsgraph/go.mod b/service/iotthingsgraph/go.mod index e9f08f7ed87..a1643a8f972 100644 --- a/service/iotthingsgraph/go.mod +++ b/service/iotthingsgraph/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotthingsgraph go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotthingsgraph/go.sum b/service/iotthingsgraph/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotthingsgraph/go.sum +++ b/service/iotthingsgraph/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotthingsgraph/go_module_metadata.go b/service/iotthingsgraph/go_module_metadata.go index ed9b9aca958..7e2930d7075 100644 --- a/service/iotthingsgraph/go_module_metadata.go +++ b/service/iotthingsgraph/go_module_metadata.go @@ -3,4 +3,4 @@ package iotthingsgraph // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/iotthingsgraph/options.go b/service/iotthingsgraph/options.go index 773cf1bccd6..514ad73f7cb 100644 --- a/service/iotthingsgraph/options.go +++ b/service/iotthingsgraph/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iottwinmaker/CHANGELOG.md b/service/iottwinmaker/CHANGELOG.md index 46460b3cce3..1dd050274e6 100644 --- a/service/iottwinmaker/CHANGELOG.md +++ b/service/iottwinmaker/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iottwinmaker/api_client.go b/service/iottwinmaker/api_client.go index 7e75476f599..09136a3189a 100644 --- a/service/iottwinmaker/api_client.go +++ b/service/iottwinmaker/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iottwinmaker/auth.go b/service/iottwinmaker/auth.go index f3768d8a3fd..cee16d2d496 100644 --- a/service/iottwinmaker/auth.go +++ b/service/iottwinmaker/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iottwinmaker/go.mod b/service/iottwinmaker/go.mod index a41e5f5a269..4ba1d67f96b 100644 --- a/service/iottwinmaker/go.mod +++ b/service/iottwinmaker/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iottwinmaker go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iottwinmaker/go.sum b/service/iottwinmaker/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iottwinmaker/go.sum +++ b/service/iottwinmaker/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iottwinmaker/go_module_metadata.go b/service/iottwinmaker/go_module_metadata.go index 3bd060e1ce6..a2fa5b84785 100644 --- a/service/iottwinmaker/go_module_metadata.go +++ b/service/iottwinmaker/go_module_metadata.go @@ -3,4 +3,4 @@ package iottwinmaker // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/iottwinmaker/options.go b/service/iottwinmaker/options.go index a87d2acab0f..c090b42fc02 100644 --- a/service/iottwinmaker/options.go +++ b/service/iottwinmaker/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/iotwireless/CHANGELOG.md b/service/iotwireless/CHANGELOG.md index d4bb2cf8631..98ef606ddf8 100644 --- a/service/iotwireless/CHANGELOG.md +++ b/service/iotwireless/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.34.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.34.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/iotwireless/api_client.go b/service/iotwireless/api_client.go index d6be5cd1607..254d0e8a0b5 100644 --- a/service/iotwireless/api_client.go +++ b/service/iotwireless/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/iotwireless/auth.go b/service/iotwireless/auth.go index 67ae6b961e5..7bbea0e50ad 100644 --- a/service/iotwireless/auth.go +++ b/service/iotwireless/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/iotwireless/go.mod b/service/iotwireless/go.mod index 1e9d8e1c2f3..b6aa959fc07 100644 --- a/service/iotwireless/go.mod +++ b/service/iotwireless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/iotwireless go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/iotwireless/go.sum b/service/iotwireless/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/iotwireless/go.sum +++ b/service/iotwireless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/iotwireless/go_module_metadata.go b/service/iotwireless/go_module_metadata.go index 56796809b1b..e88a85cf3f8 100644 --- a/service/iotwireless/go_module_metadata.go +++ b/service/iotwireless/go_module_metadata.go @@ -3,4 +3,4 @@ package iotwireless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.2" diff --git a/service/iotwireless/options.go b/service/iotwireless/options.go index 662b83cad18..68fe6fa1303 100644 --- a/service/iotwireless/options.go +++ b/service/iotwireless/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ivs/CHANGELOG.md b/service/ivs/CHANGELOG.md index a99c614626a..a99ea295dae 100644 --- a/service/ivs/CHANGELOG.md +++ b/service/ivs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.30.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.30.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ivs/api_client.go b/service/ivs/api_client.go index 7a2ca432d13..a318f603a64 100644 --- a/service/ivs/api_client.go +++ b/service/ivs/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ivs/auth.go b/service/ivs/auth.go index 24636b9d832..cb8c2dd9189 100644 --- a/service/ivs/auth.go +++ b/service/ivs/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ivs/go.mod b/service/ivs/go.mod index fcbedba6f0b..f6e7a50bb9e 100644 --- a/service/ivs/go.mod +++ b/service/ivs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivs/go.sum b/service/ivs/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ivs/go.sum +++ b/service/ivs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivs/go_module_metadata.go b/service/ivs/go_module_metadata.go index be2a8367f2f..ffa07c25ccc 100644 --- a/service/ivs/go_module_metadata.go +++ b/service/ivs/go_module_metadata.go @@ -3,4 +3,4 @@ package ivs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.0" +const goModuleVersion = "1.30.2" diff --git a/service/ivs/options.go b/service/ivs/options.go index 07cd7cc3f2e..c506c324986 100644 --- a/service/ivs/options.go +++ b/service/ivs/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ivschat/CHANGELOG.md b/service/ivschat/CHANGELOG.md index 5c9c7e3645a..e5a38e07023 100644 --- a/service/ivschat/CHANGELOG.md +++ b/service/ivschat/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ivschat/api_client.go b/service/ivschat/api_client.go index 872a42938e4..ebeb3637924 100644 --- a/service/ivschat/api_client.go +++ b/service/ivschat/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ivschat/auth.go b/service/ivschat/auth.go index 0dc49022edb..5fe11a511ad 100644 --- a/service/ivschat/auth.go +++ b/service/ivschat/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ivschat/go.mod b/service/ivschat/go.mod index fcfc6ea2a57..5523a5964cf 100644 --- a/service/ivschat/go.mod +++ b/service/ivschat/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivschat go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivschat/go.sum b/service/ivschat/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ivschat/go.sum +++ b/service/ivschat/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivschat/go_module_metadata.go b/service/ivschat/go_module_metadata.go index bb74a93297d..e45dd45c57d 100644 --- a/service/ivschat/go_module_metadata.go +++ b/service/ivschat/go_module_metadata.go @@ -3,4 +3,4 @@ package ivschat // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/ivschat/options.go b/service/ivschat/options.go index f76ae21fc74..a2cd7ba0531 100644 --- a/service/ivschat/options.go +++ b/service/ivschat/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ivsrealtime/CHANGELOG.md b/service/ivsrealtime/CHANGELOG.md index f503aa0958b..785b51b840e 100644 --- a/service/ivsrealtime/CHANGELOG.md +++ b/service/ivsrealtime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.9.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.9.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.9.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ivsrealtime/api_client.go b/service/ivsrealtime/api_client.go index 381dbf98006..c738771fcae 100644 --- a/service/ivsrealtime/api_client.go +++ b/service/ivsrealtime/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ivsrealtime/auth.go b/service/ivsrealtime/auth.go index 71bb0f01e78..cbff77d2a59 100644 --- a/service/ivsrealtime/auth.go +++ b/service/ivsrealtime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ivsrealtime/go.mod b/service/ivsrealtime/go.mod index cfb53f6763e..402d8594c09 100644 --- a/service/ivsrealtime/go.mod +++ b/service/ivsrealtime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ivsrealtime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ivsrealtime/go.sum b/service/ivsrealtime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ivsrealtime/go.sum +++ b/service/ivsrealtime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ivsrealtime/go_module_metadata.go b/service/ivsrealtime/go_module_metadata.go index df0e991c465..7541b4f8e03 100644 --- a/service/ivsrealtime/go_module_metadata.go +++ b/service/ivsrealtime/go_module_metadata.go @@ -3,4 +3,4 @@ package ivsrealtime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.9.0" +const goModuleVersion = "1.9.2" diff --git a/service/ivsrealtime/options.go b/service/ivsrealtime/options.go index 4d6e31be7f9..f90f51e9302 100644 --- a/service/ivsrealtime/options.go +++ b/service/ivsrealtime/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kafka/CHANGELOG.md b/service/kafka/CHANGELOG.md index 4d0190bdbb0..c3d4b46f195 100644 --- a/service/kafka/CHANGELOG.md +++ b/service/kafka/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kafka/api_client.go b/service/kafka/api_client.go index 7d04944a161..15502a8e3b8 100644 --- a/service/kafka/api_client.go +++ b/service/kafka/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kafka/auth.go b/service/kafka/auth.go index 29d66d787df..b55c22c0243 100644 --- a/service/kafka/auth.go +++ b/service/kafka/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kafka/go.mod b/service/kafka/go.mod index 601e4ae015c..0edd6a5e7ad 100644 --- a/service/kafka/go.mod +++ b/service/kafka/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kafka go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kafka/go.sum b/service/kafka/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kafka/go.sum +++ b/service/kafka/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafka/go_module_metadata.go b/service/kafka/go_module_metadata.go index ee4fb6b6d16..167299383ce 100644 --- a/service/kafka/go_module_metadata.go +++ b/service/kafka/go_module_metadata.go @@ -3,4 +3,4 @@ package kafka // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/kafka/options.go b/service/kafka/options.go index d55d09605f4..cb635b007d2 100644 --- a/service/kafka/options.go +++ b/service/kafka/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kafkaconnect/CHANGELOG.md b/service/kafkaconnect/CHANGELOG.md index 342370b671f..9490bca061c 100644 --- a/service/kafkaconnect/CHANGELOG.md +++ b/service/kafkaconnect/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.14.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.14.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kafkaconnect/api_client.go b/service/kafkaconnect/api_client.go index be19d011910..d6a788cd2df 100644 --- a/service/kafkaconnect/api_client.go +++ b/service/kafkaconnect/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kafkaconnect/auth.go b/service/kafkaconnect/auth.go index be360cbf49e..24ad8b3b4a3 100644 --- a/service/kafkaconnect/auth.go +++ b/service/kafkaconnect/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kafkaconnect/go.mod b/service/kafkaconnect/go.mod index 8518c77a317..39504efe379 100644 --- a/service/kafkaconnect/go.mod +++ b/service/kafkaconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kafkaconnect go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kafkaconnect/go.sum b/service/kafkaconnect/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kafkaconnect/go.sum +++ b/service/kafkaconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kafkaconnect/go_module_metadata.go b/service/kafkaconnect/go_module_metadata.go index 723559ae22e..25f11785246 100644 --- a/service/kafkaconnect/go_module_metadata.go +++ b/service/kafkaconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package kafkaconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.14.2" diff --git a/service/kafkaconnect/options.go b/service/kafkaconnect/options.go index a54eef4bb59..eb8b2012732 100644 --- a/service/kafkaconnect/options.go +++ b/service/kafkaconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kendra/CHANGELOG.md b/service/kendra/CHANGELOG.md index cfbc5c1813a..c627736cc25 100644 --- a/service/kendra/CHANGELOG.md +++ b/service/kendra/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.47.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.47.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.47.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kendra/api_client.go b/service/kendra/api_client.go index d15b5620165..0ae9b7be900 100644 --- a/service/kendra/api_client.go +++ b/service/kendra/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kendra/auth.go b/service/kendra/auth.go index f18076ef651..0b3c544d9c6 100644 --- a/service/kendra/auth.go +++ b/service/kendra/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kendra/go.mod b/service/kendra/go.mod index 76867519846..83a2d5ebe4b 100644 --- a/service/kendra/go.mod +++ b/service/kendra/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kendra go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kendra/go.sum b/service/kendra/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kendra/go.sum +++ b/service/kendra/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendra/go_module_metadata.go b/service/kendra/go_module_metadata.go index 139dfbc2070..71a482143cd 100644 --- a/service/kendra/go_module_metadata.go +++ b/service/kendra/go_module_metadata.go @@ -3,4 +3,4 @@ package kendra // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.47.0" +const goModuleVersion = "1.47.2" diff --git a/service/kendra/options.go b/service/kendra/options.go index 56e27755a34..d5466823c1e 100644 --- a/service/kendra/options.go +++ b/service/kendra/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kendraranking/CHANGELOG.md b/service/kendraranking/CHANGELOG.md index c3d6a12ba03..8258a751b8d 100644 --- a/service/kendraranking/CHANGELOG.md +++ b/service/kendraranking/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kendraranking/api_client.go b/service/kendraranking/api_client.go index 4dc0819d5ef..36d64e87ec0 100644 --- a/service/kendraranking/api_client.go +++ b/service/kendraranking/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kendraranking/auth.go b/service/kendraranking/auth.go index f199963cc79..4c47bbcc808 100644 --- a/service/kendraranking/auth.go +++ b/service/kendraranking/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kendraranking/go.mod b/service/kendraranking/go.mod index b4be8aae802..04b35d86d70 100644 --- a/service/kendraranking/go.mod +++ b/service/kendraranking/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kendraranking go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kendraranking/go.sum b/service/kendraranking/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kendraranking/go.sum +++ b/service/kendraranking/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kendraranking/go_module_metadata.go b/service/kendraranking/go_module_metadata.go index 4627c9f0245..394e955f1bd 100644 --- a/service/kendraranking/go_module_metadata.go +++ b/service/kendraranking/go_module_metadata.go @@ -3,4 +3,4 @@ package kendraranking // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/kendraranking/options.go b/service/kendraranking/options.go index 99331b4f1cb..d271f00d698 100644 --- a/service/kendraranking/options.go +++ b/service/kendraranking/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/keyspaces/CHANGELOG.md b/service/keyspaces/CHANGELOG.md index 3d877fbafeb..91a853f3cf6 100644 --- a/service/keyspaces/CHANGELOG.md +++ b/service/keyspaces/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/keyspaces/api_client.go b/service/keyspaces/api_client.go index 55ce8f5f432..be1e4d86220 100644 --- a/service/keyspaces/api_client.go +++ b/service/keyspaces/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/keyspaces/auth.go b/service/keyspaces/auth.go index c14ff68cffb..12c2fc3fe34 100644 --- a/service/keyspaces/auth.go +++ b/service/keyspaces/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/keyspaces/go.mod b/service/keyspaces/go.mod index 6d524d2d3bf..1f5ba702063 100644 --- a/service/keyspaces/go.mod +++ b/service/keyspaces/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/keyspaces go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/keyspaces/go.sum b/service/keyspaces/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/keyspaces/go.sum +++ b/service/keyspaces/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/keyspaces/go_module_metadata.go b/service/keyspaces/go_module_metadata.go index 3f27c929fbe..687194ed41e 100644 --- a/service/keyspaces/go_module_metadata.go +++ b/service/keyspaces/go_module_metadata.go @@ -3,4 +3,4 @@ package keyspaces // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/keyspaces/options.go b/service/keyspaces/options.go index 29dc2d87d0a..b29b44f7f76 100644 --- a/service/keyspaces/options.go +++ b/service/keyspaces/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesis/CHANGELOG.md b/service/kinesis/CHANGELOG.md index 74c5da24cbe..ee0991b50b5 100644 --- a/service/kinesis/CHANGELOG.md +++ b/service/kinesis/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesis/api_client.go b/service/kinesis/api_client.go index 99f4ceff63b..77a596a6366 100644 --- a/service/kinesis/api_client.go +++ b/service/kinesis/api_client.go @@ -141,7 +141,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -150,7 +150,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesis/auth.go b/service/kinesis/auth.go index db53da37751..0edf8a93dea 100644 --- a/service/kinesis/auth.go +++ b/service/kinesis/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesis/go.mod b/service/kinesis/go.mod index 3abc31d6e93..355e6f92360 100644 --- a/service/kinesis/go.mod +++ b/service/kinesis/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/kinesis go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/kinesis/go.sum b/service/kinesis/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/kinesis/go.sum +++ b/service/kinesis/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesis/go_module_metadata.go b/service/kinesis/go_module_metadata.go index eb13dddb1df..2aa2e072b1a 100644 --- a/service/kinesis/go_module_metadata.go +++ b/service/kinesis/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesis // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/kinesis/internal/testing/go.mod b/service/kinesis/internal/testing/go.mod index ee807be67fc..d9629d7249e 100644 --- a/service/kinesis/internal/testing/go.mod +++ b/service/kinesis/internal/testing/go.mod @@ -3,18 +3,18 @@ module github.com/aws/aws-sdk-go-v2/service/kinesis/internal/testing go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.2.10 - github.com/aws/aws-sdk-go-v2/service/kinesis v1.24.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.2.12 + github.com/aws/aws-sdk-go-v2/service/kinesis v1.24.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect diff --git a/service/kinesis/internal/testing/go.sum b/service/kinesis/internal/testing/go.sum index 126d5716fc9..049821a0790 100644 --- a/service/kinesis/internal/testing/go.sum +++ b/service/kinesis/internal/testing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/kinesis/options.go b/service/kinesis/options.go index 49966202865..0922b8ad14c 100644 --- a/service/kinesis/options.go +++ b/service/kinesis/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisanalytics/CHANGELOG.md b/service/kinesisanalytics/CHANGELOG.md index de044e359b0..a2ada43ad71 100644 --- a/service/kinesisanalytics/CHANGELOG.md +++ b/service/kinesisanalytics/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesisanalytics/api_client.go b/service/kinesisanalytics/api_client.go index a98515812e1..d9caf98653b 100644 --- a/service/kinesisanalytics/api_client.go +++ b/service/kinesisanalytics/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesisanalytics/auth.go b/service/kinesisanalytics/auth.go index 579d1fb9c8d..7740b003176 100644 --- a/service/kinesisanalytics/auth.go +++ b/service/kinesisanalytics/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesisanalytics/go.mod b/service/kinesisanalytics/go.mod index 674c1cfa108..7970cb5d4b9 100644 --- a/service/kinesisanalytics/go.mod +++ b/service/kinesisanalytics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalytics go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisanalytics/go.sum b/service/kinesisanalytics/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kinesisanalytics/go.sum +++ b/service/kinesisanalytics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisanalytics/go_module_metadata.go b/service/kinesisanalytics/go_module_metadata.go index 2fdf2cd217f..1b9088b7fec 100644 --- a/service/kinesisanalytics/go_module_metadata.go +++ b/service/kinesisanalytics/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisanalytics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/kinesisanalytics/options.go b/service/kinesisanalytics/options.go index 25a02ffad5a..0d6b91ba68d 100644 --- a/service/kinesisanalytics/options.go +++ b/service/kinesisanalytics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisanalyticsv2/CHANGELOG.md b/service/kinesisanalyticsv2/CHANGELOG.md index 7e3b1e77f47..fa0802aead0 100644 --- a/service/kinesisanalyticsv2/CHANGELOG.md +++ b/service/kinesisanalyticsv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesisanalyticsv2/api_client.go b/service/kinesisanalyticsv2/api_client.go index 8cd00120221..712c6f07a16 100644 --- a/service/kinesisanalyticsv2/api_client.go +++ b/service/kinesisanalyticsv2/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesisanalyticsv2/auth.go b/service/kinesisanalyticsv2/auth.go index 9d22be07794..9917a479646 100644 --- a/service/kinesisanalyticsv2/auth.go +++ b/service/kinesisanalyticsv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesisanalyticsv2/go.mod b/service/kinesisanalyticsv2/go.mod index 2d78ae1ff37..ce73b005a6f 100644 --- a/service/kinesisanalyticsv2/go.mod +++ b/service/kinesisanalyticsv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisanalyticsv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisanalyticsv2/go.sum b/service/kinesisanalyticsv2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kinesisanalyticsv2/go.sum +++ b/service/kinesisanalyticsv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisanalyticsv2/go_module_metadata.go b/service/kinesisanalyticsv2/go_module_metadata.go index 3a30fa90fb4..cfc6bc9a1ae 100644 --- a/service/kinesisanalyticsv2/go_module_metadata.go +++ b/service/kinesisanalyticsv2/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisanalyticsv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/kinesisanalyticsv2/options.go b/service/kinesisanalyticsv2/options.go index 35635b36210..983bcd11d07 100644 --- a/service/kinesisanalyticsv2/options.go +++ b/service/kinesisanalyticsv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideo/CHANGELOG.md b/service/kinesisvideo/CHANGELOG.md index 2b2da746202..aaef301aa8c 100644 --- a/service/kinesisvideo/CHANGELOG.md +++ b/service/kinesisvideo/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesisvideo/api_client.go b/service/kinesisvideo/api_client.go index 18deb365302..83fc7c95f9a 100644 --- a/service/kinesisvideo/api_client.go +++ b/service/kinesisvideo/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesisvideo/auth.go b/service/kinesisvideo/auth.go index 87ccf7f529c..5e6dd5b28b9 100644 --- a/service/kinesisvideo/auth.go +++ b/service/kinesisvideo/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesisvideo/go.mod b/service/kinesisvideo/go.mod index ac884dbddf9..33ef4388ecb 100644 --- a/service/kinesisvideo/go.mod +++ b/service/kinesisvideo/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideo go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideo/go.sum b/service/kinesisvideo/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kinesisvideo/go.sum +++ b/service/kinesisvideo/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideo/go_module_metadata.go b/service/kinesisvideo/go_module_metadata.go index 5618869a69d..1ebdb41b1d0 100644 --- a/service/kinesisvideo/go_module_metadata.go +++ b/service/kinesisvideo/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideo // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/kinesisvideo/options.go b/service/kinesisvideo/options.go index 33d912fb913..76fd2aad82f 100644 --- a/service/kinesisvideo/options.go +++ b/service/kinesisvideo/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideoarchivedmedia/CHANGELOG.md b/service/kinesisvideoarchivedmedia/CHANGELOG.md index fc0a0ffb830..76686a32275 100644 --- a/service/kinesisvideoarchivedmedia/CHANGELOG.md +++ b/service/kinesisvideoarchivedmedia/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesisvideoarchivedmedia/api_client.go b/service/kinesisvideoarchivedmedia/api_client.go index fa32cd696a8..ee77a327af6 100644 --- a/service/kinesisvideoarchivedmedia/api_client.go +++ b/service/kinesisvideoarchivedmedia/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesisvideoarchivedmedia/auth.go b/service/kinesisvideoarchivedmedia/auth.go index 9cc73e3594e..476ab356b93 100644 --- a/service/kinesisvideoarchivedmedia/auth.go +++ b/service/kinesisvideoarchivedmedia/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesisvideoarchivedmedia/go.mod b/service/kinesisvideoarchivedmedia/go.mod index c41edce3035..4afbcb2b0a3 100644 --- a/service/kinesisvideoarchivedmedia/go.mod +++ b/service/kinesisvideoarchivedmedia/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideoarchivedmedia go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideoarchivedmedia/go.sum b/service/kinesisvideoarchivedmedia/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kinesisvideoarchivedmedia/go.sum +++ b/service/kinesisvideoarchivedmedia/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideoarchivedmedia/go_module_metadata.go b/service/kinesisvideoarchivedmedia/go_module_metadata.go index 6576f8d3a94..73123e7e4d8 100644 --- a/service/kinesisvideoarchivedmedia/go_module_metadata.go +++ b/service/kinesisvideoarchivedmedia/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideoarchivedmedia // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/kinesisvideoarchivedmedia/options.go b/service/kinesisvideoarchivedmedia/options.go index 50af73df704..ddf3cf2814f 100644 --- a/service/kinesisvideoarchivedmedia/options.go +++ b/service/kinesisvideoarchivedmedia/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideomedia/CHANGELOG.md b/service/kinesisvideomedia/CHANGELOG.md index 621eb1d8d77..e8f2f4e4f0e 100644 --- a/service/kinesisvideomedia/CHANGELOG.md +++ b/service/kinesisvideomedia/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.16.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesisvideomedia/api_client.go b/service/kinesisvideomedia/api_client.go index 0bfd05a0863..bb97da70835 100644 --- a/service/kinesisvideomedia/api_client.go +++ b/service/kinesisvideomedia/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesisvideomedia/auth.go b/service/kinesisvideomedia/auth.go index 45630ac1785..4de32d363bb 100644 --- a/service/kinesisvideomedia/auth.go +++ b/service/kinesisvideomedia/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesisvideomedia/go.mod b/service/kinesisvideomedia/go.mod index 8e7352058d5..a46260efbe9 100644 --- a/service/kinesisvideomedia/go.mod +++ b/service/kinesisvideomedia/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideomedia go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideomedia/go.sum b/service/kinesisvideomedia/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kinesisvideomedia/go.sum +++ b/service/kinesisvideomedia/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideomedia/go_module_metadata.go b/service/kinesisvideomedia/go_module_metadata.go index 7c50178994d..e2e2c3833d5 100644 --- a/service/kinesisvideomedia/go_module_metadata.go +++ b/service/kinesisvideomedia/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideomedia // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.2" diff --git a/service/kinesisvideomedia/options.go b/service/kinesisvideomedia/options.go index 9c789fc01a1..4abaa356be6 100644 --- a/service/kinesisvideomedia/options.go +++ b/service/kinesisvideomedia/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideosignaling/CHANGELOG.md b/service/kinesisvideosignaling/CHANGELOG.md index 0964aaa9fc6..d9cba0c917a 100644 --- a/service/kinesisvideosignaling/CHANGELOG.md +++ b/service/kinesisvideosignaling/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesisvideosignaling/api_client.go b/service/kinesisvideosignaling/api_client.go index b8c794054ff..55531773312 100644 --- a/service/kinesisvideosignaling/api_client.go +++ b/service/kinesisvideosignaling/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesisvideosignaling/auth.go b/service/kinesisvideosignaling/auth.go index 9015109f896..b0174e1e7f5 100644 --- a/service/kinesisvideosignaling/auth.go +++ b/service/kinesisvideosignaling/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesisvideosignaling/go.mod b/service/kinesisvideosignaling/go.mod index 7e39cf4b5b4..d8df89948cc 100644 --- a/service/kinesisvideosignaling/go.mod +++ b/service/kinesisvideosignaling/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideosignaling go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideosignaling/go.sum b/service/kinesisvideosignaling/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kinesisvideosignaling/go.sum +++ b/service/kinesisvideosignaling/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideosignaling/go_module_metadata.go b/service/kinesisvideosignaling/go_module_metadata.go index 1a86aef1dd5..7454e97fcc1 100644 --- a/service/kinesisvideosignaling/go_module_metadata.go +++ b/service/kinesisvideosignaling/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideosignaling // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/kinesisvideosignaling/options.go b/service/kinesisvideosignaling/options.go index a00f1c011f8..7f8f3c8bbe6 100644 --- a/service/kinesisvideosignaling/options.go +++ b/service/kinesisvideosignaling/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kinesisvideowebrtcstorage/CHANGELOG.md b/service/kinesisvideowebrtcstorage/CHANGELOG.md index 01efe6a26bb..2c4ac470769 100644 --- a/service/kinesisvideowebrtcstorage/CHANGELOG.md +++ b/service/kinesisvideowebrtcstorage/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kinesisvideowebrtcstorage/api_client.go b/service/kinesisvideowebrtcstorage/api_client.go index 96adcb44b60..628bc5d316d 100644 --- a/service/kinesisvideowebrtcstorage/api_client.go +++ b/service/kinesisvideowebrtcstorage/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kinesisvideowebrtcstorage/auth.go b/service/kinesisvideowebrtcstorage/auth.go index e4110fdcdc1..f8bb222f721 100644 --- a/service/kinesisvideowebrtcstorage/auth.go +++ b/service/kinesisvideowebrtcstorage/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kinesisvideowebrtcstorage/go.mod b/service/kinesisvideowebrtcstorage/go.mod index 77706183cb1..d8b4d0fc7de 100644 --- a/service/kinesisvideowebrtcstorage/go.mod +++ b/service/kinesisvideowebrtcstorage/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kinesisvideowebrtcstorage go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kinesisvideowebrtcstorage/go.sum b/service/kinesisvideowebrtcstorage/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kinesisvideowebrtcstorage/go.sum +++ b/service/kinesisvideowebrtcstorage/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kinesisvideowebrtcstorage/go_module_metadata.go b/service/kinesisvideowebrtcstorage/go_module_metadata.go index ae16852f895..9ed5f75c0d1 100644 --- a/service/kinesisvideowebrtcstorage/go_module_metadata.go +++ b/service/kinesisvideowebrtcstorage/go_module_metadata.go @@ -3,4 +3,4 @@ package kinesisvideowebrtcstorage // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/kinesisvideowebrtcstorage/options.go b/service/kinesisvideowebrtcstorage/options.go index e44b407327b..0ce1464a114 100644 --- a/service/kinesisvideowebrtcstorage/options.go +++ b/service/kinesisvideowebrtcstorage/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/kms/CHANGELOG.md b/service/kms/CHANGELOG.md index 788282a5722..55efccf9bf4 100644 --- a/service/kms/CHANGELOG.md +++ b/service/kms/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.27.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/kms/api_client.go b/service/kms/api_client.go index 03e38c8e3d0..d756de129f3 100644 --- a/service/kms/api_client.go +++ b/service/kms/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/kms/auth.go b/service/kms/auth.go index e7973a8e200..dafb70143a2 100644 --- a/service/kms/auth.go +++ b/service/kms/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/kms/go.mod b/service/kms/go.mod index e2af2227a25..ed0339d3091 100644 --- a/service/kms/go.mod +++ b/service/kms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/kms go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/kms/go.sum b/service/kms/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/kms/go.sum +++ b/service/kms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/kms/go_module_metadata.go b/service/kms/go_module_metadata.go index 3c4825a243d..b1e237e444a 100644 --- a/service/kms/go_module_metadata.go +++ b/service/kms/go_module_metadata.go @@ -3,4 +3,4 @@ package kms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.2" diff --git a/service/kms/options.go b/service/kms/options.go index 0f959bb795d..b4057f7eb59 100644 --- a/service/kms/options.go +++ b/service/kms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lakeformation/CHANGELOG.md b/service/lakeformation/CHANGELOG.md index 4675435ba43..42f8c683cce 100644 --- a/service/lakeformation/CHANGELOG.md +++ b/service/lakeformation/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lakeformation/api_client.go b/service/lakeformation/api_client.go index b14fe677101..840fa16831a 100644 --- a/service/lakeformation/api_client.go +++ b/service/lakeformation/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lakeformation/auth.go b/service/lakeformation/auth.go index 722058d5c43..1683565cecd 100644 --- a/service/lakeformation/auth.go +++ b/service/lakeformation/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lakeformation/go.mod b/service/lakeformation/go.mod index c651e0dd637..9ef2172d682 100644 --- a/service/lakeformation/go.mod +++ b/service/lakeformation/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lakeformation go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lakeformation/go.sum b/service/lakeformation/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lakeformation/go.sum +++ b/service/lakeformation/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lakeformation/go_module_metadata.go b/service/lakeformation/go_module_metadata.go index d0e9e192a4e..5e35ca8c6e7 100644 --- a/service/lakeformation/go_module_metadata.go +++ b/service/lakeformation/go_module_metadata.go @@ -3,4 +3,4 @@ package lakeformation // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/lakeformation/options.go b/service/lakeformation/options.go index b70bdf704e1..32ad2d97d3c 100644 --- a/service/lakeformation/options.go +++ b/service/lakeformation/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lambda/CHANGELOG.md b/service/lambda/CHANGELOG.md index d4dfacf8598..408faf75656 100644 --- a/service/lambda/CHANGELOG.md +++ b/service/lambda/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.49.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.49.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.49.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lambda/api_client.go b/service/lambda/api_client.go index 1a3b1cf5b33..3a9fc2da90e 100644 --- a/service/lambda/api_client.go +++ b/service/lambda/api_client.go @@ -141,7 +141,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -150,7 +150,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lambda/auth.go b/service/lambda/auth.go index a26504571b1..f2944f9af6b 100644 --- a/service/lambda/auth.go +++ b/service/lambda/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lambda/go.mod b/service/lambda/go.mod index d4723058e9e..45f7aff52f3 100644 --- a/service/lambda/go.mod +++ b/service/lambda/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/lambda go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lambda/go.sum b/service/lambda/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/lambda/go.sum +++ b/service/lambda/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/lambda/go_module_metadata.go b/service/lambda/go_module_metadata.go index 8a810b176fc..c486bb0d493 100644 --- a/service/lambda/go_module_metadata.go +++ b/service/lambda/go_module_metadata.go @@ -3,4 +3,4 @@ package lambda // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.49.0" +const goModuleVersion = "1.49.2" diff --git a/service/lambda/options.go b/service/lambda/options.go index c3067ac9cb9..4db32eeafbe 100644 --- a/service/lambda/options.go +++ b/service/lambda/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/launchwizard/CHANGELOG.md b/service/launchwizard/CHANGELOG.md index 2717a31a21f..30a8fc64d61 100644 --- a/service/launchwizard/CHANGELOG.md +++ b/service/launchwizard/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/launchwizard/api_client.go b/service/launchwizard/api_client.go index 3219f6785cd..aec1a554425 100644 --- a/service/launchwizard/api_client.go +++ b/service/launchwizard/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/launchwizard/auth.go b/service/launchwizard/auth.go index 665849fff43..b581d30215b 100644 --- a/service/launchwizard/auth.go +++ b/service/launchwizard/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/launchwizard/go.mod b/service/launchwizard/go.mod index 25c5abd45f0..305682c1267 100644 --- a/service/launchwizard/go.mod +++ b/service/launchwizard/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/launchwizard go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/launchwizard/go.sum b/service/launchwizard/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/launchwizard/go.sum +++ b/service/launchwizard/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/launchwizard/go_module_metadata.go b/service/launchwizard/go_module_metadata.go index 772a44a22be..8b727e6a0a0 100644 --- a/service/launchwizard/go_module_metadata.go +++ b/service/launchwizard/go_module_metadata.go @@ -3,4 +3,4 @@ package launchwizard // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/launchwizard/options.go b/service/launchwizard/options.go index 032e3e7ab09..57067d3d50a 100644 --- a/service/launchwizard/options.go +++ b/service/launchwizard/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexmodelbuildingservice/CHANGELOG.md b/service/lexmodelbuildingservice/CHANGELOG.md index 507c6264ecf..e2fa6420596 100644 --- a/service/lexmodelbuildingservice/CHANGELOG.md +++ b/service/lexmodelbuildingservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lexmodelbuildingservice/api_client.go b/service/lexmodelbuildingservice/api_client.go index 6f58d4363e3..ca0398900d1 100644 --- a/service/lexmodelbuildingservice/api_client.go +++ b/service/lexmodelbuildingservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lexmodelbuildingservice/auth.go b/service/lexmodelbuildingservice/auth.go index 92753717fd6..cc9da7f51c2 100644 --- a/service/lexmodelbuildingservice/auth.go +++ b/service/lexmodelbuildingservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lexmodelbuildingservice/go.mod b/service/lexmodelbuildingservice/go.mod index d0b79c71032..990924ad0fa 100644 --- a/service/lexmodelbuildingservice/go.mod +++ b/service/lexmodelbuildingservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexmodelbuildingservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexmodelbuildingservice/go.sum b/service/lexmodelbuildingservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lexmodelbuildingservice/go.sum +++ b/service/lexmodelbuildingservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexmodelbuildingservice/go_module_metadata.go b/service/lexmodelbuildingservice/go_module_metadata.go index ab127450c27..c426635ff35 100644 --- a/service/lexmodelbuildingservice/go_module_metadata.go +++ b/service/lexmodelbuildingservice/go_module_metadata.go @@ -3,4 +3,4 @@ package lexmodelbuildingservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/lexmodelbuildingservice/options.go b/service/lexmodelbuildingservice/options.go index 687a54f9c82..89866c75ccc 100644 --- a/service/lexmodelbuildingservice/options.go +++ b/service/lexmodelbuildingservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexmodelsv2/CHANGELOG.md b/service/lexmodelsv2/CHANGELOG.md index 735d32b50e6..23b95128971 100644 --- a/service/lexmodelsv2/CHANGELOG.md +++ b/service/lexmodelsv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.38.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.38.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.38.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lexmodelsv2/api_client.go b/service/lexmodelsv2/api_client.go index 08f906015d2..b094c20635c 100644 --- a/service/lexmodelsv2/api_client.go +++ b/service/lexmodelsv2/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lexmodelsv2/auth.go b/service/lexmodelsv2/auth.go index 5ddb7b97785..cf26e27e945 100644 --- a/service/lexmodelsv2/auth.go +++ b/service/lexmodelsv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lexmodelsv2/go.mod b/service/lexmodelsv2/go.mod index 9298b11bc33..afc32d98f54 100644 --- a/service/lexmodelsv2/go.mod +++ b/service/lexmodelsv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexmodelsv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/lexmodelsv2/go.sum b/service/lexmodelsv2/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/lexmodelsv2/go.sum +++ b/service/lexmodelsv2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/lexmodelsv2/go_module_metadata.go b/service/lexmodelsv2/go_module_metadata.go index 083f04c4335..1db33f75632 100644 --- a/service/lexmodelsv2/go_module_metadata.go +++ b/service/lexmodelsv2/go_module_metadata.go @@ -3,4 +3,4 @@ package lexmodelsv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.38.0" +const goModuleVersion = "1.38.2" diff --git a/service/lexmodelsv2/options.go b/service/lexmodelsv2/options.go index 7a7714a2c1b..0b787a3e1d8 100644 --- a/service/lexmodelsv2/options.go +++ b/service/lexmodelsv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexruntimeservice/CHANGELOG.md b/service/lexruntimeservice/CHANGELOG.md index 8f094aa7cf8..fb6280e9cea 100644 --- a/service/lexruntimeservice/CHANGELOG.md +++ b/service/lexruntimeservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lexruntimeservice/api_client.go b/service/lexruntimeservice/api_client.go index 42323f0f2d0..f3ca76bbcc2 100644 --- a/service/lexruntimeservice/api_client.go +++ b/service/lexruntimeservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lexruntimeservice/auth.go b/service/lexruntimeservice/auth.go index e62b06e29f0..49b0417033d 100644 --- a/service/lexruntimeservice/auth.go +++ b/service/lexruntimeservice/auth.go @@ -135,7 +135,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -215,7 +215,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -264,7 +264,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lexruntimeservice/go.mod b/service/lexruntimeservice/go.mod index 19c218216be..e46933d0931 100644 --- a/service/lexruntimeservice/go.mod +++ b/service/lexruntimeservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lexruntimeservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexruntimeservice/go.sum b/service/lexruntimeservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lexruntimeservice/go.sum +++ b/service/lexruntimeservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexruntimeservice/go_module_metadata.go b/service/lexruntimeservice/go_module_metadata.go index 6e5f0d3d1b9..1bcc33e0389 100644 --- a/service/lexruntimeservice/go_module_metadata.go +++ b/service/lexruntimeservice/go_module_metadata.go @@ -3,4 +3,4 @@ package lexruntimeservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/lexruntimeservice/options.go b/service/lexruntimeservice/options.go index 4f4a474847d..8b99c119b6e 100644 --- a/service/lexruntimeservice/options.go +++ b/service/lexruntimeservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lexruntimev2/CHANGELOG.md b/service/lexruntimev2/CHANGELOG.md index ea6d5c72b21..b02c95e230a 100644 --- a/service/lexruntimev2/CHANGELOG.md +++ b/service/lexruntimev2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lexruntimev2/api_client.go b/service/lexruntimev2/api_client.go index b086fcbe488..491ab3d844a 100644 --- a/service/lexruntimev2/api_client.go +++ b/service/lexruntimev2/api_client.go @@ -142,7 +142,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -151,7 +151,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lexruntimev2/auth.go b/service/lexruntimev2/auth.go index 06e66d17d7e..fe198feb817 100644 --- a/service/lexruntimev2/auth.go +++ b/service/lexruntimev2/auth.go @@ -135,7 +135,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -215,7 +215,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -264,7 +264,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lexruntimev2/go.mod b/service/lexruntimev2/go.mod index 9f577327592..3588d409ef7 100644 --- a/service/lexruntimev2/go.mod +++ b/service/lexruntimev2/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/lexruntimev2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lexruntimev2/go.sum b/service/lexruntimev2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lexruntimev2/go.sum +++ b/service/lexruntimev2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lexruntimev2/go_module_metadata.go b/service/lexruntimev2/go_module_metadata.go index 0aabcd62fb3..d54b8b8beff 100644 --- a/service/lexruntimev2/go_module_metadata.go +++ b/service/lexruntimev2/go_module_metadata.go @@ -3,4 +3,4 @@ package lexruntimev2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/lexruntimev2/options.go b/service/lexruntimev2/options.go index 01c32791c4e..a9f34b8c03b 100644 --- a/service/lexruntimev2/options.go +++ b/service/lexruntimev2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/licensemanager/CHANGELOG.md b/service/licensemanager/CHANGELOG.md index a2d4e67ff4c..7b4b3da5a61 100644 --- a/service/licensemanager/CHANGELOG.md +++ b/service/licensemanager/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/licensemanager/api_client.go b/service/licensemanager/api_client.go index 9f36c763cd6..1d72424fee9 100644 --- a/service/licensemanager/api_client.go +++ b/service/licensemanager/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/licensemanager/auth.go b/service/licensemanager/auth.go index dfa3d4bcc6c..525edf0e868 100644 --- a/service/licensemanager/auth.go +++ b/service/licensemanager/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/licensemanager/go.mod b/service/licensemanager/go.mod index a5cbd20a2a9..b5890006b03 100644 --- a/service/licensemanager/go.mod +++ b/service/licensemanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanager go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanager/go.sum b/service/licensemanager/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/licensemanager/go.sum +++ b/service/licensemanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanager/go_module_metadata.go b/service/licensemanager/go_module_metadata.go index 0de73927e58..b849d3b22b0 100644 --- a/service/licensemanager/go_module_metadata.go +++ b/service/licensemanager/go_module_metadata.go @@ -3,4 +3,4 @@ package licensemanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/licensemanager/options.go b/service/licensemanager/options.go index 0564588de2d..f525b33ca7f 100644 --- a/service/licensemanager/options.go +++ b/service/licensemanager/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/licensemanagerlinuxsubscriptions/CHANGELOG.md b/service/licensemanagerlinuxsubscriptions/CHANGELOG.md index 20e00393971..879f1e3f1b3 100644 --- a/service/licensemanagerlinuxsubscriptions/CHANGELOG.md +++ b/service/licensemanagerlinuxsubscriptions/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/licensemanagerlinuxsubscriptions/api_client.go b/service/licensemanagerlinuxsubscriptions/api_client.go index 2a059491fd0..51ccaca2044 100644 --- a/service/licensemanagerlinuxsubscriptions/api_client.go +++ b/service/licensemanagerlinuxsubscriptions/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/licensemanagerlinuxsubscriptions/auth.go b/service/licensemanagerlinuxsubscriptions/auth.go index f0ae4f164d5..d4448b80a2f 100644 --- a/service/licensemanagerlinuxsubscriptions/auth.go +++ b/service/licensemanagerlinuxsubscriptions/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/licensemanagerlinuxsubscriptions/go.mod b/service/licensemanagerlinuxsubscriptions/go.mod index 94e545a91e4..1716bd2fa2b 100644 --- a/service/licensemanagerlinuxsubscriptions/go.mod +++ b/service/licensemanagerlinuxsubscriptions/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanagerlinuxsubscriptions go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanagerlinuxsubscriptions/go.sum b/service/licensemanagerlinuxsubscriptions/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/licensemanagerlinuxsubscriptions/go.sum +++ b/service/licensemanagerlinuxsubscriptions/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerlinuxsubscriptions/go_module_metadata.go b/service/licensemanagerlinuxsubscriptions/go_module_metadata.go index d16cbfc8cdc..057b8f62a3c 100644 --- a/service/licensemanagerlinuxsubscriptions/go_module_metadata.go +++ b/service/licensemanagerlinuxsubscriptions/go_module_metadata.go @@ -3,4 +3,4 @@ package licensemanagerlinuxsubscriptions // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/licensemanagerlinuxsubscriptions/options.go b/service/licensemanagerlinuxsubscriptions/options.go index a282d3ae431..46b5673b683 100644 --- a/service/licensemanagerlinuxsubscriptions/options.go +++ b/service/licensemanagerlinuxsubscriptions/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/licensemanagerusersubscriptions/CHANGELOG.md b/service/licensemanagerusersubscriptions/CHANGELOG.md index 049f0a2eee9..d79c33bdcc3 100644 --- a/service/licensemanagerusersubscriptions/CHANGELOG.md +++ b/service/licensemanagerusersubscriptions/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/licensemanagerusersubscriptions/api_client.go b/service/licensemanagerusersubscriptions/api_client.go index f7a801e0131..3f67487de1c 100644 --- a/service/licensemanagerusersubscriptions/api_client.go +++ b/service/licensemanagerusersubscriptions/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/licensemanagerusersubscriptions/auth.go b/service/licensemanagerusersubscriptions/auth.go index 0b859a01034..ddc677d8eb6 100644 --- a/service/licensemanagerusersubscriptions/auth.go +++ b/service/licensemanagerusersubscriptions/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/licensemanagerusersubscriptions/go.mod b/service/licensemanagerusersubscriptions/go.mod index f976929d4ab..4c0ee218563 100644 --- a/service/licensemanagerusersubscriptions/go.mod +++ b/service/licensemanagerusersubscriptions/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/licensemanagerusersubscriptions go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/licensemanagerusersubscriptions/go.sum b/service/licensemanagerusersubscriptions/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/licensemanagerusersubscriptions/go.sum +++ b/service/licensemanagerusersubscriptions/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/licensemanagerusersubscriptions/go_module_metadata.go b/service/licensemanagerusersubscriptions/go_module_metadata.go index 0c5bbb5a305..033655483a4 100644 --- a/service/licensemanagerusersubscriptions/go_module_metadata.go +++ b/service/licensemanagerusersubscriptions/go_module_metadata.go @@ -3,4 +3,4 @@ package licensemanagerusersubscriptions // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/licensemanagerusersubscriptions/options.go b/service/licensemanagerusersubscriptions/options.go index c0934e0c93d..d051a41e877 100644 --- a/service/licensemanagerusersubscriptions/options.go +++ b/service/licensemanagerusersubscriptions/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lightsail/CHANGELOG.md b/service/lightsail/CHANGELOG.md index 5c782c1bfe5..7b3de549a70 100644 --- a/service/lightsail/CHANGELOG.md +++ b/service/lightsail/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.32.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.32.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lightsail/api_client.go b/service/lightsail/api_client.go index 0265afff367..1adcf656298 100644 --- a/service/lightsail/api_client.go +++ b/service/lightsail/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lightsail/auth.go b/service/lightsail/auth.go index 5d157d7ba12..284426e2e49 100644 --- a/service/lightsail/auth.go +++ b/service/lightsail/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lightsail/go.mod b/service/lightsail/go.mod index c7483d80055..d1cd2a9c3ee 100644 --- a/service/lightsail/go.mod +++ b/service/lightsail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lightsail go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lightsail/go.sum b/service/lightsail/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lightsail/go.sum +++ b/service/lightsail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lightsail/go_module_metadata.go b/service/lightsail/go_module_metadata.go index d575b55b8b0..43347fe07d7 100644 --- a/service/lightsail/go_module_metadata.go +++ b/service/lightsail/go_module_metadata.go @@ -3,4 +3,4 @@ package lightsail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.0" +const goModuleVersion = "1.32.2" diff --git a/service/lightsail/options.go b/service/lightsail/options.go index 54438cc265c..cad1bc173ae 100644 --- a/service/lightsail/options.go +++ b/service/lightsail/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/location/CHANGELOG.md b/service/location/CHANGELOG.md index ef644bbcb37..f1887e1eb7f 100644 --- a/service/location/CHANGELOG.md +++ b/service/location/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.32.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.32.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/location/api_client.go b/service/location/api_client.go index dd75d512b38..3234c56295b 100644 --- a/service/location/api_client.go +++ b/service/location/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/location/auth.go b/service/location/auth.go index 3b6d59de962..4b02dab964d 100644 --- a/service/location/auth.go +++ b/service/location/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/location/go.mod b/service/location/go.mod index 15485b2f356..941573ae5e6 100644 --- a/service/location/go.mod +++ b/service/location/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/location go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/location/go.sum b/service/location/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/location/go.sum +++ b/service/location/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/location/go_module_metadata.go b/service/location/go_module_metadata.go index 76e2fb54f7a..3df07eda9cf 100644 --- a/service/location/go_module_metadata.go +++ b/service/location/go_module_metadata.go @@ -3,4 +3,4 @@ package location // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.0" +const goModuleVersion = "1.32.2" diff --git a/service/location/options.go b/service/location/options.go index 34d067f8e7f..811a297e4de 100644 --- a/service/location/options.go +++ b/service/location/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lookoutequipment/CHANGELOG.md b/service/lookoutequipment/CHANGELOG.md index a92e2e385ee..8e1870ec2fd 100644 --- a/service/lookoutequipment/CHANGELOG.md +++ b/service/lookoutequipment/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lookoutequipment/api_client.go b/service/lookoutequipment/api_client.go index 77e3c68a202..b3687ffc5f6 100644 --- a/service/lookoutequipment/api_client.go +++ b/service/lookoutequipment/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lookoutequipment/auth.go b/service/lookoutequipment/auth.go index 839f9b22ea1..60510b228a9 100644 --- a/service/lookoutequipment/auth.go +++ b/service/lookoutequipment/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lookoutequipment/go.mod b/service/lookoutequipment/go.mod index 2bdb07cd016..a9fd4c509b5 100644 --- a/service/lookoutequipment/go.mod +++ b/service/lookoutequipment/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutequipment go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutequipment/go.sum b/service/lookoutequipment/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lookoutequipment/go.sum +++ b/service/lookoutequipment/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutequipment/go_module_metadata.go b/service/lookoutequipment/go_module_metadata.go index 04072c4a550..50a61e72759 100644 --- a/service/lookoutequipment/go_module_metadata.go +++ b/service/lookoutequipment/go_module_metadata.go @@ -3,4 +3,4 @@ package lookoutequipment // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/lookoutequipment/options.go b/service/lookoutequipment/options.go index fbeb6bee445..0b15ee266d8 100644 --- a/service/lookoutequipment/options.go +++ b/service/lookoutequipment/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lookoutmetrics/CHANGELOG.md b/service/lookoutmetrics/CHANGELOG.md index 5a416f29b28..0f66d070e37 100644 --- a/service/lookoutmetrics/CHANGELOG.md +++ b/service/lookoutmetrics/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lookoutmetrics/api_client.go b/service/lookoutmetrics/api_client.go index f47e6ad01db..abbf5a4c717 100644 --- a/service/lookoutmetrics/api_client.go +++ b/service/lookoutmetrics/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lookoutmetrics/auth.go b/service/lookoutmetrics/auth.go index b18f7708d1a..2da4833417e 100644 --- a/service/lookoutmetrics/auth.go +++ b/service/lookoutmetrics/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lookoutmetrics/go.mod b/service/lookoutmetrics/go.mod index f6b34b7b514..92d4108f636 100644 --- a/service/lookoutmetrics/go.mod +++ b/service/lookoutmetrics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutmetrics go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutmetrics/go.sum b/service/lookoutmetrics/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lookoutmetrics/go.sum +++ b/service/lookoutmetrics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutmetrics/go_module_metadata.go b/service/lookoutmetrics/go_module_metadata.go index 43e42faeb58..b9b82c20348 100644 --- a/service/lookoutmetrics/go_module_metadata.go +++ b/service/lookoutmetrics/go_module_metadata.go @@ -3,4 +3,4 @@ package lookoutmetrics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/lookoutmetrics/options.go b/service/lookoutmetrics/options.go index 911ed351bd2..aa787b0a1ce 100644 --- a/service/lookoutmetrics/options.go +++ b/service/lookoutmetrics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/lookoutvision/CHANGELOG.md b/service/lookoutvision/CHANGELOG.md index a9dbccf6994..27b305af272 100644 --- a/service/lookoutvision/CHANGELOG.md +++ b/service/lookoutvision/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/lookoutvision/api_client.go b/service/lookoutvision/api_client.go index 112db696772..a6763d3cba6 100644 --- a/service/lookoutvision/api_client.go +++ b/service/lookoutvision/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/lookoutvision/auth.go b/service/lookoutvision/auth.go index 80f1d0ae551..eea9e6a7fb5 100644 --- a/service/lookoutvision/auth.go +++ b/service/lookoutvision/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/lookoutvision/go.mod b/service/lookoutvision/go.mod index b48bd85aea7..de61903f700 100644 --- a/service/lookoutvision/go.mod +++ b/service/lookoutvision/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/lookoutvision go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/lookoutvision/go.sum b/service/lookoutvision/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/lookoutvision/go.sum +++ b/service/lookoutvision/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/lookoutvision/go_module_metadata.go b/service/lookoutvision/go_module_metadata.go index 04423cf9cb7..01ac2e615de 100644 --- a/service/lookoutvision/go_module_metadata.go +++ b/service/lookoutvision/go_module_metadata.go @@ -3,4 +3,4 @@ package lookoutvision // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/lookoutvision/options.go b/service/lookoutvision/options.go index a439a437339..1819cef6163 100644 --- a/service/lookoutvision/options.go +++ b/service/lookoutvision/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/m2/CHANGELOG.md b/service/m2/CHANGELOG.md index 52cd7c349da..43f248aa5af 100644 --- a/service/m2/CHANGELOG.md +++ b/service/m2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/m2/api_client.go b/service/m2/api_client.go index a4520531354..075ea77cb70 100644 --- a/service/m2/api_client.go +++ b/service/m2/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/m2/auth.go b/service/m2/auth.go index 0f89d015825..c0daf260faa 100644 --- a/service/m2/auth.go +++ b/service/m2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/m2/go.mod b/service/m2/go.mod index 86fa5ebb137..0368ddd1ace 100644 --- a/service/m2/go.mod +++ b/service/m2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/m2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/m2/go.sum b/service/m2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/m2/go.sum +++ b/service/m2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/m2/go_module_metadata.go b/service/m2/go_module_metadata.go index 89b8566ae83..b28bcf510dc 100644 --- a/service/m2/go_module_metadata.go +++ b/service/m2/go_module_metadata.go @@ -3,4 +3,4 @@ package m2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/m2/options.go b/service/m2/options.go index e33519ce4f6..6f17c1df54e 100644 --- a/service/m2/options.go +++ b/service/m2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/machinelearning/CHANGELOG.md b/service/machinelearning/CHANGELOG.md index 47d302399e4..c5e10b8af25 100644 --- a/service/machinelearning/CHANGELOG.md +++ b/service/machinelearning/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/machinelearning/api_client.go b/service/machinelearning/api_client.go index 8fd5197230f..2697baac56a 100644 --- a/service/machinelearning/api_client.go +++ b/service/machinelearning/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/machinelearning/auth.go b/service/machinelearning/auth.go index e30cf05c827..4c0d6ada9c3 100644 --- a/service/machinelearning/auth.go +++ b/service/machinelearning/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/machinelearning/go.mod b/service/machinelearning/go.mod index 84db7faffbd..f60c5ad031b 100644 --- a/service/machinelearning/go.mod +++ b/service/machinelearning/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/machinelearning go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/machinelearning/go.sum b/service/machinelearning/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/machinelearning/go.sum +++ b/service/machinelearning/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/machinelearning/go_module_metadata.go b/service/machinelearning/go_module_metadata.go index 3966e383d1e..d28aa5a7e1a 100644 --- a/service/machinelearning/go_module_metadata.go +++ b/service/machinelearning/go_module_metadata.go @@ -3,4 +3,4 @@ package machinelearning // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/machinelearning/options.go b/service/machinelearning/options.go index d786171bbae..6e158adba6d 100644 --- a/service/machinelearning/options.go +++ b/service/machinelearning/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/macie2/CHANGELOG.md b/service/macie2/CHANGELOG.md index 74258406585..9f282101615 100644 --- a/service/macie2/CHANGELOG.md +++ b/service/macie2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.34.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.34.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/macie2/api_client.go b/service/macie2/api_client.go index e9befd7d938..e8c640db266 100644 --- a/service/macie2/api_client.go +++ b/service/macie2/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/macie2/auth.go b/service/macie2/auth.go index 73c6a9cc731..600cd18c88b 100644 --- a/service/macie2/auth.go +++ b/service/macie2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/macie2/go.mod b/service/macie2/go.mod index 47a900624f8..16ceb886fe0 100644 --- a/service/macie2/go.mod +++ b/service/macie2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/macie2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/macie2/go.sum b/service/macie2/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/macie2/go.sum +++ b/service/macie2/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/macie2/go_module_metadata.go b/service/macie2/go_module_metadata.go index 565a5fd7813..5c9481c1118 100644 --- a/service/macie2/go_module_metadata.go +++ b/service/macie2/go_module_metadata.go @@ -3,4 +3,4 @@ package macie2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.2" diff --git a/service/macie2/options.go b/service/macie2/options.go index 23ffa7a9c45..6cd8edf85d3 100644 --- a/service/macie2/options.go +++ b/service/macie2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/managedblockchain/CHANGELOG.md b/service/managedblockchain/CHANGELOG.md index 9f01c6c6ace..85433af1714 100644 --- a/service/managedblockchain/CHANGELOG.md +++ b/service/managedblockchain/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/managedblockchain/api_client.go b/service/managedblockchain/api_client.go index 8baff848787..88f3fec76c3 100644 --- a/service/managedblockchain/api_client.go +++ b/service/managedblockchain/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/managedblockchain/auth.go b/service/managedblockchain/auth.go index 87534d6869b..917207eae24 100644 --- a/service/managedblockchain/auth.go +++ b/service/managedblockchain/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/managedblockchain/go.mod b/service/managedblockchain/go.mod index 6565f3bffab..17c85bc4672 100644 --- a/service/managedblockchain/go.mod +++ b/service/managedblockchain/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/managedblockchain go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/managedblockchain/go.sum b/service/managedblockchain/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/managedblockchain/go.sum +++ b/service/managedblockchain/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/managedblockchain/go_module_metadata.go b/service/managedblockchain/go_module_metadata.go index 05a144a54c2..c0b2ade823f 100644 --- a/service/managedblockchain/go_module_metadata.go +++ b/service/managedblockchain/go_module_metadata.go @@ -3,4 +3,4 @@ package managedblockchain // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/managedblockchain/options.go b/service/managedblockchain/options.go index bff29798cbc..82c9a944680 100644 --- a/service/managedblockchain/options.go +++ b/service/managedblockchain/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/managedblockchainquery/CHANGELOG.md b/service/managedblockchainquery/CHANGELOG.md index 6fc5eade84d..8d21736ef15 100644 --- a/service/managedblockchainquery/CHANGELOG.md +++ b/service/managedblockchainquery/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/managedblockchainquery/api_client.go b/service/managedblockchainquery/api_client.go index d849d30c5f0..c96dc5bd91e 100644 --- a/service/managedblockchainquery/api_client.go +++ b/service/managedblockchainquery/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/managedblockchainquery/auth.go b/service/managedblockchainquery/auth.go index 163317af1b5..385efa2e9ce 100644 --- a/service/managedblockchainquery/auth.go +++ b/service/managedblockchainquery/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/managedblockchainquery/go.mod b/service/managedblockchainquery/go.mod index 9ae05ec7f30..71b411f6dfa 100644 --- a/service/managedblockchainquery/go.mod +++ b/service/managedblockchainquery/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/managedblockchainquery go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/managedblockchainquery/go.sum b/service/managedblockchainquery/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/managedblockchainquery/go.sum +++ b/service/managedblockchainquery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/managedblockchainquery/go_module_metadata.go b/service/managedblockchainquery/go_module_metadata.go index 0446cfa28fd..359f10ca7fc 100644 --- a/service/managedblockchainquery/go_module_metadata.go +++ b/service/managedblockchainquery/go_module_metadata.go @@ -3,4 +3,4 @@ package managedblockchainquery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/managedblockchainquery/options.go b/service/managedblockchainquery/options.go index 0d4489f8ea6..12b0058ad1f 100644 --- a/service/managedblockchainquery/options.go +++ b/service/managedblockchainquery/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplaceagreement/CHANGELOG.md b/service/marketplaceagreement/CHANGELOG.md new file mode 100644 index 00000000000..da9fe6b4977 --- /dev/null +++ b/service/marketplaceagreement/CHANGELOG.md @@ -0,0 +1,12 @@ +# v1.0.1 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.0.0 (2023-11-30) + +* **Release**: New AWS service client module +* **Feature**: The AWS Marketplace Agreement Service provides an API interface that helps AWS Marketplace sellers manage their agreements, including listing, filtering, and viewing details about their agreements. +* **Dependency Update**: Updated to the latest SDK module versions + diff --git a/service/marketplaceagreement/LICENSE.txt b/service/marketplaceagreement/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/marketplaceagreement/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/marketplaceagreement/api_client.go b/service/marketplaceagreement/api_client.go new file mode 100644 index 00000000000..2b651d5cadc --- /dev/null +++ b/service/marketplaceagreement/api_client.go @@ -0,0 +1,464 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/aws/defaults" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net" + "net/http" + "time" +) + +const ServiceID = "Marketplace Agreement" +const ServiceAPIVersion = "2020-03-01" + +// Client provides the API client to make operations call for AWS Marketplace +// Agreement Service. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + setResolvedDefaultsMode(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveEndpointResolverV2(&options) + + resolveAuthSchemeResolver(&options) + + for _, fn := range optFns { + fn(&options) + } + + resolveRetryer(&options) + + ignoreAnonymousAuth(&options) + + resolveAuthSchemes(&options) + + client := &Client{ + options: options, + } + + return client +} + +// Options returns a copy of the client configuration. +// +// Callers SHOULD NOT perform mutations on any inner structures within client +// config. Config overrides should instead be made on a per-operation basis through +// functional options. +func (c *Client) Options() Options { + return c.options.Copy() +} + +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + + for _, fn := range optFns { + fn(&options) + } + + finalizeRetryMaxAttemptOptions(&options, *c) + + finalizeClientEndpointResolverOptions(&options) + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type operationInputKey struct{} + +func setOperationInput(ctx context.Context, input interface{}) context.Context { + return middleware.WithStackValue(ctx, operationInputKey{}, input) +} + +func getOperationInput(ctx context.Context) interface{} { + return middleware.GetStackValue(ctx, operationInputKey{}) +} + +type setOperationInputMiddleware struct { +} + +func (*setOperationInputMiddleware) ID() string { + return "setOperationInput" +} + +func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + ctx = setOperationInput(ctx, in.Parameters) + return next.HandleSerialize(ctx, in) +} + +func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { + if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { + return fmt.Errorf("add ResolveAuthScheme: %w", err) + } + if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { + return fmt.Errorf("add GetIdentity: %v", err) + } + if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil { + return fmt.Errorf("add ResolveEndpointV2: %v", err) + } + if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { + return fmt.Errorf("add Signing: %w", err) + } + return nil +} +func resolveAuthSchemeResolver(options *Options) { + if options.AuthSchemeResolver == nil { + options.AuthSchemeResolver = &defaultAuthSchemeResolver{} + } +} + +func resolveAuthSchemes(options *Options) { + if options.AuthSchemes == nil { + options.AuthSchemes = []smithyhttp.AuthScheme{ + internalauth.NewHTTPAuthScheme("aws.auth#sigv4", &internalauthsmithy.V4SignerAdapter{ + Signer: options.HTTPSignerV4, + Logger: options.Logger, + LogSigning: options.ClientLogMode.IsSigning(), + }), + } + } +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +type legacyEndpointContextSetter struct { + LegacyResolver EndpointResolver +} + +func (*legacyEndpointContextSetter) ID() string { + return "legacyEndpointContextSetter" +} + +func (m *legacyEndpointContextSetter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.LegacyResolver != nil { + ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, true) + } + + return next.HandleInitialize(ctx, in) + +} +func addlegacyEndpointContextSetter(stack *middleware.Stack, o Options) error { + return stack.Initialize.Add(&legacyEndpointContextSetter{ + LegacyResolver: o.EndpointResolver, + }, middleware.Before) +} + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +func setResolvedDefaultsMode(o *Options) { + if len(o.resolvedDefaultsMode) > 0 { + return + } + + var mode aws.DefaultsMode + mode.SetFromString(string(o.DefaultsMode)) + + if mode == aws.DefaultsModeAuto { + mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment) + } + + o.resolvedDefaultsMode = mode +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSRetryMaxAttempts(cfg, &opts) + resolveAWSRetryMode(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + resolveUseDualStackEndpoint(cfg, &opts) + resolveUseFIPSEndpoint(cfg, &opts) + resolveBaseEndpoint(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + var buildable *awshttp.BuildableClient + + if o.HTTPClient != nil { + var ok bool + buildable, ok = o.HTTPClient.(*awshttp.BuildableClient) + if !ok { + return + } + } else { + buildable = awshttp.NewBuildableClient() + } + + modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) + if err == nil { + buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) { + if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok { + dialer.Timeout = dialerTimeout + } + }) + + buildable = buildable.WithTransportOptions(func(transport *http.Transport) { + if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok { + transport.TLSHandshakeTimeout = tlsHandshakeTimeout + } + }) + } + + o.HTTPClient = buildable +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + + if len(o.RetryMode) == 0 { + modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) + if err == nil { + o.RetryMode = modeConfig.RetryMode + } + } + if len(o.RetryMode) == 0 { + o.RetryMode = aws.RetryModeStandard + } + + var standardOptions []func(*retry.StandardOptions) + if v := o.RetryMaxAttempts; v != 0 { + standardOptions = append(standardOptions, func(so *retry.StandardOptions) { + so.MaxAttempts = v + }) + } + + switch o.RetryMode { + case aws.RetryModeAdaptive: + var adaptiveOptions []func(*retry.AdaptiveModeOptions) + if len(standardOptions) != 0 { + adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) { + ao.StandardOptions = append(ao.StandardOptions, standardOptions...) + }) + } + o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...) + + default: + o.Retryer = retry.NewStandard(standardOptions...) + } +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSRetryMode(cfg aws.Config, o *Options) { + if len(cfg.RetryMode) == 0 { + return + } + o.RetryMode = cfg.RetryMode +} +func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) { + if cfg.RetryMaxAttempts == 0 { + return + } + o.RetryMaxAttempts = cfg.RetryMaxAttempts +} + +func finalizeRetryMaxAttemptOptions(o *Options, client Client) { + if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts { + return + } + + o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts) +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions) +} + +func addClientUserAgent(stack *middleware.Stack, options Options) error { + if err := awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "marketplaceagreement", goModuleVersion)(stack); err != nil { + return err + } + + if len(options.AppID) > 0 { + return awsmiddleware.AddSDKAgentKey(awsmiddleware.ApplicationIdentifier, options.AppID)(stack) + } + + return nil +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +// resolves dual-stack endpoint configuration +func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseDualStackEndpoint = value + } + return nil +} + +// resolves FIPS endpoint configuration +func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseFIPSEndpoint = value + } + return nil +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} + +type disableHTTPSMiddleware struct { + DisableHTTPS bool +} + +func (*disableHTTPSMiddleware) ID() string { + return "disableHTTPS" +} + +func (m *disableHTTPSMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.DisableHTTPS && !smithyhttp.GetHostnameImmutable(ctx) { + req.URL.Scheme = "http" + } + + return next.HandleFinalize(ctx, in) +} + +func addDisableHTTPSMiddleware(stack *middleware.Stack, o Options) error { + return stack.Finalize.Insert(&disableHTTPSMiddleware{ + DisableHTTPS: o.EndpointOptions.DisableHTTPS, + }, "ResolveEndpointV2", middleware.After) +} diff --git a/service/marketplaceagreement/api_client_test.go b/service/marketplaceagreement/api_client_test.go new file mode 100644 index 00000000000..5075a5b2a81 --- /dev/null +++ b/service/marketplaceagreement/api_client_test.go @@ -0,0 +1,123 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io/ioutil" + "net/http" + "strings" + "testing" +) + +func TestClient_resolveRetryOptions(t *testing.T) { + nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) { + return &http.Response{ + StatusCode: 200, + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader("")), + }, nil + }) + + cases := map[string]struct { + defaultsMode aws.DefaultsMode + retryer aws.Retryer + retryMaxAttempts int + opRetryMaxAttempts *int + retryMode aws.RetryMode + expectClientRetryMode aws.RetryMode + expectClientMaxAttempts int + expectOpMaxAttempts int + }{ + "defaults": { + defaultsMode: aws.DefaultsModeStandard, + expectClientRetryMode: aws.RetryModeStandard, + expectClientMaxAttempts: 3, + expectOpMaxAttempts: 3, + }, + "custom default retry": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + "custom op max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(2), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 2, + }, + "custom op no change max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(10), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + "custom op 0 max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(0), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + client := NewFromConfig(aws.Config{ + DefaultsMode: c.defaultsMode, + Retryer: func() func() aws.Retryer { + if c.retryer == nil { + return nil + } + + return func() aws.Retryer { return c.retryer } + }(), + HTTPClient: nopClient, + RetryMaxAttempts: c.retryMaxAttempts, + RetryMode: c.retryMode, + }) + + if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a { + t.Errorf("expect %v retry mode, got %v", e, a) + } + if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a { + t.Errorf("expect %v max attempts, got %v", e, a) + } + + _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{}, + []func(*Options){ + func(o *Options) { + if c.opRetryMaxAttempts == nil { + return + } + o.RetryMaxAttempts = *c.opRetryMaxAttempts + }, + }, + func(s *middleware.Stack, o Options) error { + s.Initialize.Clear() + s.Serialize.Clear() + s.Build.Clear() + s.Finalize.Clear() + s.Deserialize.Clear() + + if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a { + t.Errorf("expect %v op max attempts, got %v", e, a) + } + return nil + }) + if err != nil { + t.Fatalf("expect no operation error, got %v", err) + } + }) + } +} diff --git a/service/marketplaceagreement/api_op_DescribeAgreement.go b/service/marketplaceagreement/api_op_DescribeAgreement.go new file mode 100644 index 00000000000..c3e6e0c1aee --- /dev/null +++ b/service/marketplaceagreement/api_op_DescribeAgreement.go @@ -0,0 +1,184 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Provides details about an agreement, such as the proposer, acceptor, start +// date, and end date. +func (c *Client) DescribeAgreement(ctx context.Context, params *DescribeAgreementInput, optFns ...func(*Options)) (*DescribeAgreementOutput, error) { + if params == nil { + params = &DescribeAgreementInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeAgreement", params, optFns, c.addOperationDescribeAgreementMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeAgreementOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeAgreementInput struct { + + // The unique identifier of the agreement. + // + // This member is required. + AgreementId *string + + noSmithyDocumentSerde +} + +type DescribeAgreementOutput struct { + + // The date and time the offer was accepted or the agreement was created. + // AcceptanceTime and StartTime can differ for future dated agreements (FDAs). + AcceptanceTime *time.Time + + // The details of the party accepting the agreement terms. This is commonly the + // buyer for PurchaseAgreement . + Acceptor *types.Acceptor + + // The unique identifier of the agreement. + AgreementId *string + + // The type of agreement. Values are PurchaseAgreement or VendorInsightsAgreement . + AgreementType *string + + // The date and time when the agreement ends. The field is null for pay-as-you-go + // agreements, which don’t have end dates. + EndTime *time.Time + + // The estimated cost of the agreement. + EstimatedCharges *types.EstimatedCharges + + // A summary of the proposal received from the proposer. + ProposalSummary *types.ProposalSummary + + // The details of the party proposing the agreement terms. This is commonly the + // seller for PurchaseAgreement . + Proposer *types.Proposer + + // The date and time when the agreement starts. + StartTime *time.Time + + // The current status of the agreement. Statuses include: + // - ACTIVE – The terms of the agreement are active. + // - ARCHIVED – The agreement ended without a specified reason. + // - CANCELLED – The acceptor ended the agreement before the defined end date. + // - EXPIRED – The agreement ended on the defined end date. + // - RENEWED – The agreement was renewed into a new agreement (for example, an + // auto-renewal). + // - REPLACED – The agreement was replaced using an agreement replacement offer. + // - ROLLED_BACK (Only applicable to inactive agreement revisions) – The + // agreement revision has been rolled back because of an error. An earlier revision + // is now active. + // - SUPERCEDED (Only applicable to inactive agreement revisions) – The agreement + // revision is no longer active and another agreement revision is now active. + // - TERMINATED – The agreement ended before the defined end date because of an + // AWS termination (for example, a payment failure). + Status types.AgreementStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeAgreementMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson10_serializeOpDescribeAgreement{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpDescribeAgreement{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAgreement"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDescribeAgreementValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAgreement(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeAgreement(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeAgreement", + } +} diff --git a/service/marketplaceagreement/api_op_GetAgreementTerms.go b/service/marketplaceagreement/api_op_GetAgreementTerms.go new file mode 100644 index 00000000000..2588ef349ce --- /dev/null +++ b/service/marketplaceagreement/api_op_GetAgreementTerms.go @@ -0,0 +1,252 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Obtains details about the terms in an agreement that you participated in as +// proposer or acceptor. The details include: +// +// - TermType – The type of term, such as LegalTerm , RenewalTerm , or +// ConfigurableUpfrontPricingTerm . +// +// - TermID – The ID of the particular term, which is common between offer and +// agreement. +// +// - TermPayload – The key information contained in the term, such as the EULA +// for LegalTerm or pricing and dimensions for various pricing terms, such as +// ConfigurableUpfrontPricingTerm or UsageBasedPricingTerm . +// +// - Configuration – The buyer/acceptor's selection at the time of agreement +// creation, such as the number of units purchased for a dimension or setting the +// EnableAutoRenew flag. +func (c *Client) GetAgreementTerms(ctx context.Context, params *GetAgreementTermsInput, optFns ...func(*Options)) (*GetAgreementTermsOutput, error) { + if params == nil { + params = &GetAgreementTermsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetAgreementTerms", params, optFns, c.addOperationGetAgreementTermsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetAgreementTermsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetAgreementTermsInput struct { + + // The unique identifier of the agreement. + // + // This member is required. + AgreementId *string + + // The maximum number of agreements to return in the response. + MaxResults *int32 + + // A token to specify where to start pagination + NextToken *string + + noSmithyDocumentSerde +} + +type GetAgreementTermsOutput struct { + + // A subset of terms proposed by the proposer that have been accepted by the + // acceptor as part of the agreement creation. + AcceptedTerms []types.AcceptedTerm + + // A token to specify where to start pagination + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetAgreementTermsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson10_serializeOpGetAgreementTerms{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpGetAgreementTerms{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetAgreementTerms"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetAgreementTermsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetAgreementTerms(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// GetAgreementTermsAPIClient is a client that implements the GetAgreementTerms +// operation. +type GetAgreementTermsAPIClient interface { + GetAgreementTerms(context.Context, *GetAgreementTermsInput, ...func(*Options)) (*GetAgreementTermsOutput, error) +} + +var _ GetAgreementTermsAPIClient = (*Client)(nil) + +// GetAgreementTermsPaginatorOptions is the paginator options for GetAgreementTerms +type GetAgreementTermsPaginatorOptions struct { + // The maximum number of agreements to return in the response. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// GetAgreementTermsPaginator is a paginator for GetAgreementTerms +type GetAgreementTermsPaginator struct { + options GetAgreementTermsPaginatorOptions + client GetAgreementTermsAPIClient + params *GetAgreementTermsInput + nextToken *string + firstPage bool +} + +// NewGetAgreementTermsPaginator returns a new GetAgreementTermsPaginator +func NewGetAgreementTermsPaginator(client GetAgreementTermsAPIClient, params *GetAgreementTermsInput, optFns ...func(*GetAgreementTermsPaginatorOptions)) *GetAgreementTermsPaginator { + if params == nil { + params = &GetAgreementTermsInput{} + } + + options := GetAgreementTermsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &GetAgreementTermsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *GetAgreementTermsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next GetAgreementTerms page. +func (p *GetAgreementTermsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetAgreementTermsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.GetAgreementTerms(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opGetAgreementTerms(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetAgreementTerms", + } +} diff --git a/service/marketplaceagreement/api_op_SearchAgreements.go b/service/marketplaceagreement/api_op_SearchAgreements.go new file mode 100644 index 00000000000..38af4128dc3 --- /dev/null +++ b/service/marketplaceagreement/api_op_SearchAgreements.go @@ -0,0 +1,276 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Searches across all agreements that a proposer or an acceptor has in AWS +// Marketplace. The search returns a list of agreements with basic agreement +// information. The following filter combinations are supported: +// - PartyType as Proposer + AgreementType + ResourceIdentifier +// - PartyType as Proposer + AgreementType + OfferId +// - PartyType as Proposer + AgreementType + AcceptorAccountId +// - PartyType as Proposer + AgreementType + Status +// - PartyType as Proposer + AgreementType + ResourceIdentifier + Status +// - PartyType as Proposer + AgreementType + OfferId + Status +// - PartyType as Proposer + AgreementType + AcceptorAccountId + Status +// - PartyType as Proposer + AgreementType + ResourceType + Status +// - PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceType + +// Status +// - PartyType as Proposer + AgreementType + AcceptorAccountId + OfferId +// - PartyType as Proposer + AgreementType + AcceptorAccountId + OfferId + Status +// - PartyType as Proposer + AgreementType + AcceptorAccountId + +// ResourceIdentifier +// - PartyType as Proposer + AgreementType + AcceptorAccountId + +// ResourceIdentifier + Status +// - PartyType as Proposer + AgreementType + AcceptorAccountId + ResourceType +func (c *Client) SearchAgreements(ctx context.Context, params *SearchAgreementsInput, optFns ...func(*Options)) (*SearchAgreementsOutput, error) { + if params == nil { + params = &SearchAgreementsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "SearchAgreements", params, optFns, c.addOperationSearchAgreementsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*SearchAgreementsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type SearchAgreementsInput struct { + + // The catalog in which the agreement was created. + Catalog *string + + // The filter name and value pair used to return a specific list of results. The + // following filters are supported: + // - ResourceIdentifier – The unique identifier of the resource. + // - ResourceType – Type of the resource, which is the product ( AmiProduct , + // ContainerProduct , or SaaSProduct ). + // - PartyType – The party type (either Acceptor or Proposer ) of the caller. For + // agreements where the caller is the proposer, use the Proposer filter. For + // agreements where the caller is the acceptor, use the Acceptor filter. + // - AcceptorAccountId – The AWS account ID of the party accepting the agreement + // terms. + // - OfferId – The unique identifier of the offer in which the terms are + // registered in the agreement token. + // - Status – The current status of the agreement. Values include ACTIVE , + // ARCHIVED , CANCELLED , EXPIRED , RENEWED , REPLACED , and TERMINATED . + // - BeforeEndTime – A date used to filter agreements with a date before the + // endTime of an agreement. + // - AfterEndTime – A date used to filter agreements with a date after the + // endTime of an agreement. + // - AgreementType – The type of agreement. Values include PurchaseAgreement or + // VendorInsightsAgreement . + Filters []types.Filter + + // The maximum number of agreements to return in the response. + MaxResults *int32 + + // A token to specify where to start pagination. + NextToken *string + + // An object that contains the SortBy and SortOrder attributes. + Sort *types.Sort + + noSmithyDocumentSerde +} + +type SearchAgreementsOutput struct { + + // A summary of the agreement, including top-level attributes (for example, the + // agreement ID, version, proposer, and acceptor). + AgreementViewSummaries []types.AgreementViewSummary + + // The token used for pagination. The field is null if there are no more results. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationSearchAgreementsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson10_serializeOpSearchAgreements{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson10_deserializeOpSearchAgreements{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "SearchAgreements"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opSearchAgreements(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// SearchAgreementsAPIClient is a client that implements the SearchAgreements +// operation. +type SearchAgreementsAPIClient interface { + SearchAgreements(context.Context, *SearchAgreementsInput, ...func(*Options)) (*SearchAgreementsOutput, error) +} + +var _ SearchAgreementsAPIClient = (*Client)(nil) + +// SearchAgreementsPaginatorOptions is the paginator options for SearchAgreements +type SearchAgreementsPaginatorOptions struct { + // The maximum number of agreements to return in the response. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// SearchAgreementsPaginator is a paginator for SearchAgreements +type SearchAgreementsPaginator struct { + options SearchAgreementsPaginatorOptions + client SearchAgreementsAPIClient + params *SearchAgreementsInput + nextToken *string + firstPage bool +} + +// NewSearchAgreementsPaginator returns a new SearchAgreementsPaginator +func NewSearchAgreementsPaginator(client SearchAgreementsAPIClient, params *SearchAgreementsInput, optFns ...func(*SearchAgreementsPaginatorOptions)) *SearchAgreementsPaginator { + if params == nil { + params = &SearchAgreementsInput{} + } + + options := SearchAgreementsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &SearchAgreementsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *SearchAgreementsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next SearchAgreements page. +func (p *SearchAgreementsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*SearchAgreementsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.SearchAgreements(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opSearchAgreements(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "SearchAgreements", + } +} diff --git a/service/marketplaceagreement/auth.go b/service/marketplaceagreement/auth.go new file mode 100644 index 00000000000..331dd8d0bf8 --- /dev/null +++ b/service/marketplaceagreement/auth.go @@ -0,0 +1,256 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + smithy "github.com/aws/smithy-go" + smithyauth "github.com/aws/smithy-go/auth" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +func bindAuthParamsRegion(params *AuthResolverParameters, _ interface{}, options Options) { + params.Region = options.Region +} + +type setLegacyContextSigningOptionsMiddleware struct { +} + +func (*setLegacyContextSigningOptionsMiddleware) ID() string { + return "setLegacyContextSigningOptions" +} + +func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + rscheme := getResolvedAuthScheme(ctx) + schemeID := rscheme.Scheme.SchemeID() + + if sn := awsmiddleware.GetSigningName(ctx); sn != "" { + if schemeID == "aws.auth#sigv4" { + smithyhttp.SetSigV4SigningName(&rscheme.SignerProperties, sn) + } else if schemeID == "aws.auth#sigv4a" { + smithyhttp.SetSigV4ASigningName(&rscheme.SignerProperties, sn) + } + } + + if sr := awsmiddleware.GetSigningRegion(ctx); sr != "" { + if schemeID == "aws.auth#sigv4" { + smithyhttp.SetSigV4SigningRegion(&rscheme.SignerProperties, sr) + } else if schemeID == "aws.auth#sigv4a" { + smithyhttp.SetSigV4ASigningRegions(&rscheme.SignerProperties, []string{sr}) + } + } + + return next.HandleFinalize(ctx, in) +} + +func addSetLegacyContextSigningOptionsMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&setLegacyContextSigningOptionsMiddleware{}, "Signing", middleware.Before) +} + +// AuthResolverParameters contains the set of inputs necessary for auth scheme +// resolution. +type AuthResolverParameters struct { + // The name of the operation being invoked. + Operation string + + // The region in which the operation is being invoked. + Region string +} + +func bindAuthResolverParams(operation string, input interface{}, options Options) *AuthResolverParameters { + params := &AuthResolverParameters{ + Operation: operation, + } + + bindAuthParamsRegion(params, input, options) + + return params +} + +// AuthSchemeResolver returns a set of possible authentication options for an +// operation. +type AuthSchemeResolver interface { + ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error) +} + +type defaultAuthSchemeResolver struct{} + +var _ AuthSchemeResolver = (*defaultAuthSchemeResolver)(nil) + +func (*defaultAuthSchemeResolver) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) { + if overrides, ok := operationAuthOptions[params.Operation]; ok { + return overrides(params), nil + } + return serviceAuthOptions(params), nil +} + +var operationAuthOptions = map[string]func(*AuthResolverParameters) []*smithyauth.Option{} + +func serviceAuthOptions(params *AuthResolverParameters) []*smithyauth.Option { + return []*smithyauth.Option{ + { + SchemeID: smithyauth.SchemeIDSigV4, + SignerProperties: func() smithy.Properties { + var props smithy.Properties + smithyhttp.SetSigV4SigningName(&props, "aws-marketplace") + smithyhttp.SetSigV4SigningRegion(&props, params.Region) + return props + }(), + }, + } +} + +type resolveAuthSchemeMiddleware struct { + operation string + options Options +} + +func (*resolveAuthSchemeMiddleware) ID() string { + return "ResolveAuthScheme" +} + +func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) + options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) + } + + scheme, ok := m.selectScheme(options) + if !ok { + return out, metadata, fmt.Errorf("could not select an auth scheme") + } + + ctx = setResolvedAuthScheme(ctx, scheme) + return next.HandleFinalize(ctx, in) +} + +func (m *resolveAuthSchemeMiddleware) selectScheme(options []*smithyauth.Option) (*resolvedAuthScheme, bool) { + for _, option := range options { + if option.SchemeID == smithyauth.SchemeIDAnonymous { + return newResolvedAuthScheme(smithyhttp.NewAnonymousScheme(), option), true + } + + for _, scheme := range m.options.AuthSchemes { + if scheme.SchemeID() != option.SchemeID { + continue + } + + if scheme.IdentityResolver(m.options) != nil { + return newResolvedAuthScheme(scheme, option), true + } + } + } + + return nil, false +} + +type resolvedAuthSchemeKey struct{} + +type resolvedAuthScheme struct { + Scheme smithyhttp.AuthScheme + IdentityProperties smithy.Properties + SignerProperties smithy.Properties +} + +func newResolvedAuthScheme(scheme smithyhttp.AuthScheme, option *smithyauth.Option) *resolvedAuthScheme { + return &resolvedAuthScheme{ + Scheme: scheme, + IdentityProperties: option.IdentityProperties, + SignerProperties: option.SignerProperties, + } +} + +func setResolvedAuthScheme(ctx context.Context, scheme *resolvedAuthScheme) context.Context { + return middleware.WithStackValue(ctx, resolvedAuthSchemeKey{}, scheme) +} + +func getResolvedAuthScheme(ctx context.Context) *resolvedAuthScheme { + v, _ := middleware.GetStackValue(ctx, resolvedAuthSchemeKey{}).(*resolvedAuthScheme) + return v +} + +type getIdentityMiddleware struct { + options Options +} + +func (*getIdentityMiddleware) ID() string { + return "GetIdentity" +} + +func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + resolver := rscheme.Scheme.IdentityResolver(m.options) + if resolver == nil { + return out, metadata, fmt.Errorf("no identity resolver") + } + + identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) + if err != nil { + return out, metadata, fmt.Errorf("get identity: %w", err) + } + + ctx = setIdentity(ctx, identity) + return next.HandleFinalize(ctx, in) +} + +type identityKey struct{} + +func setIdentity(ctx context.Context, identity smithyauth.Identity) context.Context { + return middleware.WithStackValue(ctx, identityKey{}, identity) +} + +func getIdentity(ctx context.Context) smithyauth.Identity { + v, _ := middleware.GetStackValue(ctx, identityKey{}).(smithyauth.Identity) + return v +} + +type signRequestMiddleware struct { +} + +func (*signRequestMiddleware) ID() string { + return "Signing" +} + +func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request) + } + + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + identity := getIdentity(ctx) + if identity == nil { + return out, metadata, fmt.Errorf("no identity") + } + + signer := rscheme.Scheme.Signer() + if signer == nil { + return out, metadata, fmt.Errorf("no signer") + } + + if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { + return out, metadata, fmt.Errorf("sign request: %w", err) + } + + return next.HandleFinalize(ctx, in) +} diff --git a/service/marketplaceagreement/deserializers.go b/service/marketplaceagreement/deserializers.go new file mode 100644 index 00000000000..d627ccd70a7 --- /dev/null +++ b/service/marketplaceagreement/deserializers.go @@ -0,0 +1,3113 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "strings" +) + +type awsAwsjson10_deserializeOpDescribeAgreement struct { +} + +func (*awsAwsjson10_deserializeOpDescribeAgreement) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpDescribeAgreement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorDescribeAgreement(response, &metadata) + } + output := &DescribeAgreementOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentDescribeAgreementOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorDescribeAgreement(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpGetAgreementTerms struct { +} + +func (*awsAwsjson10_deserializeOpGetAgreementTerms) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpGetAgreementTerms) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorGetAgreementTerms(response, &metadata) + } + output := &GetAgreementTermsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentGetAgreementTermsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorGetAgreementTerms(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson10_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson10_deserializeOpSearchAgreements struct { +} + +func (*awsAwsjson10_deserializeOpSearchAgreements) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson10_deserializeOpSearchAgreements) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson10_deserializeOpErrorSearchAgreements(response, &metadata) + } + output := &SearchAgreementsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson10_deserializeOpDocumentSearchAgreementsOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson10_deserializeOpErrorSearchAgreements(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson10_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson10_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson10_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson10_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsjson10_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.AccessDeniedException{} + err := awsAwsjson10_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.InternalServerException{} + err := awsAwsjson10_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ResourceNotFoundException{} + err := awsAwsjson10_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ThrottlingException{} + err := awsAwsjson10_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ValidationException{} + err := awsAwsjson10_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson10_deserializeDocumentAcceptedTerm(v *types.AcceptedTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.AcceptedTerm +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "byolPricingTerm": + var mv types.ByolPricingTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentByolPricingTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberByolPricingTerm{Value: mv} + break loop + + case "configurableUpfrontPricingTerm": + var mv types.ConfigurableUpfrontPricingTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentConfigurableUpfrontPricingTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberConfigurableUpfrontPricingTerm{Value: mv} + break loop + + case "fixedUpfrontPricingTerm": + var mv types.FixedUpfrontPricingTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentFixedUpfrontPricingTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberFixedUpfrontPricingTerm{Value: mv} + break loop + + case "freeTrialPricingTerm": + var mv types.FreeTrialPricingTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentFreeTrialPricingTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberFreeTrialPricingTerm{Value: mv} + break loop + + case "legalTerm": + var mv types.LegalTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentLegalTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberLegalTerm{Value: mv} + break loop + + case "paymentScheduleTerm": + var mv types.PaymentScheduleTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentPaymentScheduleTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberPaymentScheduleTerm{Value: mv} + break loop + + case "recurringPaymentTerm": + var mv types.RecurringPaymentTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentRecurringPaymentTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberRecurringPaymentTerm{Value: mv} + break loop + + case "renewalTerm": + var mv types.RenewalTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentRenewalTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberRenewalTerm{Value: mv} + break loop + + case "supportTerm": + var mv types.SupportTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentSupportTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberSupportTerm{Value: mv} + break loop + + case "usageBasedPricingTerm": + var mv types.UsageBasedPricingTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentUsageBasedPricingTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberUsageBasedPricingTerm{Value: mv} + break loop + + case "validityTerm": + var mv types.ValidityTerm + destAddr := &mv + if err := awsAwsjson10_deserializeDocumentValidityTerm(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.AcceptedTermMemberValidityTerm{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsAwsjson10_deserializeDocumentAcceptedTermList(v *[]types.AcceptedTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AcceptedTerm + if *v == nil { + cv = []types.AcceptedTerm{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AcceptedTerm + if err := awsAwsjson10_deserializeDocumentAcceptedTerm(&col, value); err != nil { + return err + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentAcceptor(v **types.Acceptor, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Acceptor + if *v == nil { + sv = &types.Acceptor{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "accountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) + } + sv.AccountId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "requestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentAgreementViewSummary(v **types.AgreementViewSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AgreementViewSummary + if *v == nil { + sv = &types.AgreementViewSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "acceptanceTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.AcceptanceTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "acceptor": + if err := awsAwsjson10_deserializeDocumentAcceptor(&sv.Acceptor, value); err != nil { + return err + } + + case "agreementId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.AgreementId = ptr.String(jtv) + } + + case "agreementType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AgreementType to be of type string, got %T instead", value) + } + sv.AgreementType = ptr.String(jtv) + } + + case "endTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "proposalSummary": + if err := awsAwsjson10_deserializeDocumentProposalSummary(&sv.ProposalSummary, value); err != nil { + return err + } + + case "proposer": + if err := awsAwsjson10_deserializeDocumentProposer(&sv.Proposer, value); err != nil { + return err + } + + case "startTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AgreementStatus to be of type string, got %T instead", value) + } + sv.Status = types.AgreementStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentAgreementViewSummaryList(v *[]types.AgreementViewSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.AgreementViewSummary + if *v == nil { + cv = []types.AgreementViewSummary{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.AgreementViewSummary + destAddr := &col + if err := awsAwsjson10_deserializeDocumentAgreementViewSummary(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentByolPricingTerm(v **types.ByolPricingTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ByolPricingTerm + if *v == nil { + sv = &types.ByolPricingTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentConfigurableUpfrontPricingTerm(v **types.ConfigurableUpfrontPricingTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConfigurableUpfrontPricingTerm + if *v == nil { + sv = &types.ConfigurableUpfrontPricingTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuration": + if err := awsAwsjson10_deserializeDocumentConfigurableUpfrontPricingTermConfiguration(&sv.Configuration, value); err != nil { + return err + } + + case "currencyCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + } + sv.CurrencyCode = ptr.String(jtv) + } + + case "rateCards": + if err := awsAwsjson10_deserializeDocumentConfigurableUpfrontRateCardList(&sv.RateCards, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentConfigurableUpfrontPricingTermConfiguration(v **types.ConfigurableUpfrontPricingTermConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConfigurableUpfrontPricingTermConfiguration + if *v == nil { + sv = &types.ConfigurableUpfrontPricingTermConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dimensions": + if err := awsAwsjson10_deserializeDocumentDimensionList(&sv.Dimensions, value); err != nil { + return err + } + + case "selectorValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.SelectorValue = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentConfigurableUpfrontRateCardItem(v **types.ConfigurableUpfrontRateCardItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConfigurableUpfrontRateCardItem + if *v == nil { + sv = &types.ConfigurableUpfrontRateCardItem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "constraints": + if err := awsAwsjson10_deserializeDocumentConstraints(&sv.Constraints, value); err != nil { + return err + } + + case "rateCard": + if err := awsAwsjson10_deserializeDocumentRateCardList(&sv.RateCard, value); err != nil { + return err + } + + case "selector": + if err := awsAwsjson10_deserializeDocumentSelector(&sv.Selector, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentConfigurableUpfrontRateCardList(v *[]types.ConfigurableUpfrontRateCardItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ConfigurableUpfrontRateCardItem + if *v == nil { + cv = []types.ConfigurableUpfrontRateCardItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ConfigurableUpfrontRateCardItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentConfigurableUpfrontRateCardItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentConstraints(v **types.Constraints, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Constraints + if *v == nil { + sv = &types.Constraints{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "multipleDimensionSelection": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.MultipleDimensionSelection = ptr.String(jtv) + } + + case "quantityConfiguration": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.QuantityConfiguration = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentDimension(v **types.Dimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Dimension + if *v == nil { + sv = &types.Dimension{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dimensionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.DimensionKey = ptr.String(jtv) + } + + case "dimensionValue": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected ZeroValueInteger to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DimensionValue = int32(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentDimensionList(v *[]types.Dimension, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Dimension + if *v == nil { + cv = []types.Dimension{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Dimension + destAddr := &col + if err := awsAwsjson10_deserializeDocumentDimension(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentDocumentItem(v **types.DocumentItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DocumentItem + if *v == nil { + sv = &types.DocumentItem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + case "url": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Url = ptr.String(jtv) + } + + case "version": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Version = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentDocumentList(v *[]types.DocumentItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.DocumentItem + if *v == nil { + cv = []types.DocumentItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.DocumentItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentDocumentItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentEstimatedCharges(v **types.EstimatedCharges, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EstimatedCharges + if *v == nil { + sv = &types.EstimatedCharges{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "agreementValue": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.AgreementValue = ptr.String(jtv) + } + + case "currencyCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + } + sv.CurrencyCode = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentFixedUpfrontPricingTerm(v **types.FixedUpfrontPricingTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FixedUpfrontPricingTerm + if *v == nil { + sv = &types.FixedUpfrontPricingTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "currencyCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + } + sv.CurrencyCode = ptr.String(jtv) + } + + case "duration": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Duration = ptr.String(jtv) + } + + case "grants": + if err := awsAwsjson10_deserializeDocumentGrantList(&sv.Grants, value); err != nil { + return err + } + + case "price": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Price = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentFreeTrialPricingTerm(v **types.FreeTrialPricingTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.FreeTrialPricingTerm + if *v == nil { + sv = &types.FreeTrialPricingTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "duration": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Duration = ptr.String(jtv) + } + + case "grants": + if err := awsAwsjson10_deserializeDocumentGrantList(&sv.Grants, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentGrantItem(v **types.GrantItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GrantItem + if *v == nil { + sv = &types.GrantItem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dimensionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.DimensionKey = ptr.String(jtv) + } + + case "maxQuantity": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected PositiveIntegerWithDefaultValueOne to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaxQuantity = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentGrantList(v *[]types.GrantItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.GrantItem + if *v == nil { + cv = []types.GrantItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.GrantItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentGrantItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "requestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentLegalTerm(v **types.LegalTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.LegalTerm + if *v == nil { + sv = &types.LegalTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "documents": + if err := awsAwsjson10_deserializeDocumentDocumentList(&sv.Documents, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentPaymentScheduleTerm(v **types.PaymentScheduleTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.PaymentScheduleTerm + if *v == nil { + sv = &types.PaymentScheduleTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "currencyCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + } + sv.CurrencyCode = ptr.String(jtv) + } + + case "schedule": + if err := awsAwsjson10_deserializeDocumentScheduleList(&sv.Schedule, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentProposalSummary(v **types.ProposalSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ProposalSummary + if *v == nil { + sv = &types.ProposalSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "offerId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OfferId to be of type string, got %T instead", value) + } + sv.OfferId = ptr.String(jtv) + } + + case "resources": + if err := awsAwsjson10_deserializeDocumentResources(&sv.Resources, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentProposer(v **types.Proposer, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Proposer + if *v == nil { + sv = &types.Proposer{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "accountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AWSAccountId to be of type string, got %T instead", value) + } + sv.AccountId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentRateCardItem(v **types.RateCardItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RateCardItem + if *v == nil { + sv = &types.RateCardItem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "dimensionKey": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.DimensionKey = ptr.String(jtv) + } + + case "price": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Price = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentRateCardList(v *[]types.RateCardItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.RateCardItem + if *v == nil { + cv = []types.RateCardItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.RateCardItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentRateCardItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentRecurringPaymentTerm(v **types.RecurringPaymentTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RecurringPaymentTerm + if *v == nil { + sv = &types.RecurringPaymentTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "billingPeriod": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.BillingPeriod = ptr.String(jtv) + } + + case "currencyCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + } + sv.CurrencyCode = ptr.String(jtv) + } + + case "price": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Price = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentRenewalTerm(v **types.RenewalTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RenewalTerm + if *v == nil { + sv = &types.RenewalTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "configuration": + if err := awsAwsjson10_deserializeDocumentRenewalTermConfiguration(&sv.Configuration, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentRenewalTermConfiguration(v **types.RenewalTermConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.RenewalTermConfiguration + if *v == nil { + sv = &types.RenewalTermConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "enableAutoRenew": + if value != nil { + jtv, ok := value.(bool) + if !ok { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) + } + sv.EnableAutoRenew = ptr.Bool(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentResource(v **types.Resource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Resource + if *v == nil { + sv = &types.Resource{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "id": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.Id = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AgreementResourceType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "requestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + case "resourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + case "resourceType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceType to be of type string, got %T instead", value) + } + sv.ResourceType = types.ResourceType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentResources(v *[]types.Resource, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.Resource + if *v == nil { + cv = []types.Resource{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.Resource + destAddr := &col + if err := awsAwsjson10_deserializeDocumentResource(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentScheduleItem(v **types.ScheduleItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ScheduleItem + if *v == nil { + sv = &types.ScheduleItem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "chargeAmount": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.ChargeAmount = ptr.String(jtv) + } + + case "chargeDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.ChargeDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentScheduleList(v *[]types.ScheduleItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ScheduleItem + if *v == nil { + cv = []types.ScheduleItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ScheduleItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentScheduleItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentSelector(v **types.Selector, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.Selector + if *v == nil { + sv = &types.Selector{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + case "value": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Value = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentSupportTerm(v **types.SupportTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SupportTerm + if *v == nil { + sv = &types.SupportTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "refundPolicy": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.RefundPolicy = ptr.String(jtv) + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "requestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentUsageBasedPricingTerm(v **types.UsageBasedPricingTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.UsageBasedPricingTerm + if *v == nil { + sv = &types.UsageBasedPricingTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "currencyCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected CurrencyCode to be of type string, got %T instead", value) + } + sv.CurrencyCode = ptr.String(jtv) + } + + case "rateCards": + if err := awsAwsjson10_deserializeDocumentUsageBasedRateCardList(&sv.RateCards, value); err != nil { + return err + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentUsageBasedRateCardItem(v **types.UsageBasedRateCardItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.UsageBasedRateCardItem + if *v == nil { + sv = &types.UsageBasedRateCardItem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "rateCard": + if err := awsAwsjson10_deserializeDocumentRateCardList(&sv.RateCard, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentUsageBasedRateCardList(v *[]types.UsageBasedRateCardItem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.UsageBasedRateCardItem + if *v == nil { + cv = []types.UsageBasedRateCardItem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.UsageBasedRateCardItem + destAddr := &col + if err := awsAwsjson10_deserializeDocumentUsageBasedRateCardItem(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "fields": + if err := awsAwsjson10_deserializeDocumentValidationExceptionFieldList(&sv.Fields, value); err != nil { + return err + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ExceptionMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "reason": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ValidationExceptionReason to be of type string, got %T instead", value) + } + sv.Reason = types.ValidationExceptionReason(jtv) + } + + case "requestId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RequestId to be of type string, got %T instead", value) + } + sv.RequestId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentValidationExceptionField(v **types.ValidationExceptionField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationExceptionField + if *v == nil { + sv = &types.ValidationExceptionField{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeDocumentValidationExceptionFieldList(v *[]types.ValidationExceptionField, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ValidationExceptionField + if *v == nil { + cv = []types.ValidationExceptionField{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ValidationExceptionField + destAddr := &col + if err := awsAwsjson10_deserializeDocumentValidationExceptionField(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson10_deserializeDocumentValidityTerm(v **types.ValidityTerm, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidityTerm + if *v == nil { + sv = &types.ValidityTerm{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "agreementDuration": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected BoundedString to be of type string, got %T instead", value) + } + sv.AgreementDuration = ptr.String(jtv) + } + + case "agreementEndDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.AgreementEndDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "agreementStartDate": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.AgreementStartDate = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "type": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UnversionedTermType to be of type string, got %T instead", value) + } + sv.Type = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentDescribeAgreementOutput(v **DescribeAgreementOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DescribeAgreementOutput + if *v == nil { + sv = &DescribeAgreementOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "acceptanceTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.AcceptanceTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "acceptor": + if err := awsAwsjson10_deserializeDocumentAcceptor(&sv.Acceptor, value); err != nil { + return err + } + + case "agreementId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.AgreementId = ptr.String(jtv) + } + + case "agreementType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AgreementType to be of type string, got %T instead", value) + } + sv.AgreementType = ptr.String(jtv) + } + + case "endTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "estimatedCharges": + if err := awsAwsjson10_deserializeDocumentEstimatedCharges(&sv.EstimatedCharges, value); err != nil { + return err + } + + case "proposalSummary": + if err := awsAwsjson10_deserializeDocumentProposalSummary(&sv.ProposalSummary, value); err != nil { + return err + } + + case "proposer": + if err := awsAwsjson10_deserializeDocumentProposer(&sv.Proposer, value); err != nil { + return err + } + + case "startTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AgreementStatus to be of type string, got %T instead", value) + } + sv.Status = types.AgreementStatus(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentGetAgreementTermsOutput(v **GetAgreementTermsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetAgreementTermsOutput + if *v == nil { + sv = &GetAgreementTermsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "acceptedTerms": + if err := awsAwsjson10_deserializeDocumentAcceptedTermList(&sv.AcceptedTerms, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson10_deserializeOpDocumentSearchAgreementsOutput(v **SearchAgreementsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *SearchAgreementsOutput + if *v == nil { + sv = &SearchAgreementsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "agreementViewSummaries": + if err := awsAwsjson10_deserializeDocumentAgreementViewSummaryList(&sv.AgreementViewSummaries, value); err != nil { + return err + } + + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NextToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/marketplaceagreement/doc.go b/service/marketplaceagreement/doc.go new file mode 100644 index 00000000000..3abaf5b3eb2 --- /dev/null +++ b/service/marketplaceagreement/doc.go @@ -0,0 +1,21 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package marketplaceagreement provides the API client, operations, and parameter +// types for AWS Marketplace Agreement Service. +// +// AWS Marketplace is a curated digital catalog that customers can use to find, +// buy, deploy, and manage third-party software, data, and services to build +// solutions and run their businesses. The AWS Marketplace Agreement Service +// provides an API interface that helps AWS Marketplace sellers manage their +// product-related agreements, including listing, searching, and filtering +// agreements. To manage agreements in AWS Marketplace, you must ensure that your +// AWS Identity and Access Management (IAM) policies and roles are set up. The user +// must have the required policies/permissions that allow them to carry out the +// actions in AWS: +// - DescribeAgreement – Grants permission to users to obtain detailed meta data +// about any of their agreements. +// - GetAgreementTerms – Grants permission to users to obtain details about the +// terms of an agreement. +// - SearchAgreements – Grants permission to users to search through all their +// agreements. +package marketplaceagreement diff --git a/service/marketplaceagreement/endpoints.go b/service/marketplaceagreement/endpoints.go new file mode 100644 index 00000000000..222ab02977c --- /dev/null +++ b/service/marketplaceagreement/endpoints.go @@ -0,0 +1,509 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + "github.com/aws/aws-sdk-go-v2/internal/endpoints" + "github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement/internal/endpoints" + smithyauth "github.com/aws/smithy-go/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "net/url" + "os" + "strings" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if !awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + eo := m.Options + eo.Logger = middleware.GetLogger(ctx) + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) + if err != nil { + nf := (&aws.EndpointNotFoundError{}) + if errors.As(err, &nf) { + ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, false) + return next.HandleSerialize(ctx, in) + } + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "awsmpcommerceservice_v20200301" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolverWithOptions +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return w.awsResolver.ResolveEndpoint(ServiceID, region, options) +} + +type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) + +func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { + return a(service, region) +} + +var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) + +// withEndpointResolver returns an aws.EndpointResolverWithOptions that first delegates endpoint resolution to the awsResolver. +// If awsResolver returns aws.EndpointNotFoundError error, the v1 resolver middleware will swallow the error, +// and set an appropriate context flag such that fallback will occur when EndpointResolverV2 is invoked +// via its middleware. +// +// If another error (besides aws.EndpointNotFoundError) is returned, then that error will be propagated. +func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions) EndpointResolver { + var resolver aws.EndpointResolverWithOptions + + if awsResolverWithOptions != nil { + resolver = awsResolverWithOptions + } else if awsResolver != nil { + resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) + } + + return &wrappedEndpointResolver{ + awsResolver: resolver, + } +} + +func finalizeClientEndpointResolverOptions(options *Options) { + options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() + + if len(options.EndpointOptions.ResolvedRegion) == 0 { + const fipsInfix = "-fips-" + const fipsPrefix = "fips-" + const fipsSuffix = "-fips" + + if strings.Contains(options.Region, fipsInfix) || + strings.Contains(options.Region, fipsPrefix) || + strings.Contains(options.Region, fipsSuffix) { + options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( + options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") + options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled + } + } + +} + +func resolveEndpointResolverV2(options *Options) { + if options.EndpointResolverV2 == nil { + options.EndpointResolverV2 = NewDefaultEndpointResolverV2() + } +} + +func resolveBaseEndpoint(cfg aws.Config, o *Options) { + if cfg.BaseEndpoint != nil { + o.BaseEndpoint = cfg.BaseEndpoint + } + + _, g := os.LookupEnv("AWS_ENDPOINT_URL") + _, s := os.LookupEnv("AWS_ENDPOINT_URL_MARKETPLACE_AGREEMENT") + + if g && !s { + return + } + + value, found, err := internalConfig.ResolveServiceBaseEndpoint(context.Background(), "Marketplace Agreement", cfg.ConfigSources) + if found && err == nil { + o.BaseEndpoint = &value + } +} + +// EndpointParameters provides the parameters that influence how endpoints are +// resolved. +type EndpointParameters struct { + // The AWS region used to dispatch the request. + // + // Parameter is + // required. + // + // AWS::Region + Region *string + + // When true, use the dual-stack endpoint. If the configured endpoint does not + // support dual-stack, dispatching the request MAY return an error. + // + // Defaults to + // false if no value is provided. + // + // AWS::UseDualStack + UseDualStack *bool + + // 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. + // + // Defaults to false if no value is + // provided. + // + // AWS::UseFIPS + UseFIPS *bool + + // Override the endpoint used to send this request + // + // Parameter is + // required. + // + // SDK::Endpoint + Endpoint *string +} + +// ValidateRequired validates required parameters are set. +func (p EndpointParameters) ValidateRequired() error { + if p.UseDualStack == nil { + return fmt.Errorf("parameter UseDualStack is required") + } + + if p.UseFIPS == nil { + return fmt.Errorf("parameter UseFIPS is required") + } + + return nil +} + +// WithDefaults returns a shallow copy of EndpointParameterswith default values +// applied to members where applicable. +func (p EndpointParameters) WithDefaults() EndpointParameters { + if p.UseDualStack == nil { + p.UseDualStack = ptr.Bool(false) + } + + if p.UseFIPS == nil { + p.UseFIPS = ptr.Bool(false) + } + return p +} + +// EndpointResolverV2 provides the interface for resolving service endpoints. +type EndpointResolverV2 interface { + // ResolveEndpoint attempts to resolve the endpoint with the provided options, + // returning the endpoint if found. Otherwise an error is returned. + ResolveEndpoint(ctx context.Context, params EndpointParameters) ( + smithyendpoints.Endpoint, error, + ) +} + +// resolver provides the implementation for resolving endpoints. +type resolver struct{} + +func NewDefaultEndpointResolverV2() EndpointResolverV2 { + return &resolver{} +} + +// ResolveEndpoint attempts to resolve the endpoint with the provided options, +// returning the endpoint if found. Otherwise an error is returned. +func (r *resolver) ResolveEndpoint( + ctx context.Context, params EndpointParameters, +) ( + endpoint smithyendpoints.Endpoint, err error, +) { + params = params.WithDefaults() + if err = params.ValidateRequired(); err != nil { + return endpoint, fmt.Errorf("endpoint parameters are not valid, %w", err) + } + _UseDualStack := *params.UseDualStack + _UseFIPS := *params.UseFIPS + + if exprVal := params.Endpoint; exprVal != nil { + _Endpoint := *exprVal + _ = _Endpoint + if _UseFIPS == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: FIPS and custom endpoint are not supported") + } + if _UseDualStack == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Dualstack and custom endpoint are not supported") + } + uriString := _Endpoint + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + if exprVal := params.Region; exprVal != nil { + _Region := *exprVal + _ = _Region + if exprVal := awsrulesfn.GetPartition(_Region); exprVal != nil { + _PartitionResult := *exprVal + _ = _PartitionResult + if _UseFIPS == true { + if _UseDualStack == true { + if true == _PartitionResult.SupportsFIPS { + if true == _PartitionResult.SupportsDualStack { + uriString := func() string { + var out strings.Builder + out.WriteString("https://agreement-marketplace-fips.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DualStackDnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS and DualStack are enabled, but this partition does not support one or both") + } + } + if _UseFIPS == true { + if _PartitionResult.SupportsFIPS == true { + uriString := func() string { + var out strings.Builder + out.WriteString("https://agreement-marketplace-fips.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS is enabled but this partition does not support FIPS") + } + if _UseDualStack == true { + if true == _PartitionResult.SupportsDualStack { + uriString := func() string { + var out strings.Builder + out.WriteString("https://agreement-marketplace.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DualStackDnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "DualStack is enabled but this partition does not support DualStack") + } + uriString := func() string { + var out strings.Builder + out.WriteString("https://agreement-marketplace.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("Endpoint resolution failed. Invalid operation or environment input.") + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Missing Region") +} + +type endpointParamsBinder interface { + bindEndpointParams(*EndpointParameters) +} + +func bindEndpointParams(input interface{}, options Options) *EndpointParameters { + params := &EndpointParameters{} + + params.Region = aws.String(endpoints.MapFIPSRegion(options.Region)) + params.UseDualStack = aws.Bool(options.EndpointOptions.UseDualStackEndpoint == aws.DualStackEndpointStateEnabled) + params.UseFIPS = aws.Bool(options.EndpointOptions.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled) + params.Endpoint = options.BaseEndpoint + + if b, ok := input.(endpointParamsBinder); ok { + b.bindEndpointParams(params) + } + + return params +} + +type resolveEndpointV2Middleware struct { + options Options +} + +func (*resolveEndpointV2Middleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleFinalize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.options.EndpointResolverV2 == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := bindEndpointParams(getOperationInput(ctx), m.options) + endpt, err := m.options.EndpointResolverV2.ResolveEndpoint(ctx, *params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + if endpt.URI.RawPath == "" && req.URL.RawPath != "" { + endpt.URI.RawPath = endpt.URI.Path + } + req.URL.Scheme = endpt.URI.Scheme + req.URL.Host = endpt.URI.Host + req.URL.Path = smithyhttp.JoinPath(endpt.URI.Path, req.URL.Path) + req.URL.RawPath = smithyhttp.JoinPath(endpt.URI.RawPath, req.URL.RawPath) + for k := range endpt.Headers { + req.Header.Set(k, endpt.Headers.Get(k)) + } + + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + opts, _ := smithyauth.GetAuthOptions(&endpt.Properties) + for _, o := range opts { + rscheme.SignerProperties.SetAll(&o.SignerProperties) + } + + return next.HandleFinalize(ctx, in) +} diff --git a/service/marketplaceagreement/endpoints_config_test.go b/service/marketplaceagreement/endpoints_config_test.go new file mode 100644 index 00000000000..d98db0f0e67 --- /dev/null +++ b/service/marketplaceagreement/endpoints_config_test.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "os" + "reflect" + "testing" +) + +type mockConfigSource struct { + global string + service string + ignore bool +} + +// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured +// endpoints feature. +func (m mockConfigSource) GetIgnoreConfiguredEndpoints(context.Context) (bool, bool, error) { + return m.ignore, m.ignore, nil +} + +// GetServiceBaseEndpoint is used to retrieve a normalized SDK ID for use +// with configured endpoints. +func (m mockConfigSource) GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error) { + if m.service != "" { + return m.service, true, nil + } + return "", false, nil +} + +func TestResolveBaseEndpoint(t *testing.T) { + cases := map[string]struct { + envGlobal string + envService string + envIgnore bool + configGlobal string + configService string + configIgnore bool + clientEndpoint *string + expectURL *string + }{ + "env ignore": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-agreement.dev", + envIgnore: true, + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-agreement.dev", + expectURL: nil, + }, + "env global": { + envGlobal: "https://env-global.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-agreement.dev", + expectURL: aws.String("https://env-global.dev"), + }, + "env service": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-agreement.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-agreement.dev", + expectURL: aws.String("https://env-marketplace-agreement.dev"), + }, + "config ignore": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-agreement.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-agreement.dev", + configIgnore: true, + expectURL: nil, + }, + "config global": { + configGlobal: "http://config-global.dev", + expectURL: aws.String("http://config-global.dev"), + }, + "config service": { + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-agreement.dev", + expectURL: aws.String("http://config-marketplace-agreement.dev"), + }, + "client": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-agreement.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-agreement.dev", + clientEndpoint: aws.String("https://client-marketplace-agreement.dev"), + expectURL: aws.String("https://client-marketplace-agreement.dev"), + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + os.Clearenv() + + awsConfig := aws.Config{} + ignore := c.envIgnore || c.configIgnore + + if c.configGlobal != "" && !ignore { + awsConfig.BaseEndpoint = aws.String(c.configGlobal) + } + + if c.envGlobal != "" { + t.Setenv("AWS_ENDPOINT_URL", c.envGlobal) + if !ignore { + awsConfig.BaseEndpoint = aws.String(c.envGlobal) + } + } + + if c.envService != "" { + t.Setenv("AWS_ENDPOINT_URL_MARKETPLACE_AGREEMENT", c.envService) + } + + awsConfig.ConfigSources = []interface{}{ + mockConfigSource{ + global: c.envGlobal, + service: c.envService, + ignore: c.envIgnore, + }, + mockConfigSource{ + global: c.configGlobal, + service: c.configService, + ignore: c.configIgnore, + }, + } + + client := NewFromConfig(awsConfig, func(o *Options) { + if c.clientEndpoint != nil { + o.BaseEndpoint = c.clientEndpoint + } + }) + + if e, a := c.expectURL, client.options.BaseEndpoint; !reflect.DeepEqual(e, a) { + t.Errorf("expect endpoint %v , got %v", e, a) + } + }) + } +} diff --git a/service/marketplaceagreement/endpoints_test.go b/service/marketplaceagreement/endpoints_test.go new file mode 100644 index 00000000000..6b74b03038a --- /dev/null +++ b/service/marketplaceagreement/endpoints_test.go @@ -0,0 +1,856 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + smithy "github.com/aws/smithy-go" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/ptr" + "github.com/google/go-cmp/cmp" + "net/http" + "net/url" + "strings" + "testing" +) + +// For region us-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase0(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.us-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase1(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.us-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase2(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.us-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase3(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.us-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS enabled and DualStack enabled +func TestEndpointCase4(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.cn-north-1.api.amazonwebservices.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS enabled and DualStack disabled +func TestEndpointCase5(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.cn-north-1.amazonaws.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS disabled and DualStack enabled +func TestEndpointCase6(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.cn-north-1.api.amazonwebservices.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS disabled and DualStack disabled +func TestEndpointCase7(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.cn-north-1.amazonaws.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase8(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.us-gov-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase9(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.us-gov-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase10(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.us-gov-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase11(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.us-gov-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase12(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase13(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.us-iso-east-1.c2s.ic.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase14(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase15(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.us-iso-east-1.c2s.ic.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-isob-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase16(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-isob-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase17(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace-fips.us-isob-east-1.sc2s.sgov.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-isob-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase18(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-isob-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase19(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://agreement-marketplace.us-isob-east-1.sc2s.sgov.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with region set and fips disabled and dualstack disabled +func TestEndpointCase20(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://example.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with region not set and fips disabled and dualstack disabled +func TestEndpointCase21(t *testing.T) { + var params = EndpointParameters{ + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://example.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with fips enabled and dualstack disabled +func TestEndpointCase22(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: FIPS and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For custom endpoint with fips disabled and dualstack enabled +func TestEndpointCase23(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Dualstack and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// Missing region +func TestEndpointCase24(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/marketplaceagreement/generated.json b/service/marketplaceagreement/generated.json new file mode 100644 index 00000000000..2621b3efe8a --- /dev/null +++ b/service/marketplaceagreement/generated.json @@ -0,0 +1,36 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000", + "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000", + "github.com/aws/smithy-go": "v1.4.0", + "github.com/google/go-cmp": "v0.5.4" + }, + "files": [ + "api_client.go", + "api_client_test.go", + "api_op_DescribeAgreement.go", + "api_op_GetAgreementTerms.go", + "api_op_SearchAgreements.go", + "auth.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "endpoints_config_test.go", + "endpoints_test.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "options.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/errors.go", + "types/types.go", + "types/types_exported_test.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement", + "unstable": false +} diff --git a/service/marketplaceagreement/go.mod b/service/marketplaceagreement/go.mod new file mode 100644 index 00000000000..04a5523a823 --- /dev/null +++ b/service/marketplaceagreement/go.mod @@ -0,0 +1,17 @@ +module github.com/aws/aws-sdk-go-v2/service/marketplaceagreement + +go 1.19 + +require ( + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 + github.com/google/go-cmp v0.5.8 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ + +replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/ + +replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/ diff --git a/service/marketplaceagreement/go.sum b/service/marketplaceagreement/go.sum new file mode 100644 index 00000000000..2949ab2a4c2 --- /dev/null +++ b/service/marketplaceagreement/go.sum @@ -0,0 +1,4 @@ +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplaceagreement/go_module_metadata.go b/service/marketplaceagreement/go_module_metadata.go new file mode 100644 index 00000000000..c5fd02f9ab2 --- /dev/null +++ b/service/marketplaceagreement/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package marketplaceagreement + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "1.0.1" diff --git a/service/marketplaceagreement/internal/endpoints/endpoints.go b/service/marketplaceagreement/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..5da8100db69 --- /dev/null +++ b/service/marketplaceagreement/internal/endpoints/endpoints.go @@ -0,0 +1,301 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" + "github.com/aws/smithy-go/logging" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + // Logger is a logging implementation that log events should be sent to. + Logger logging.Logger + + // LogDeprecated indicates that deprecated endpoints should be logged to the + // provided logger. + LogDeprecated bool + + // ResolvedRegion is used to override the region to be resolved, rather then the + // using the value passed to the ResolveEndpoint method. This value is used by the + // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative + // name. You must not set this value directly in your application. + ResolvedRegion string + + // DisableHTTPS informs the resolver to return an endpoint that does not use the + // HTTPS scheme. + DisableHTTPS bool + + // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. + UseDualStackEndpoint aws.DualStackEndpointState + + // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. + UseFIPSEndpoint aws.FIPSEndpointState +} + +func (o Options) GetResolvedRegion() string { + return o.ResolvedRegion +} + +func (o Options) GetDisableHTTPS() bool { + return o.DisableHTTPS +} + +func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { + return o.UseDualStackEndpoint +} + +func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { + return o.UseFIPSEndpoint +} + +func transformToSharedOptions(options Options) endpoints.Options { + return endpoints.Options{ + Logger: options.Logger, + LogDeprecated: options.LogDeprecated, + ResolvedRegion: options.ResolvedRegion, + DisableHTTPS: options.DisableHTTPS, + UseDualStackEndpoint: options.UseDualStackEndpoint, + UseFIPSEndpoint: options.UseFIPSEndpoint, + } +} + +// Resolver Marketplace Agreement endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := transformToSharedOptions(options) + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp + AwsIsoF *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), + AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "agreement-marketplace.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "agreement-marketplace.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "us-east-1", + }: endpoints.Endpoint{}, + }, + }, + { + ID: "aws-cn", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "agreement-marketplace.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "agreement-marketplace.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "agreement-marketplace.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "agreement-marketplace.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "agreement-marketplace.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, + { + ID: "aws-iso-f", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.csp.hci.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "agreement-marketplace.{region}.csp.hci.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoF, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "agreement-marketplace.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "agreement-marketplace-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "agreement-marketplace.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/marketplaceagreement/internal/endpoints/endpoints_test.go b/service/marketplaceagreement/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/marketplaceagreement/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/marketplaceagreement/options.go b/service/marketplaceagreement/options.go new file mode 100644 index 00000000000..fbc4c361f95 --- /dev/null +++ b/service/marketplaceagreement/options.go @@ -0,0 +1,219 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" + smithyauth "github.com/aws/smithy-go/auth" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" +) + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // The optional application specific identifier appended to the User-Agent header. + AppID string + + // This endpoint will be given as input to an EndpointResolverV2. It is used for + // providing a custom base endpoint that is subject to modifications by the + // processing EndpointResolverV2. + BaseEndpoint *string + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The configuration DefaultsMode that the SDK should use when constructing the + // clients initial default settings. + DefaultsMode aws.DefaultsMode + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + // + // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a + // value for this field will likely prevent you from using any endpoint-related + // service features released after the introduction of EndpointResolverV2 and + // BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom + // endpoint, set the client option BaseEndpoint instead. + EndpointResolver EndpointResolver + + // Resolves the endpoint used for a particular service operation. This should be + // used over the deprecated EndpointResolver. + EndpointResolverV2 EndpointResolverV2 + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // RetryMaxAttempts specifies the maximum number attempts an API client will call + // an operation that fails with a retryable error. A value of 0 is ignored, and + // will not be used to configure the API client created default retryer, or modify + // per operation call's retry max attempts. When creating a new API Clients this + // member will only be used if the Retryer Options member is nil. This value will + // be ignored if Retryer is not nil. If specified in an operation call's functional + // options with a value that is different than the constructed client's Options, + // the Client's Retryer will be wrapped to use the operation's specific + // RetryMaxAttempts value. + RetryMaxAttempts int + + // RetryMode specifies the retry mode the API client will be created with, if + // Retryer option is not also specified. When creating a new API Clients this + // member will only be used if the Retryer Options member is nil. This value will + // be ignored if Retryer is not nil. Currently does not support per operation call + // overrides, may in the future. + RetryMode aws.RetryMode + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. The kind of + // default retry created by the API client can be changed with the RetryMode + // option. + Retryer aws.Retryer + + // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set + // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You + // should not populate this structure programmatically, or rely on the values here + // within your applications. + RuntimeEnvironment aws.RuntimeEnvironment + + // The initial DefaultsMode used when the client options were constructed. If the + // DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved + // value was at that point in time. Currently does not support per operation call + // overrides, may in the future. + resolvedDefaultsMode aws.DefaultsMode + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient + + // The auth scheme resolver which determines how to authenticate for each + // operation. + AuthSchemeResolver AuthSchemeResolver + + // The list of auth schemes supported by the client. + AuthSchemes []smithyhttp.AuthScheme +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + + return to +} + +func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver { + if schemeID == "aws.auth#sigv4" { + return getSigV4IdentityResolver(o) + } + if schemeID == "smithy.api#noAuth" { + return &smithyauth.AnonymousIdentityResolver{} + } + return nil +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for +// this field will likely prevent you from using any endpoint-related service +// features released after the introduction of EndpointResolverV2 and BaseEndpoint. +// To migrate an EndpointResolver implementation that uses a custom endpoint, set +// the client option BaseEndpoint instead. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +// WithEndpointResolverV2 returns a functional option for setting the Client's +// EndpointResolverV2 option. +func WithEndpointResolverV2(v EndpointResolverV2) func(*Options) { + return func(o *Options) { + o.EndpointResolverV2 = v + } +} + +func getSigV4IdentityResolver(o Options) smithyauth.IdentityResolver { + if o.Credentials != nil { + return &internalauthsmithy.CredentialsProviderAdapter{Provider: o.Credentials} + } + return nil +} + +// WithSigV4SigningName applies an override to the authentication workflow to +// use the given signing name for SigV4-authenticated operations. +// +// This is an advanced setting. The value here is FINAL, taking precedence over +// the resolved signing name from both auth scheme resolution and endpoint +// resolution. +func WithSigV4SigningName(name string) func(*Options) { + fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, + ) { + return next.HandleInitialize(awsmiddleware.SetSigningName(ctx, name), in) + } + return func(o *Options) { + o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { + return s.Initialize.Add( + middleware.InitializeMiddlewareFunc("withSigV4SigningName", fn), + middleware.Before, + ) + }) + } +} + +// WithSigV4SigningRegion applies an override to the authentication workflow to +// use the given signing region for SigV4-authenticated operations. +// +// This is an advanced setting. The value here is FINAL, taking precedence over +// the resolved signing region from both auth scheme resolution and endpoint +// resolution. +func WithSigV4SigningRegion(region string) func(*Options) { + fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, + ) { + return next.HandleInitialize(awsmiddleware.SetSigningRegion(ctx, region), in) + } + return func(o *Options) { + o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { + return s.Initialize.Add( + middleware.InitializeMiddlewareFunc("withSigV4SigningRegion", fn), + middleware.Before, + ) + }) + } +} + +func ignoreAnonymousAuth(options *Options) { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { + options.Credentials = nil + } +} diff --git a/service/marketplaceagreement/protocol_test.go b/service/marketplaceagreement/protocol_test.go new file mode 100644 index 00000000000..8aebdc10eef --- /dev/null +++ b/service/marketplaceagreement/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement diff --git a/service/marketplaceagreement/serializers.go b/service/marketplaceagreement/serializers.go new file mode 100644 index 00000000000..b2f9f7248ce --- /dev/null +++ b/service/marketplaceagreement/serializers.go @@ -0,0 +1,310 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "path" +) + +type awsAwsjson10_serializeOpDescribeAgreement struct { +} + +func (*awsAwsjson10_serializeOpDescribeAgreement) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpDescribeAgreement) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeAgreementInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSMPCommerceService_v20200301.DescribeAgreement") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentDescribeAgreementInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpGetAgreementTerms struct { +} + +func (*awsAwsjson10_serializeOpGetAgreementTerms) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpGetAgreementTerms) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetAgreementTermsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSMPCommerceService_v20200301.GetAgreementTerms") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentGetAgreementTermsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson10_serializeOpSearchAgreements struct { +} + +func (*awsAwsjson10_serializeOpSearchAgreements) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson10_serializeOpSearchAgreements) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*SearchAgreementsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.0") + httpBindingEncoder.SetHeader("X-Amz-Target").String("AWSMPCommerceService_v20200301.SearchAgreements") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson10_serializeOpDocumentSearchAgreementsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsAwsjson10_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.Values != nil { + ok := object.Key("values") + if err := awsAwsjson10_serializeDocumentFilterValueList(v.Values, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson10_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsAwsjson10_serializeDocumentFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson10_serializeDocumentFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsAwsjson10_serializeDocumentSort(v *types.Sort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SortBy != nil { + ok := object.Key("sortBy") + ok.String(*v.SortBy) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("sortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentDescribeAgreementInput(v *DescribeAgreementInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AgreementId != nil { + ok := object.Key("agreementId") + ok.String(*v.AgreementId) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentGetAgreementTermsInput(v *GetAgreementTermsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AgreementId != nil { + ok := object.Key("agreementId") + ok.String(*v.AgreementId) + } + + if v.MaxResults != nil { + ok := object.Key("maxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("nextToken") + ok.String(*v.NextToken) + } + + return nil +} + +func awsAwsjson10_serializeOpDocumentSearchAgreementsInput(v *SearchAgreementsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Catalog != nil { + ok := object.Key("catalog") + ok.String(*v.Catalog) + } + + if v.Filters != nil { + ok := object.Key("filters") + if err := awsAwsjson10_serializeDocumentFilterList(v.Filters, ok); err != nil { + return err + } + } + + if v.MaxResults != nil { + ok := object.Key("maxResults") + ok.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + ok := object.Key("nextToken") + ok.String(*v.NextToken) + } + + if v.Sort != nil { + ok := object.Key("sort") + if err := awsAwsjson10_serializeDocumentSort(v.Sort, ok); err != nil { + return err + } + } + + return nil +} diff --git a/service/marketplaceagreement/types/enums.go b/service/marketplaceagreement/types/enums.go new file mode 100644 index 00000000000..be3849ee842 --- /dev/null +++ b/service/marketplaceagreement/types/enums.go @@ -0,0 +1,105 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +type AgreementStatus string + +// Enum values for AgreementStatus +const ( + AgreementStatusActive AgreementStatus = "ACTIVE" + AgreementStatusArchived AgreementStatus = "ARCHIVED" + AgreementStatusCancelled AgreementStatus = "CANCELLED" + AgreementStatusExpired AgreementStatus = "EXPIRED" + AgreementStatusRenewed AgreementStatus = "RENEWED" + AgreementStatusReplaced AgreementStatus = "REPLACED" + AgreementStatusRolledBack AgreementStatus = "ROLLED_BACK" + AgreementStatusSuperseded AgreementStatus = "SUPERSEDED" + AgreementStatusTerminated AgreementStatus = "TERMINATED" +) + +// Values returns all known values for AgreementStatus. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (AgreementStatus) Values() []AgreementStatus { + return []AgreementStatus{ + "ACTIVE", + "ARCHIVED", + "CANCELLED", + "EXPIRED", + "RENEWED", + "REPLACED", + "ROLLED_BACK", + "SUPERSEDED", + "TERMINATED", + } +} + +type ResourceType string + +// Enum values for ResourceType +const ( + ResourceTypeAgreement ResourceType = "Agreement" +) + +// Values returns all known values for ResourceType. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ResourceType) Values() []ResourceType { + return []ResourceType{ + "Agreement", + } +} + +type SortOrder string + +// Enum values for SortOrder +const ( + SortOrderAscending SortOrder = "ASCENDING" + SortOrderDescending SortOrder = "DESCENDING" +) + +// Values returns all known values for SortOrder. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (SortOrder) Values() []SortOrder { + return []SortOrder{ + "ASCENDING", + "DESCENDING", + } +} + +type ValidationExceptionReason string + +// Enum values for ValidationExceptionReason +const ( + ValidationExceptionReasonInvalidAgreementId ValidationExceptionReason = "INVALID_AGREEMENT_ID" + ValidationExceptionReasonMissingAgreementId ValidationExceptionReason = "MISSING_AGREEMENT_ID" + ValidationExceptionReasonInvalidCatalog ValidationExceptionReason = "INVALID_CATALOG" + ValidationExceptionReasonInvalidFilterName ValidationExceptionReason = "INVALID_FILTER_NAME" + ValidationExceptionReasonInvalidFilterValues ValidationExceptionReason = "INVALID_FILTER_VALUES" + ValidationExceptionReasonInvalidSortBy ValidationExceptionReason = "INVALID_SORT_BY" + ValidationExceptionReasonInvalidSortOrder ValidationExceptionReason = "INVALID_SORT_ORDER" + ValidationExceptionReasonInvalidNextToken ValidationExceptionReason = "INVALID_NEXT_TOKEN" + ValidationExceptionReasonInvalidMaxResults ValidationExceptionReason = "INVALID_MAX_RESULTS" + ValidationExceptionReasonUnsupportedFilters ValidationExceptionReason = "UNSUPPORTED_FILTERS" + ValidationExceptionReasonOther ValidationExceptionReason = "OTHER" +) + +// Values returns all known values for ValidationExceptionReason. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (ValidationExceptionReason) Values() []ValidationExceptionReason { + return []ValidationExceptionReason{ + "INVALID_AGREEMENT_ID", + "MISSING_AGREEMENT_ID", + "INVALID_CATALOG", + "INVALID_FILTER_NAME", + "INVALID_FILTER_VALUES", + "INVALID_SORT_BY", + "INVALID_SORT_ORDER", + "INVALID_NEXT_TOKEN", + "INVALID_MAX_RESULTS", + "UNSUPPORTED_FILTERS", + "OTHER", + } +} diff --git a/service/marketplaceagreement/types/errors.go b/service/marketplaceagreement/types/errors.go new file mode 100644 index 00000000000..93e251b9c14 --- /dev/null +++ b/service/marketplaceagreement/types/errors.go @@ -0,0 +1,152 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// User does not have sufficient access to perform this action. +type AccessDeniedException struct { + Message *string + + ErrorCodeOverride *string + + RequestId *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Unexpected error during processing of request. +type InternalServerException struct { + Message *string + + ErrorCodeOverride *string + + RequestId *string + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// Request references a resource which does not exist. +type ResourceNotFoundException struct { + Message *string + + ErrorCodeOverride *string + + RequestId *string + ResourceId *string + ResourceType ResourceType + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Request was denied due to request throttling. +type ThrottlingException struct { + Message *string + + ErrorCodeOverride *string + + RequestId *string + + noSmithyDocumentSerde +} + +func (e *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottlingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottlingException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} +func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The input fails to satisfy the constraints specified by the service. +type ValidationException struct { + Message *string + + ErrorCodeOverride *string + + RequestId *string + Reason ValidationExceptionReason + Fields []ValidationExceptionField + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/marketplaceagreement/types/types.go b/service/marketplaceagreement/types/types.go new file mode 100644 index 00000000000..c9de9d93134 --- /dev/null +++ b/service/marketplaceagreement/types/types.go @@ -0,0 +1,689 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" + "time" +) + +// A subset of terms proposed by the proposer, which have been accepted by the +// acceptor as part of agreement creation. +// +// The following types satisfy this interface: +// +// AcceptedTermMemberByolPricingTerm +// AcceptedTermMemberConfigurableUpfrontPricingTerm +// AcceptedTermMemberFixedUpfrontPricingTerm +// AcceptedTermMemberFreeTrialPricingTerm +// AcceptedTermMemberLegalTerm +// AcceptedTermMemberPaymentScheduleTerm +// AcceptedTermMemberRecurringPaymentTerm +// AcceptedTermMemberRenewalTerm +// AcceptedTermMemberSupportTerm +// AcceptedTermMemberUsageBasedPricingTerm +// AcceptedTermMemberValidityTerm +type AcceptedTerm interface { + isAcceptedTerm() +} + +// Enables you and your customers to move your existing agreements to AWS +// Marketplace. The customer won't be charged for product usage in AWS Marketplace +// because they already paid for the product outside of AWS Marketplace. +type AcceptedTermMemberByolPricingTerm struct { + Value ByolPricingTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberByolPricingTerm) isAcceptedTerm() {} + +// Defines a prepaid payment model that allows buyers to configure the +// entitlements they want to purchase and the duration. +type AcceptedTermMemberConfigurableUpfrontPricingTerm struct { + Value ConfigurableUpfrontPricingTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberConfigurableUpfrontPricingTerm) isAcceptedTerm() {} + +// Defines a pre-paid pricing model where the customers are charged a fixed +// upfront amount. +type AcceptedTermMemberFixedUpfrontPricingTerm struct { + Value FixedUpfrontPricingTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberFixedUpfrontPricingTerm) isAcceptedTerm() {} + +// Defines a short-term free pricing model where the buyers aren’t charged +// anything within a specified limit. +type AcceptedTermMemberFreeTrialPricingTerm struct { + Value FreeTrialPricingTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberFreeTrialPricingTerm) isAcceptedTerm() {} + +// Defines the list of text agreements proposed to the acceptors. An example is +// the end user license agreement (EULA). +type AcceptedTermMemberLegalTerm struct { + Value LegalTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberLegalTerm) isAcceptedTerm() {} + +// Defines an installment-based pricing model where customers are charged a fixed +// price on different dates during the agreement validity period. This is used most +// commonly for flexible payment schedule pricing. +type AcceptedTermMemberPaymentScheduleTerm struct { + Value PaymentScheduleTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberPaymentScheduleTerm) isAcceptedTerm() {} + +// Defines a pricing model where customers are charged a fixed recurring price at +// the end of each billing period. +type AcceptedTermMemberRecurringPaymentTerm struct { + Value RecurringPaymentTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberRecurringPaymentTerm) isAcceptedTerm() {} + +// Defines that on graceful expiration of the agreement (when the agreement ends +// on its pre-defined end date), a new agreement will be created using the accepted +// terms on the existing agreement. In other words, the agreement will be renewed. +// Presence of RenewalTerm in the offer document means that auto-renewal is +// allowed. Buyers will have the option to accept or decline auto-renewal at the +// offer acceptance/agreement creation. Buyers can also change this flag from True +// to False or False to True at anytime during the agreement's lifecycle. +type AcceptedTermMemberRenewalTerm struct { + Value RenewalTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberRenewalTerm) isAcceptedTerm() {} + +// Defines the customer support available for the acceptors when they purchase the +// software. +type AcceptedTermMemberSupportTerm struct { + Value SupportTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberSupportTerm) isAcceptedTerm() {} + +// Defines a usage-based pricing model (typically, pay-as-you-go pricing), where +// the customers are charged based on product usage. +type AcceptedTermMemberUsageBasedPricingTerm struct { + Value UsageBasedPricingTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberUsageBasedPricingTerm) isAcceptedTerm() {} + +// Defines the conditions that will keep an agreement created from this offer +// valid. +type AcceptedTermMemberValidityTerm struct { + Value ValidityTerm + + noSmithyDocumentSerde +} + +func (*AcceptedTermMemberValidityTerm) isAcceptedTerm() {} + +// The details of the party accepting the agreement terms. This is commonly the +// buyer for PurchaseAgreement . +type Acceptor struct { + + // The AWS account ID of the acceptor. + AccountId *string + + noSmithyDocumentSerde +} + +// A summary of the agreement, including top-level attributes (for example, the +// agreement ID, version, proposer, and acceptor). +type AgreementViewSummary struct { + + // The date and time that the agreement was accepted. + AcceptanceTime *time.Time + + // Details of the party accepting the agreement terms. This is commonly the buyer + // for PurchaseAgreement. + Acceptor *Acceptor + + // The unique identifier of the agreement. + AgreementId *string + + // The type of agreement. Values are PurchaseAgreement or VendorInsightsAgreement . + AgreementType *string + + // The date and time when the agreement ends. The field is null for pay-as-you-go + // agreements, which don’t have end dates. + EndTime *time.Time + + // A summary of the proposal + ProposalSummary *ProposalSummary + + // Details of the party proposing the agreement terms, most commonly the seller + // for PurchaseAgreement . + Proposer *Proposer + + // The date and time when the agreement starts. + StartTime *time.Time + + // The current status of the agreement. + Status AgreementStatus + + noSmithyDocumentSerde +} + +// Enables you and your customers to move your existing agreements to AWS +// Marketplace. The customer won't be charged for product usage in AWS Marketplace +// because they already paid for the product outside of AWS Marketplace. +type ByolPricingTerm struct { + + // Type of the term being updated. + Type *string + + noSmithyDocumentSerde +} + +// Defines a prepaid payment model that allows buyers to configure the +// entitlements they want to purchase and the duration. +type ConfigurableUpfrontPricingTerm struct { + + // Additional parameters specified by the acceptor while accepting the term. + Configuration *ConfigurableUpfrontPricingTermConfiguration + + // Defines the currency for the prices mentioned in the term. + CurrencyCode *string + + // A rate card defines the per unit rates for product dimensions. + RateCards []ConfigurableUpfrontRateCardItem + + // Category of selector. + Type *string + + noSmithyDocumentSerde +} + +// Defines a prepaid payment model that allows buyers to configure the +// entitlements they want to purchase and the duration. +type ConfigurableUpfrontPricingTermConfiguration struct { + + // Defines the dimensions that the acceptor has purchased from the overall set of + // dimensions presented in the rate card. + // + // This member is required. + Dimensions []Dimension + + // Defines the length of time for which the particular pricing/dimension is being + // purchased by the acceptor. + // + // This member is required. + SelectorValue *string + + noSmithyDocumentSerde +} + +// Within the prepaid payment model defined under ConfigurableUpfrontPricingTerm , +// the RateCardItem defines all the various rate cards (including pricing and +// dimensions) that have been proposed. +type ConfigurableUpfrontRateCardItem struct { + + // Defines limits on how the term can be configured by acceptors. + Constraints *Constraints + + // Defines the per unit rates for product dimensions. + RateCard []RateCardItem + + // Differentiates between the mutually exclusive rate cards in the same pricing + // term to be selected by the buyer. + Selector *Selector + + noSmithyDocumentSerde +} + +// Defines limits on how the term can be configured by acceptors. +type Constraints struct { + + // Determines if buyers are allowed to select multiple dimensions in the rate + // card. The possible values are Allowed and Disallowed . The default value is + // Allowed . + MultipleDimensionSelection *string + + // Determines if acceptors are allowed to configure quantity for each dimension in + // rate card. The possible values are Allowed and Disallowed . The default value is + // Allowed . + QuantityConfiguration *string + + noSmithyDocumentSerde +} + +// Defines the dimensions that the acceptor has purchased from the overall set of +// dimensions presented in the rate card. +type Dimension struct { + + // The name of key value of the dimension. + // + // This member is required. + DimensionKey *string + + // The number of units of the dimension the acceptor has purchased. For Agreements + // with ConfigurableUpfrontPricingTerm , the RateCard section will define the + // prices and dimensions defined by the seller (proposer), whereas the + // Configuration section will define the actual dimensions, prices, and units the + // buyer has chosen to accept. + // + // This member is required. + DimensionValue int32 + + noSmithyDocumentSerde +} + +// Includes the list of references to legal resources proposed by the proposer to +// the acceptor. Each DocumentItem refers to an individual reference. +type DocumentItem struct { + + // Category of the document. Document types include: + // - CustomEula – A custom EULA provided by you as seller. A URL for a EULA + // stored in an accessible Amazon S3 bucket is required for this document type. + // - CustomDsa – A custom Data Subscription Agreement (DSA) provided by you as + // seller. A URL for a DSA stored in an accessible Amazon S3 bucket is required for + // this document type. + // - StandardEula – The Standard Contract for AWS Marketplace (SCMP). For more + // information about SCMP, see the AWS Marketplace Seller Guide. You don’t provide + // a URL for this type because it’s managed by AWS Marketplace. + // - StandardDsa – DSA for AWS Marketplace. For more information about the DSA, + // see the AWS Data Exchange User Guide. You don’t provide a URL for this type + // because it’s managed by AWS Marketplace. + Type *string + + // A URL to the legal document for buyers to read. Required when Type is CustomEula + // . + Url *string + + // Version of standard contracts provided by AWS Marketplace. Required when Type + // is StandardEula or StandardDsa . + Version *string + + noSmithyDocumentSerde +} + +// Estimated cost of the agreement. +type EstimatedCharges struct { + + // The total known amount customer has to pay across the lifecycle of the + // agreement. This is the total contract value if accepted terms contain + // ConfigurableUpfrontPricingTerm or FixedUpfrontPricingTerm . In the case of pure + // contract pricing, this will be the total value of the contract. In the case of + // contracts with consumption pricing, this will only include the committed value + // and not include any overages that occur. If the accepted terms contain + // PaymentScheduleTerm , it will be the total payment schedule amount. This occurs + // when flexible payment schedule is used, and is the sum of all invoice charges in + // the payment schedule. In case a customer has amended an agreement, by purchasing + // more units of any dimension, this will include both the original cost as well as + // the added cost incurred due to addition of new units. This is 0 if the accepted + // terms contain UsageBasedPricingTerm without ConfigurableUpfrontPricingTerm or + // RecurringPaymentTerm . This occurs for usage-based pricing (such as SaaS metered + // or AMI/container hourly or monthly), because the exact usage is not known + // upfront. + AgreementValue *string + + // Defines the currency code for the charge. + CurrencyCode *string + + noSmithyDocumentSerde +} + +// The filter name and value pair that is used to return a more specific list of +// results. Filters can be used to match a set of resources by various criteria, +// such as offerId or productId . +type Filter struct { + + // The name of the filter. + Name *string + + // The filter value. + Values []string + + noSmithyDocumentSerde +} + +// Defines a prepaid pricing model where the customers are charged a fixed upfront +// amount. +type FixedUpfrontPricingTerm struct { + + // Defines the currency for the prices mentioned in this term. + CurrencyCode *string + + // Contract duration for the terms. + Duration *string + + // Entitlements granted to the acceptor of fixed upfront as part of agreement + // execution. + Grants []GrantItem + + // Fixed amount to be charged to the customer when this term is accepted. + Price *string + + // Category of the term being updated. + Type *string + + noSmithyDocumentSerde +} + +// Defines a short-term free pricing model where the buyers aren’t charged +// anything within a specified limit. +type FreeTrialPricingTerm struct { + + // Duration of the free trial period (5–31 days). + Duration *string + + // Entitlements granted to the acceptor of a free trial as part of an agreement + // execution. + Grants []GrantItem + + // Category of the term. + Type *string + + noSmithyDocumentSerde +} + +// Entitlements granted to the acceptor of fixed upfront as part of agreement +// execution. +type GrantItem struct { + + // Unique dimension key defined in the product document. Dimensions represent + // categories of capacity in a product and are specified when the product is listed + // in AWS Marketplace. + DimensionKey *string + + // Maximum amount of capacity that the buyer can be entitled to the given + // dimension of the product. If MaxQuantity is not provided, the buyer will be + // able to use an unlimited amount of the given dimension. + MaxQuantity *int32 + + noSmithyDocumentSerde +} + +// Defines the list of text agreements proposed to the acceptors. An example is +// the end user license agreement (EULA). +type LegalTerm struct { + + // List of references to legal resources proposed to the buyers. An example is the + // EULA. + Documents []DocumentItem + + // Category of the term being updated. + Type *string + + noSmithyDocumentSerde +} + +// Defines an installment-based pricing model where customers are charged a fixed +// price on different dates during the agreement validity period. This is used most +// commonly for flexible payment schedule pricing. +type PaymentScheduleTerm struct { + + // Defines the currency for the prices mentioned in the term. + CurrencyCode *string + + // List of the payment schedule where each element defines one installment of + // payment. It contains the information necessary for calculating the price. + Schedule []ScheduleItem + + // Type of the term. + Type *string + + noSmithyDocumentSerde +} + +// A summary of the proposal received from the proposer. +type ProposalSummary struct { + + // The unique identifier of the offer in AWS Marketplace. + OfferId *string + + // The list of resources involved in the agreement. + Resources []Resource + + noSmithyDocumentSerde +} + +// Details of the party proposing the agreement terms,. This is commonly the +// seller for PurchaseAgreement . +type Proposer struct { + + // The AWS account ID of the proposer. + AccountId *string + + noSmithyDocumentSerde +} + +// Defines the per unit rates for each individual product dimension. +type RateCardItem struct { + + // Dimension for which the given entitlement applies. Dimensions represent + // categories of capacity in a product and are specified when the product is listed + // in AWS Marketplace. + DimensionKey *string + + // Per unit price for the product dimension that’s used for calculating the amount + // to be charged. + Price *string + + noSmithyDocumentSerde +} + +// Defines a pricing model where customers are charged a fixed recurring price at +// the end of each billing period. +type RecurringPaymentTerm struct { + + // Defines the recurrence at which buyers are charged. + BillingPeriod *string + + // Defines the currency for the prices mentioned in this term. + CurrencyCode *string + + // Amount charged to the buyer every billing period. + Price *string + + // Type of the term being updated. + Type *string + + noSmithyDocumentSerde +} + +// Defines that on graceful expiration of the agreement (when the agreement ends +// on its pre-defined end date), a new agreement will be created using the accepted +// terms on the existing agreement. In other words, the agreement will be renewed. +// The presence of RenewalTerm in the offer document means that auto-renewal is +// allowed. Buyers will have the option to accept or decline auto-renewal at the +// offer acceptance/agreement creation. Buyers can also change this flag from True +// to False or False to True at anytime during the agreement's lifecycle. +type RenewalTerm struct { + + // Additional parameters specified by the acceptor while accepting the term. + Configuration *RenewalTermConfiguration + + // Category of the term being updated. + Type *string + + noSmithyDocumentSerde +} + +// Additional parameters specified by the acceptor while accepting the term. +type RenewalTermConfiguration struct { + + // Defines whether the acceptor has chosen to auto-renew the agreement at the end + // of its lifecycle. Can be set to True or False . + // + // This member is required. + EnableAutoRenew *bool + + noSmithyDocumentSerde +} + +// The list of resources involved in the agreement. +type Resource struct { + + // The unique identifier of the resource. We mention the term resource, which is + // most commonly a product, so a resourceId is also a productId . + Id *string + + // Type of the resource, which is the product. Values include SaaSProduct or + // AmiProduct . + Type *string + + noSmithyDocumentSerde +} + +// An individual installment of the payment that includes the date and amount of +// the charge. +type ScheduleItem struct { + + // The price that the customer would pay on the scheduled date (chargeDate). + ChargeAmount *string + + // The date that the customer would pay the price defined in this payment schedule + // term. Invoices are generated on the date provided. + ChargeDate *time.Time + + noSmithyDocumentSerde +} + +// Differentiates between the mutually exclusive rate cards in the same pricing +// term to be selected by the buyer. +type Selector struct { + + // Category of selector. + Type *string + + // Contract duration. This field supports the ISO 8601 format. + Value *string + + noSmithyDocumentSerde +} + +// An object that contains the SortBy and SortOrder attributes. +type Sort struct { + + // The attribute on which the data is grouped, which can be by StartTime and + // EndTime . The default value is EndTime . + SortBy *string + + // The sorting order, which can be ASCENDING or DESCENDING . The default value is + // DESCENDING . + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// Defines the customer support available for the acceptors when they purchase the +// software. +type SupportTerm struct { + + // Free-text field about the refund policy description that will be shown to + // customers as is on the website and console. + RefundPolicy *string + + // Category of the term being updated. + Type *string + + noSmithyDocumentSerde +} + +// Defines a usage-based pricing model (typically, pay-as-you-go pricing), where +// the customers are charged based on product usage. +type UsageBasedPricingTerm struct { + + // Defines the currency for the prices mentioned in the term. + CurrencyCode *string + + // List of rate cards. + RateCards []UsageBasedRateCardItem + + // Category of the term. + Type *string + + noSmithyDocumentSerde +} + +// Within the pay-as-you-go model defined under UsageBasedPricingTerm , the +// UsageBasedRateCardItem defines an individual rate for a product dimension. +type UsageBasedRateCardItem struct { + + // Defines the per unit rates for product dimensions. + RateCard []RateCardItem + + noSmithyDocumentSerde +} + +// The input fails to satisfy the constraints specified by the service. +type ValidationExceptionField struct { + + // See applicable actions. + // + // This member is required. + Message *string + + // The name of the field associated with the error. + // + // This member is required. + Name *string + + noSmithyDocumentSerde +} + +// Defines the conditions that will keep an agreement created from this offer +// valid. +type ValidityTerm struct { + + // Defines the duration that the agreement remains active. If AgreementStartDate + // isn’t provided, the agreement duration is relative to the agreement signature + // time. The duration is represented in the ISO_8601 format. + AgreementDuration *string + + // Defines the date when the agreement ends. The agreement ends at 23:59:59.999 + // UTC on the date provided. If AgreementEndDate isn’t provided, the agreement end + // date is determined by the validity of individual terms. + AgreementEndDate *time.Time + + // Defines the date when agreement starts. The agreement starts at 00:00:00.000 + // UTC on the date provided. If AgreementStartDate isn’t provided, the agreement + // start date is determined based on agreement signature time. + AgreementStartDate *time.Time + + // Category of the term being updated. + Type *string + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +// UnknownUnionMember is returned when a union member is returned over the wire, +// but has an unknown tag. +type UnknownUnionMember struct { + Tag string + Value []byte + + noSmithyDocumentSerde +} + +func (*UnknownUnionMember) isAcceptedTerm() {} diff --git a/service/marketplaceagreement/types/types_exported_test.go b/service/marketplaceagreement/types/types_exported_test.go new file mode 100644 index 00000000000..55bde0e25a0 --- /dev/null +++ b/service/marketplaceagreement/types/types_exported_test.go @@ -0,0 +1,66 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/marketplaceagreement/types" +) + +func ExampleAcceptedTerm_outputUsage() { + var union types.AcceptedTerm + // type switches can be used to check the union value + switch v := union.(type) { + case *types.AcceptedTermMemberByolPricingTerm: + _ = v.Value // Value is types.ByolPricingTerm + + case *types.AcceptedTermMemberConfigurableUpfrontPricingTerm: + _ = v.Value // Value is types.ConfigurableUpfrontPricingTerm + + case *types.AcceptedTermMemberFixedUpfrontPricingTerm: + _ = v.Value // Value is types.FixedUpfrontPricingTerm + + case *types.AcceptedTermMemberFreeTrialPricingTerm: + _ = v.Value // Value is types.FreeTrialPricingTerm + + case *types.AcceptedTermMemberLegalTerm: + _ = v.Value // Value is types.LegalTerm + + case *types.AcceptedTermMemberPaymentScheduleTerm: + _ = v.Value // Value is types.PaymentScheduleTerm + + case *types.AcceptedTermMemberRecurringPaymentTerm: + _ = v.Value // Value is types.RecurringPaymentTerm + + case *types.AcceptedTermMemberRenewalTerm: + _ = v.Value // Value is types.RenewalTerm + + case *types.AcceptedTermMemberSupportTerm: + _ = v.Value // Value is types.SupportTerm + + case *types.AcceptedTermMemberUsageBasedPricingTerm: + _ = v.Value // Value is types.UsageBasedPricingTerm + + case *types.AcceptedTermMemberValidityTerm: + _ = v.Value // Value is types.ValidityTerm + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.PaymentScheduleTerm +var _ *types.FixedUpfrontPricingTerm +var _ *types.ValidityTerm +var _ *types.RecurringPaymentTerm +var _ *types.UsageBasedPricingTerm +var _ *types.RenewalTerm +var _ *types.FreeTrialPricingTerm +var _ *types.LegalTerm +var _ *types.ConfigurableUpfrontPricingTerm +var _ *types.ByolPricingTerm +var _ *types.SupportTerm diff --git a/service/marketplaceagreement/validators.go b/service/marketplaceagreement/validators.go new file mode 100644 index 00000000000..e16fb7558a8 --- /dev/null +++ b/service/marketplaceagreement/validators.go @@ -0,0 +1,88 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplaceagreement + +import ( + "context" + "fmt" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpDescribeAgreement struct { +} + +func (*validateOpDescribeAgreement) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeAgreement) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeAgreementInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeAgreementInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpGetAgreementTerms struct { +} + +func (*validateOpGetAgreementTerms) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetAgreementTerms) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetAgreementTermsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetAgreementTermsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpDescribeAgreementValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeAgreement{}, middleware.After) +} + +func addOpGetAgreementTermsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetAgreementTerms{}, middleware.After) +} + +func validateOpDescribeAgreementInput(v *DescribeAgreementInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeAgreementInput"} + if v.AgreementId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AgreementId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpGetAgreementTermsInput(v *GetAgreementTermsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetAgreementTermsInput"} + if v.AgreementId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AgreementId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/marketplacecatalog/CHANGELOG.md b/service/marketplacecatalog/CHANGELOG.md index 71a837a2df2..48c973221ca 100644 --- a/service/marketplacecatalog/CHANGELOG.md +++ b/service/marketplacecatalog/CHANGELOG.md @@ -1,3 +1,14 @@ +# v1.22.1 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.0 (2023-11-30) + +* **Feature**: This release enhances the ListEntities API to support new entity type-specific strongly typed filters in the request and entity type-specific strongly typed summaries in the response. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/marketplacecatalog/api_client.go b/service/marketplacecatalog/api_client.go index 977194fa4da..9c084a4ec10 100644 --- a/service/marketplacecatalog/api_client.go +++ b/service/marketplacecatalog/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/marketplacecatalog/api_op_ListEntities.go b/service/marketplacecatalog/api_op_ListEntities.go index fe10336f694..b49a6a21347 100644 --- a/service/marketplacecatalog/api_op_ListEntities.go +++ b/service/marketplacecatalog/api_op_ListEntities.go @@ -35,11 +35,23 @@ type ListEntitiesInput struct { // This member is required. Catalog *string - // The type of entities to retrieve. + // The type of entities to retrieve. Valid values are: ServerProduct , AmiProduct , + // ContainerProduct , DataProduct , SaaSProduct , ProcurementPolicy , Experience , + // Audience , BrandingSettings , Offer , Seller , ResaleAuthorization . // // This member is required. EntityType *string + // A Union object containing filter shapes for all EntityType s. Each + // EntityTypeFilter shape will have filters applicable for that EntityType that + // can be used to search or filter entities. + EntityTypeFilters types.EntityTypeFilters + + // A Union object containing Sort shapes for all EntityType s. Each EntityTypeSort + // shape will have SortBy and SortOrder applicable for fields on that EntityType . + // This can be used to sort the results of the filter query. + EntityTypeSort types.EntityTypeSort + // An array of filter objects. Each filter object contains two attributes, // filterName and filterValues . FilterList []types.Filter @@ -65,7 +77,7 @@ type ListEntitiesInput struct { type ListEntitiesOutput struct { - // Array of EntitySummary object. + // Array of EntitySummary objects. EntitySummaryList []types.EntitySummary // The value of the next token if it exists. Null if there is no more result. diff --git a/service/marketplacecatalog/auth.go b/service/marketplacecatalog/auth.go index 720f956da9f..caeed14ead5 100644 --- a/service/marketplacecatalog/auth.go +++ b/service/marketplacecatalog/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/marketplacecatalog/deserializers.go b/service/marketplacecatalog/deserializers.go index cc069de71ba..6d652c41afe 100644 --- a/service/marketplacecatalog/deserializers.go +++ b/service/marketplacecatalog/deserializers.go @@ -2183,6 +2183,55 @@ func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDenie return nil } +func awsRestjson1_deserializeDocumentAmiProductSummary(v **types.AmiProductSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AmiProductSummary + if *v == nil { + sv = &types.AmiProductSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ProductTitle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AmiProductTitleString to be of type string, got %T instead", value) + } + sv.ProductTitle = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AmiProductVisibilityString to be of type string, got %T instead", value) + } + sv.Visibility = types.AmiProductVisibilityString(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentChangeSetDescription(v *[]types.ChangeSummary, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2423,6 +2472,104 @@ func awsRestjson1_deserializeDocumentChangeSummary(v **types.ChangeSummary, valu return nil } +func awsRestjson1_deserializeDocumentContainerProductSummary(v **types.ContainerProductSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ContainerProductSummary + if *v == nil { + sv = &types.ContainerProductSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ProductTitle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContainerProductTitleString to be of type string, got %T instead", value) + } + sv.ProductTitle = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ContainerProductVisibilityString to be of type string, got %T instead", value) + } + sv.Visibility = types.ContainerProductVisibilityString(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentDataProductSummary(v **types.DataProductSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DataProductSummary + if *v == nil { + sv = &types.DataProductSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ProductTitle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataProductTitleString to be of type string, got %T instead", value) + } + sv.ProductTitle = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DataProductVisibilityString to be of type string, got %T instead", value) + } + sv.Visibility = types.DataProductVisibilityString(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentEntity(v **types.Entity, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2494,6 +2641,21 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu for key, value := range shape { switch key { + case "AmiProductSummary": + if err := awsRestjson1_deserializeDocumentAmiProductSummary(&sv.AmiProductSummary, value); err != nil { + return err + } + + case "ContainerProductSummary": + if err := awsRestjson1_deserializeDocumentContainerProductSummary(&sv.ContainerProductSummary, value); err != nil { + return err + } + + case "DataProductSummary": + if err := awsRestjson1_deserializeDocumentDataProductSummary(&sv.DataProductSummary, value); err != nil { + return err + } + case "EntityArn": if value != nil { jtv, ok := value.(string) @@ -2539,6 +2701,21 @@ func awsRestjson1_deserializeDocumentEntitySummary(v **types.EntitySummary, valu sv.Name = ptr.String(jtv) } + case "OfferSummary": + if err := awsRestjson1_deserializeDocumentOfferSummary(&sv.OfferSummary, value); err != nil { + return err + } + + case "ResaleAuthorizationSummary": + if err := awsRestjson1_deserializeDocumentResaleAuthorizationSummary(&sv.ResaleAuthorizationSummary, value); err != nil { + return err + } + + case "SaaSProductSummary": + if err := awsRestjson1_deserializeDocumentSaaSProductSummary(&sv.SaaSProductSummary, value); err != nil { + return err + } + case "Visibility": if value != nil { jtv, ok := value.(string) @@ -2722,6 +2899,294 @@ func awsRestjson1_deserializeDocumentJsonDocumentType(v *document.Interface, val return nil } +func awsRestjson1_deserializeDocumentOfferBuyerAccountsList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OfferBuyerAccountsString to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentOfferSummary(v **types.OfferSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.OfferSummary + if *v == nil { + sv = &types.OfferSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AvailabilityEndDate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) + } + sv.AvailabilityEndDate = ptr.String(jtv) + } + + case "BuyerAccounts": + if err := awsRestjson1_deserializeDocumentOfferBuyerAccountsList(&sv.BuyerAccounts, value); err != nil { + return err + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OfferNameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "ProductId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OfferProductIdString to be of type string, got %T instead", value) + } + sv.ProductId = ptr.String(jtv) + } + + case "ReleaseDate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) + } + sv.ReleaseDate = ptr.String(jtv) + } + + case "State": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OfferStateString to be of type string, got %T instead", value) + } + sv.State = types.OfferStateString(jtv) + } + + case "Targeting": + if err := awsRestjson1_deserializeDocumentOfferTargetingList(&sv.Targeting, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentOfferTargetingList(v *[]types.OfferTargetingString, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.OfferTargetingString + if *v == nil { + cv = []types.OfferTargetingString{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.OfferTargetingString + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected OfferTargetingString to be of type string, got %T instead", value) + } + col = types.OfferTargetingString(jtv) + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsRestjson1_deserializeDocumentResaleAuthorizationSummary(v **types.ResaleAuthorizationSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResaleAuthorizationSummary + if *v == nil { + sv = &types.ResaleAuthorizationSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AvailabilityEndDate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) + } + sv.AvailabilityEndDate = ptr.String(jtv) + } + + case "CreatedDate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DateTimeISO8601 to be of type string, got %T instead", value) + } + sv.CreatedDate = ptr.String(jtv) + } + + case "ManufacturerAccountId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationManufacturerAccountIdString to be of type string, got %T instead", value) + } + sv.ManufacturerAccountId = ptr.String(jtv) + } + + case "ManufacturerLegalName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationManufacturerLegalNameString to be of type string, got %T instead", value) + } + sv.ManufacturerLegalName = ptr.String(jtv) + } + + case "Name": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationNameString to be of type string, got %T instead", value) + } + sv.Name = ptr.String(jtv) + } + + case "OfferExtendedStatus": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationOfferExtendedStatusString to be of type string, got %T instead", value) + } + sv.OfferExtendedStatus = ptr.String(jtv) + } + + case "ProductId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationProductIdString to be of type string, got %T instead", value) + } + sv.ProductId = ptr.String(jtv) + } + + case "ProductName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationProductNameString to be of type string, got %T instead", value) + } + sv.ProductName = ptr.String(jtv) + } + + case "ResellerAccountID": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationResellerAccountIDString to be of type string, got %T instead", value) + } + sv.ResellerAccountID = ptr.String(jtv) + } + + case "ResellerLegalName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationResellerLegalNameString to be of type string, got %T instead", value) + } + sv.ResellerLegalName = ptr.String(jtv) + } + + case "Status": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResaleAuthorizationStatusString to be of type string, got %T instead", value) + } + sv.Status = types.ResaleAuthorizationStatusString(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentResourceIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -2878,6 +3343,55 @@ func awsRestjson1_deserializeDocumentResourceNotSupportedException(v **types.Res return nil } +func awsRestjson1_deserializeDocumentSaaSProductSummary(v **types.SaaSProductSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SaaSProductSummary + if *v == nil { + sv = &types.SaaSProductSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ProductTitle": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SaaSProductTitleString to be of type string, got %T instead", value) + } + sv.ProductTitle = ptr.String(jtv) + } + + case "Visibility": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SaaSProductVisibilityString to be of type string, got %T instead", value) + } + sv.Visibility = types.SaaSProductVisibilityString(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/marketplacecatalog/endpoints.go b/service/marketplacecatalog/endpoints.go index ab9aa803aa8..4e09bf38b86 100644 --- a/service/marketplacecatalog/endpoints.go +++ b/service/marketplacecatalog/endpoints.go @@ -366,7 +366,7 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { + if _PartitionResult.SupportsFIPS == true { uriString := func() string { var out strings.Builder out.WriteString("https://catalog.marketplace-fips.") diff --git a/service/marketplacecatalog/generated.json b/service/marketplacecatalog/generated.json index 2276f904c7a..b96d9cd5c15 100644 --- a/service/marketplacecatalog/generated.json +++ b/service/marketplacecatalog/generated.json @@ -40,6 +40,7 @@ "types/enums.go", "types/errors.go", "types/types.go", + "types/types_exported_test.go", "validators.go" ], "go": "1.15", diff --git a/service/marketplacecatalog/go.mod b/service/marketplacecatalog/go.mod index ee3fe507e25..daf3322d3c4 100644 --- a/service/marketplacecatalog/go.mod +++ b/service/marketplacecatalog/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecatalog go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacecatalog/go.sum b/service/marketplacecatalog/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/marketplacecatalog/go.sum +++ b/service/marketplacecatalog/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecatalog/go_module_metadata.go b/service/marketplacecatalog/go_module_metadata.go index 2052640f91e..dfc8bf8414b 100644 --- a/service/marketplacecatalog/go_module_metadata.go +++ b/service/marketplacecatalog/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacecatalog // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.22.1" diff --git a/service/marketplacecatalog/options.go b/service/marketplacecatalog/options.go index 40ee55dce3a..10d21ee2f45 100644 --- a/service/marketplacecatalog/options.go +++ b/service/marketplacecatalog/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplacecatalog/serializers.go b/service/marketplacecatalog/serializers.go index fd3a3338337..b0452f2358f 100644 --- a/service/marketplacecatalog/serializers.go +++ b/service/marketplacecatalog/serializers.go @@ -504,6 +504,20 @@ func awsRestjson1_serializeOpDocumentListEntitiesInput(v *ListEntitiesInput, val ok.String(*v.EntityType) } + if v.EntityTypeFilters != nil { + ok := object.Key("EntityTypeFilters") + if err := awsRestjson1_serializeDocumentEntityTypeFilters(v.EntityTypeFilters, ok); err != nil { + return err + } + } + + if v.EntityTypeSort != nil { + ok := object.Key("EntityTypeSort") + if err := awsRestjson1_serializeDocumentEntityTypeSort(v.EntityTypeSort, ok); err != nil { + return err + } + } + if v.FilterList != nil { ok := object.Key("FilterList") if err := awsRestjson1_serializeDocumentFilterList(v.FilterList, ok); err != nil { @@ -954,6 +968,169 @@ func awsRestjson1_serializeOpDocumentUntagResourceInput(v *UntagResourceInput, v return nil } +func awsRestjson1_serializeDocumentAmiProductEntityIdFilter(v *types.AmiProductEntityIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentAmiProductEntityIdFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAmiProductEntityIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAmiProductFilters(v *types.AmiProductFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityId != nil { + ok := object.Key("EntityId") + if err := awsRestjson1_serializeDocumentAmiProductEntityIdFilter(v.EntityId, ok); err != nil { + return err + } + } + + if v.LastModifiedDate != nil { + ok := object.Key("LastModifiedDate") + if err := awsRestjson1_serializeDocumentAmiProductLastModifiedDateFilter(v.LastModifiedDate, ok); err != nil { + return err + } + } + + if v.ProductTitle != nil { + ok := object.Key("ProductTitle") + if err := awsRestjson1_serializeDocumentAmiProductTitleFilter(v.ProductTitle, ok); err != nil { + return err + } + } + + if v.Visibility != nil { + ok := object.Key("Visibility") + if err := awsRestjson1_serializeDocumentAmiProductVisibilityFilter(v.Visibility, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAmiProductLastModifiedDateFilter(v *types.AmiProductLastModifiedDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentAmiProductLastModifiedDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAmiProductLastModifiedDateFilterDateRange(v *types.AmiProductLastModifiedDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentAmiProductSort(v *types.AmiProductSort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsRestjson1_serializeDocumentAmiProductTitleFilter(v *types.AmiProductTitleFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentAmiProductTitleFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentAmiProductTitleFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentAmiProductVisibilityFilter(v *types.AmiProductVisibilityFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentAmiProductVisibilityFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentAmiProductVisibilityFilterValueList(v []types.AmiProductVisibilityString, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + func awsRestjson1_serializeDocumentChange(v *types.Change, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -997,79 +1174,1515 @@ func awsRestjson1_serializeDocumentChange(v *types.Change, value smithyjson.Valu return nil } -func awsRestjson1_serializeDocumentEntity(v *types.Entity, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContainerProductEntityIdFilter(v *types.ContainerProductEntityIdFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Identifier != nil { - ok := object.Key("Identifier") - ok.String(*v.Identifier) + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentContainerProductEntityIdFilterValueList(v.ValueList, ok); err != nil { + return err + } } - if v.Type != nil { - ok := object.Key("Type") - ok.String(*v.Type) + return nil +} + +func awsRestjson1_serializeDocumentContainerProductEntityIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentContainerProductFilters(v *types.ContainerProductFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityId != nil { + ok := object.Key("EntityId") + if err := awsRestjson1_serializeDocumentContainerProductEntityIdFilter(v.EntityId, ok); err != nil { + return err + } + } + + if v.LastModifiedDate != nil { + ok := object.Key("LastModifiedDate") + if err := awsRestjson1_serializeDocumentContainerProductLastModifiedDateFilter(v.LastModifiedDate, ok); err != nil { + return err + } + } + + if v.ProductTitle != nil { + ok := object.Key("ProductTitle") + if err := awsRestjson1_serializeDocumentContainerProductTitleFilter(v.ProductTitle, ok); err != nil { + return err + } + } + + if v.Visibility != nil { + ok := object.Key("Visibility") + if err := awsRestjson1_serializeDocumentContainerProductVisibilityFilter(v.Visibility, ok); err != nil { + return err + } } return nil } -func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContainerProductLastModifiedDateFilter(v *types.ContainerProductLastModifiedDateFilter, value smithyjson.Value) error { object := value.Object() defer object.Close() - if v.Name != nil { - ok := object.Key("Name") - ok.String(*v.Name) + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentContainerProductLastModifiedDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentContainerProductLastModifiedDateFilterDateRange(v *types.ContainerProductLastModifiedDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentContainerProductSort(v *types.ContainerProductSort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) } + return nil +} + +func awsRestjson1_serializeDocumentContainerProductTitleFilter(v *types.ContainerProductTitleFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + if v.ValueList != nil { ok := object.Key("ValueList") - if err := awsRestjson1_serializeDocumentValueList(v.ValueList, ok); err != nil { + if err := awsRestjson1_serializeDocumentContainerProductTitleFilterValueList(v.ValueList, ok); err != nil { return err } } + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + return nil } -func awsRestjson1_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentContainerProductTitleFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentContainerProductVisibilityFilter(v *types.ContainerProductVisibilityFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentContainerProductVisibilityFilterValueList(v.ValueList, ok); err != nil { return err } } + return nil } -func awsRestjson1_serializeDocumentJsonDocumentType(v document.Interface, value smithyjson.Value) error { - if v == nil { - return nil - } - if !internaldocument.IsInterface(v) { - return fmt.Errorf("%T is not a compatible document type", v) +func awsRestjson1_serializeDocumentContainerProductVisibilityFilterValueList(v []types.ContainerProductVisibilityString, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) } - db, err := v.MarshalSmithyDocument() - if err != nil { - return err + return nil +} + +func awsRestjson1_serializeDocumentDataProductEntityIdFilter(v *types.DataProductEntityIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentDataProductEntityIdFilterValueList(v.ValueList, ok); err != nil { + return err + } } - value.Write(db) + return nil } -func awsRestjson1_serializeDocumentRequestedChangeList(v []types.Change, value smithyjson.Value) error { +func awsRestjson1_serializeDocumentDataProductEntityIdFilterValueList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() for i := range v { av := array.Value() - if err := awsRestjson1_serializeDocumentChange(&v[i], av); err != nil { - return err - } + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentDataProductFilters(v *types.DataProductFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityId != nil { + ok := object.Key("EntityId") + if err := awsRestjson1_serializeDocumentDataProductEntityIdFilter(v.EntityId, ok); err != nil { + return err + } + } + + if v.LastModifiedDate != nil { + ok := object.Key("LastModifiedDate") + if err := awsRestjson1_serializeDocumentDataProductLastModifiedDateFilter(v.LastModifiedDate, ok); err != nil { + return err + } + } + + if v.ProductTitle != nil { + ok := object.Key("ProductTitle") + if err := awsRestjson1_serializeDocumentDataProductTitleFilter(v.ProductTitle, ok); err != nil { + return err + } + } + + if v.Visibility != nil { + ok := object.Key("Visibility") + if err := awsRestjson1_serializeDocumentDataProductVisibilityFilter(v.Visibility, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDataProductLastModifiedDateFilter(v *types.DataProductLastModifiedDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentDataProductLastModifiedDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDataProductLastModifiedDateFilterDateRange(v *types.DataProductLastModifiedDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataProductSort(v *types.DataProductSort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataProductTitleFilter(v *types.DataProductTitleFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentDataProductTitleFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentDataProductTitleFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentDataProductVisibilityFilter(v *types.DataProductVisibilityFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentDataProductVisibilityFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDataProductVisibilityFilterValueList(v []types.DataProductVisibilityString, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentEntity(v *types.Entity, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Identifier != nil { + ok := object.Key("Identifier") + ok.String(*v.Identifier) + } + + if v.Type != nil { + ok := object.Key("Type") + ok.String(*v.Type) + } + + return nil +} + +func awsRestjson1_serializeDocumentEntityTypeFilters(v types.EntityTypeFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.EntityTypeFiltersMemberAmiProductFilters: + av := object.Key("AmiProductFilters") + if err := awsRestjson1_serializeDocumentAmiProductFilters(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeFiltersMemberContainerProductFilters: + av := object.Key("ContainerProductFilters") + if err := awsRestjson1_serializeDocumentContainerProductFilters(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeFiltersMemberDataProductFilters: + av := object.Key("DataProductFilters") + if err := awsRestjson1_serializeDocumentDataProductFilters(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeFiltersMemberOfferFilters: + av := object.Key("OfferFilters") + if err := awsRestjson1_serializeDocumentOfferFilters(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeFiltersMemberResaleAuthorizationFilters: + av := object.Key("ResaleAuthorizationFilters") + if err := awsRestjson1_serializeDocumentResaleAuthorizationFilters(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeFiltersMemberSaaSProductFilters: + av := object.Key("SaaSProductFilters") + if err := awsRestjson1_serializeDocumentSaaSProductFilters(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentEntityTypeSort(v types.EntityTypeSort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.EntityTypeSortMemberAmiProductSort: + av := object.Key("AmiProductSort") + if err := awsRestjson1_serializeDocumentAmiProductSort(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeSortMemberContainerProductSort: + av := object.Key("ContainerProductSort") + if err := awsRestjson1_serializeDocumentContainerProductSort(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeSortMemberDataProductSort: + av := object.Key("DataProductSort") + if err := awsRestjson1_serializeDocumentDataProductSort(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeSortMemberOfferSort: + av := object.Key("OfferSort") + if err := awsRestjson1_serializeDocumentOfferSort(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeSortMemberResaleAuthorizationSort: + av := object.Key("ResaleAuthorizationSort") + if err := awsRestjson1_serializeDocumentResaleAuthorizationSort(&uv.Value, av); err != nil { + return err + } + + case *types.EntityTypeSortMemberSaaSProductSort: + av := object.Key("SaaSProductSort") + if err := awsRestjson1_serializeDocumentSaaSProductSort(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsRestjson1_serializeDocumentFilter(v *types.Filter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("Name") + ok.String(*v.Name) + } + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentFilterList(v []types.Filter, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentFilter(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentJsonDocumentType(v document.Interface, value smithyjson.Value) error { + if v == nil { + return nil + } + if !internaldocument.IsInterface(v) { + return fmt.Errorf("%T is not a compatible document type", v) + } + db, err := v.MarshalSmithyDocument() + if err != nil { + return err + } + value.Write(db) + return nil +} + +func awsRestjson1_serializeDocumentOfferAvailabilityEndDateFilter(v *types.OfferAvailabilityEndDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentOfferAvailabilityEndDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferAvailabilityEndDateFilterDateRange(v *types.OfferAvailabilityEndDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferBuyerAccountsFilter(v *types.OfferBuyerAccountsFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferEntityIdFilter(v *types.OfferEntityIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentOfferEntityIdFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferEntityIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentOfferFilters(v *types.OfferFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AvailabilityEndDate != nil { + ok := object.Key("AvailabilityEndDate") + if err := awsRestjson1_serializeDocumentOfferAvailabilityEndDateFilter(v.AvailabilityEndDate, ok); err != nil { + return err + } + } + + if v.BuyerAccounts != nil { + ok := object.Key("BuyerAccounts") + if err := awsRestjson1_serializeDocumentOfferBuyerAccountsFilter(v.BuyerAccounts, ok); err != nil { + return err + } + } + + if v.EntityId != nil { + ok := object.Key("EntityId") + if err := awsRestjson1_serializeDocumentOfferEntityIdFilter(v.EntityId, ok); err != nil { + return err + } + } + + if v.LastModifiedDate != nil { + ok := object.Key("LastModifiedDate") + if err := awsRestjson1_serializeDocumentOfferLastModifiedDateFilter(v.LastModifiedDate, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + if err := awsRestjson1_serializeDocumentOfferNameFilter(v.Name, ok); err != nil { + return err + } + } + + if v.ProductId != nil { + ok := object.Key("ProductId") + if err := awsRestjson1_serializeDocumentOfferProductIdFilter(v.ProductId, ok); err != nil { + return err + } + } + + if v.ReleaseDate != nil { + ok := object.Key("ReleaseDate") + if err := awsRestjson1_serializeDocumentOfferReleaseDateFilter(v.ReleaseDate, ok); err != nil { + return err + } + } + + if v.State != nil { + ok := object.Key("State") + if err := awsRestjson1_serializeDocumentOfferStateFilter(v.State, ok); err != nil { + return err + } + } + + if v.Targeting != nil { + ok := object.Key("Targeting") + if err := awsRestjson1_serializeDocumentOfferTargetingFilter(v.Targeting, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferLastModifiedDateFilter(v *types.OfferLastModifiedDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentOfferLastModifiedDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferLastModifiedDateFilterDateRange(v *types.OfferLastModifiedDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferNameFilter(v *types.OfferNameFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentOfferNameFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferNameFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentOfferProductIdFilter(v *types.OfferProductIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentOfferProductIdFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferProductIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentOfferReleaseDateFilter(v *types.OfferReleaseDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentOfferReleaseDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferReleaseDateFilterDateRange(v *types.OfferReleaseDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferSort(v *types.OfferSort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferStateFilter(v *types.OfferStateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentOfferStateFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferStateFilterValueList(v []types.OfferStateString, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentOfferTargetingFilter(v *types.OfferTargetingFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentOfferTargetingFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentOfferTargetingFilterValueList(v []types.OfferTargetingString, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentRequestedChangeList(v []types.Change, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentChange(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationAvailabilityEndDateFilter(v *types.ResaleAuthorizationAvailabilityEndDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentResaleAuthorizationAvailabilityEndDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationAvailabilityEndDateFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationAvailabilityEndDateFilterDateRange(v *types.ResaleAuthorizationAvailabilityEndDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationAvailabilityEndDateFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationCreatedDateFilter(v *types.ResaleAuthorizationCreatedDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentResaleAuthorizationCreatedDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationCreatedDateFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationCreatedDateFilterDateRange(v *types.ResaleAuthorizationCreatedDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationCreatedDateFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationEntityIdFilter(v *types.ResaleAuthorizationEntityIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationEntityIdFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationEntityIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationFilters(v *types.ResaleAuthorizationFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AvailabilityEndDate != nil { + ok := object.Key("AvailabilityEndDate") + if err := awsRestjson1_serializeDocumentResaleAuthorizationAvailabilityEndDateFilter(v.AvailabilityEndDate, ok); err != nil { + return err + } + } + + if v.CreatedDate != nil { + ok := object.Key("CreatedDate") + if err := awsRestjson1_serializeDocumentResaleAuthorizationCreatedDateFilter(v.CreatedDate, ok); err != nil { + return err + } + } + + if v.EntityId != nil { + ok := object.Key("EntityId") + if err := awsRestjson1_serializeDocumentResaleAuthorizationEntityIdFilter(v.EntityId, ok); err != nil { + return err + } + } + + if v.LastModifiedDate != nil { + ok := object.Key("LastModifiedDate") + if err := awsRestjson1_serializeDocumentResaleAuthorizationLastModifiedDateFilter(v.LastModifiedDate, ok); err != nil { + return err + } + } + + if v.ManufacturerAccountId != nil { + ok := object.Key("ManufacturerAccountId") + if err := awsRestjson1_serializeDocumentResaleAuthorizationManufacturerAccountIdFilter(v.ManufacturerAccountId, ok); err != nil { + return err + } + } + + if v.ManufacturerLegalName != nil { + ok := object.Key("ManufacturerLegalName") + if err := awsRestjson1_serializeDocumentResaleAuthorizationManufacturerLegalNameFilter(v.ManufacturerLegalName, ok); err != nil { + return err + } + } + + if v.Name != nil { + ok := object.Key("Name") + if err := awsRestjson1_serializeDocumentResaleAuthorizationNameFilter(v.Name, ok); err != nil { + return err + } + } + + if v.OfferExtendedStatus != nil { + ok := object.Key("OfferExtendedStatus") + if err := awsRestjson1_serializeDocumentResaleAuthorizationOfferExtendedStatusFilter(v.OfferExtendedStatus, ok); err != nil { + return err + } + } + + if v.ProductId != nil { + ok := object.Key("ProductId") + if err := awsRestjson1_serializeDocumentResaleAuthorizationProductIdFilter(v.ProductId, ok); err != nil { + return err + } + } + + if v.ProductName != nil { + ok := object.Key("ProductName") + if err := awsRestjson1_serializeDocumentResaleAuthorizationProductNameFilter(v.ProductName, ok); err != nil { + return err + } + } + + if v.ResellerAccountID != nil { + ok := object.Key("ResellerAccountID") + if err := awsRestjson1_serializeDocumentResaleAuthorizationResellerAccountIDFilter(v.ResellerAccountID, ok); err != nil { + return err + } + } + + if v.ResellerLegalName != nil { + ok := object.Key("ResellerLegalName") + if err := awsRestjson1_serializeDocumentResaleAuthorizationResellerLegalNameFilter(v.ResellerLegalName, ok); err != nil { + return err + } + } + + if v.Status != nil { + ok := object.Key("Status") + if err := awsRestjson1_serializeDocumentResaleAuthorizationStatusFilter(v.Status, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationLastModifiedDateFilter(v *types.ResaleAuthorizationLastModifiedDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentResaleAuthorizationLastModifiedDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationLastModifiedDateFilterDateRange(v *types.ResaleAuthorizationLastModifiedDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationManufacturerAccountIdFilter(v *types.ResaleAuthorizationManufacturerAccountIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationManufacturerAccountIdFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationManufacturerAccountIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationManufacturerLegalNameFilter(v *types.ResaleAuthorizationManufacturerLegalNameFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationManufacturerLegalNameFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationManufacturerLegalNameFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationNameFilter(v *types.ResaleAuthorizationNameFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationNameFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationNameFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationOfferExtendedStatusFilter(v *types.ResaleAuthorizationOfferExtendedStatusFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationOfferExtendedStatusFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationOfferExtendedStatusFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationProductIdFilter(v *types.ResaleAuthorizationProductIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationProductIdFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationProductIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationProductNameFilter(v *types.ResaleAuthorizationProductNameFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationProductNameFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationProductNameFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationResellerAccountIDFilter(v *types.ResaleAuthorizationResellerAccountIDFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationResellerAccountIDFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationResellerAccountIDFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationResellerLegalNameFilter(v *types.ResaleAuthorizationResellerLegalNameFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationResellerLegalNameFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationResellerLegalNameFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationSort(v *types.ResaleAuthorizationSort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationStatusFilter(v *types.ResaleAuthorizationStatusFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentResaleAuthorizationStatusFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentResaleAuthorizationStatusFilterValueList(v []types.ResaleAuthorizationStatusString, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductEntityIdFilter(v *types.SaaSProductEntityIdFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentSaaSProductEntityIdFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductEntityIdFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductFilters(v *types.SaaSProductFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EntityId != nil { + ok := object.Key("EntityId") + if err := awsRestjson1_serializeDocumentSaaSProductEntityIdFilter(v.EntityId, ok); err != nil { + return err + } + } + + if v.LastModifiedDate != nil { + ok := object.Key("LastModifiedDate") + if err := awsRestjson1_serializeDocumentSaaSProductLastModifiedDateFilter(v.LastModifiedDate, ok); err != nil { + return err + } + } + + if v.ProductTitle != nil { + ok := object.Key("ProductTitle") + if err := awsRestjson1_serializeDocumentSaaSProductTitleFilter(v.ProductTitle, ok); err != nil { + return err + } + } + + if v.Visibility != nil { + ok := object.Key("Visibility") + if err := awsRestjson1_serializeDocumentSaaSProductVisibilityFilter(v.Visibility, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductLastModifiedDateFilter(v *types.SaaSProductLastModifiedDateFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DateRange != nil { + ok := object.Key("DateRange") + if err := awsRestjson1_serializeDocumentSaaSProductLastModifiedDateFilterDateRange(v.DateRange, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductLastModifiedDateFilterDateRange(v *types.SaaSProductLastModifiedDateFilterDateRange, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AfterValue != nil { + ok := object.Key("AfterValue") + ok.String(*v.AfterValue) + } + + if v.BeforeValue != nil { + ok := object.Key("BeforeValue") + ok.String(*v.BeforeValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductSort(v *types.SaaSProductSort, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SortBy) > 0 { + ok := object.Key("SortBy") + ok.String(string(v.SortBy)) + } + + if len(v.SortOrder) > 0 { + ok := object.Key("SortOrder") + ok.String(string(v.SortOrder)) + } + + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductTitleFilter(v *types.SaaSProductTitleFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentSaaSProductTitleFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + if v.WildCardValue != nil { + ok := object.Key("WildCardValue") + ok.String(*v.WildCardValue) + } + + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductTitleFilterValueList(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductVisibilityFilter(v *types.SaaSProductVisibilityFilter, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ValueList != nil { + ok := object.Key("ValueList") + if err := awsRestjson1_serializeDocumentSaaSProductVisibilityFilterValueList(v.ValueList, ok); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeDocumentSaaSProductVisibilityFilterValueList(v []types.SaaSProductVisibilityString, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) } return nil } diff --git a/service/marketplacecatalog/types/enums.go b/service/marketplacecatalog/types/enums.go index 5e58925f14f..98af3f5e5c4 100644 --- a/service/marketplacecatalog/types/enums.go +++ b/service/marketplacecatalog/types/enums.go @@ -2,6 +2,50 @@ package types +type AmiProductSortBy string + +// Enum values for AmiProductSortBy +const ( + AmiProductSortByEntityId AmiProductSortBy = "EntityId" + AmiProductSortByLastModifiedDate AmiProductSortBy = "LastModifiedDate" + AmiProductSortByProductTitle AmiProductSortBy = "ProductTitle" + AmiProductSortByVisibility AmiProductSortBy = "Visibility" +) + +// Values returns all known values for AmiProductSortBy. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (AmiProductSortBy) Values() []AmiProductSortBy { + return []AmiProductSortBy{ + "EntityId", + "LastModifiedDate", + "ProductTitle", + "Visibility", + } +} + +type AmiProductVisibilityString string + +// Enum values for AmiProductVisibilityString +const ( + AmiProductVisibilityStringLimited AmiProductVisibilityString = "Limited" + AmiProductVisibilityStringPublic AmiProductVisibilityString = "Public" + AmiProductVisibilityStringRestricted AmiProductVisibilityString = "Restricted" + AmiProductVisibilityStringDraft AmiProductVisibilityString = "Draft" +) + +// Values returns all known values for AmiProductVisibilityString. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (AmiProductVisibilityString) Values() []AmiProductVisibilityString { + return []AmiProductVisibilityString{ + "Limited", + "Public", + "Restricted", + "Draft", + } +} + type ChangeStatus string // Enum values for ChangeStatus @@ -26,6 +70,97 @@ func (ChangeStatus) Values() []ChangeStatus { } } +type ContainerProductSortBy string + +// Enum values for ContainerProductSortBy +const ( + ContainerProductSortByEntityId ContainerProductSortBy = "EntityId" + ContainerProductSortByLastModifiedDate ContainerProductSortBy = "LastModifiedDate" + ContainerProductSortByProductTitle ContainerProductSortBy = "ProductTitle" + ContainerProductSortByVisibility ContainerProductSortBy = "Visibility" +) + +// Values returns all known values for ContainerProductSortBy. Note that this can +// be expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (ContainerProductSortBy) Values() []ContainerProductSortBy { + return []ContainerProductSortBy{ + "EntityId", + "LastModifiedDate", + "ProductTitle", + "Visibility", + } +} + +type ContainerProductVisibilityString string + +// Enum values for ContainerProductVisibilityString +const ( + ContainerProductVisibilityStringLimited ContainerProductVisibilityString = "Limited" + ContainerProductVisibilityStringPublic ContainerProductVisibilityString = "Public" + ContainerProductVisibilityStringRestricted ContainerProductVisibilityString = "Restricted" + ContainerProductVisibilityStringDraft ContainerProductVisibilityString = "Draft" +) + +// Values returns all known values for ContainerProductVisibilityString. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (ContainerProductVisibilityString) Values() []ContainerProductVisibilityString { + return []ContainerProductVisibilityString{ + "Limited", + "Public", + "Restricted", + "Draft", + } +} + +type DataProductSortBy string + +// Enum values for DataProductSortBy +const ( + DataProductSortByEntityId DataProductSortBy = "EntityId" + DataProductSortByProductTitle DataProductSortBy = "ProductTitle" + DataProductSortByVisibility DataProductSortBy = "Visibility" + DataProductSortByLastModifiedDate DataProductSortBy = "LastModifiedDate" +) + +// Values returns all known values for DataProductSortBy. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (DataProductSortBy) Values() []DataProductSortBy { + return []DataProductSortBy{ + "EntityId", + "ProductTitle", + "Visibility", + "LastModifiedDate", + } +} + +type DataProductVisibilityString string + +// Enum values for DataProductVisibilityString +const ( + DataProductVisibilityStringLimited DataProductVisibilityString = "Limited" + DataProductVisibilityStringPublic DataProductVisibilityString = "Public" + DataProductVisibilityStringRestricted DataProductVisibilityString = "Restricted" + DataProductVisibilityStringUnavailable DataProductVisibilityString = "Unavailable" + DataProductVisibilityStringDraft DataProductVisibilityString = "Draft" +) + +// Values returns all known values for DataProductVisibilityString. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (DataProductVisibilityString) Values() []DataProductVisibilityString { + return []DataProductVisibilityString{ + "Limited", + "Public", + "Restricted", + "Unavailable", + "Draft", + } +} + type FailureCode string // Enum values for FailureCode @@ -44,6 +179,78 @@ func (FailureCode) Values() []FailureCode { } } +type OfferSortBy string + +// Enum values for OfferSortBy +const ( + OfferSortByEntityId OfferSortBy = "EntityId" + OfferSortByName OfferSortBy = "Name" + OfferSortByProductId OfferSortBy = "ProductId" + OfferSortByReleaseDate OfferSortBy = "ReleaseDate" + OfferSortByAvailabilityEndDate OfferSortBy = "AvailabilityEndDate" + OfferSortByBuyerAccounts OfferSortBy = "BuyerAccounts" + OfferSortByState OfferSortBy = "State" + OfferSortByTargeting OfferSortBy = "Targeting" + OfferSortByLastModifiedDate OfferSortBy = "LastModifiedDate" +) + +// Values returns all known values for OfferSortBy. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (OfferSortBy) Values() []OfferSortBy { + return []OfferSortBy{ + "EntityId", + "Name", + "ProductId", + "ReleaseDate", + "AvailabilityEndDate", + "BuyerAccounts", + "State", + "Targeting", + "LastModifiedDate", + } +} + +type OfferStateString string + +// Enum values for OfferStateString +const ( + OfferStateStringDraft OfferStateString = "Draft" + OfferStateStringReleased OfferStateString = "Released" +) + +// Values returns all known values for OfferStateString. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (OfferStateString) Values() []OfferStateString { + return []OfferStateString{ + "Draft", + "Released", + } +} + +type OfferTargetingString string + +// Enum values for OfferTargetingString +const ( + OfferTargetingStringBuyerAccounts OfferTargetingString = "BuyerAccounts" + OfferTargetingStringParticipatingPrograms OfferTargetingString = "ParticipatingPrograms" + OfferTargetingStringCountryCodes OfferTargetingString = "CountryCodes" + OfferTargetingStringNone OfferTargetingString = "None" +) + +// Values returns all known values for OfferTargetingString. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (OfferTargetingString) Values() []OfferTargetingString { + return []OfferTargetingString{ + "BuyerAccounts", + "ParticipatingPrograms", + "CountryCodes", + "None", + } +} + type OwnershipType string // Enum values for OwnershipType @@ -62,6 +269,111 @@ func (OwnershipType) Values() []OwnershipType { } } +type ResaleAuthorizationSortBy string + +// Enum values for ResaleAuthorizationSortBy +const ( + ResaleAuthorizationSortByEntityId ResaleAuthorizationSortBy = "EntityId" + ResaleAuthorizationSortByName ResaleAuthorizationSortBy = "Name" + ResaleAuthorizationSortByProductId ResaleAuthorizationSortBy = "ProductId" + ResaleAuthorizationSortByProductName ResaleAuthorizationSortBy = "ProductName" + ResaleAuthorizationSortByManufacturerAccountId ResaleAuthorizationSortBy = "ManufacturerAccountId" + ResaleAuthorizationSortByManufacturerLegalName ResaleAuthorizationSortBy = "ManufacturerLegalName" + ResaleAuthorizationSortByResellerAccountID ResaleAuthorizationSortBy = "ResellerAccountID" + ResaleAuthorizationSortByResellerLegalName ResaleAuthorizationSortBy = "ResellerLegalName" + ResaleAuthorizationSortByStatus ResaleAuthorizationSortBy = "Status" + ResaleAuthorizationSortByOfferExtendedStatus ResaleAuthorizationSortBy = "OfferExtendedStatus" + ResaleAuthorizationSortByCreatedDate ResaleAuthorizationSortBy = "CreatedDate" + ResaleAuthorizationSortByAvailabilityEndDate ResaleAuthorizationSortBy = "AvailabilityEndDate" + ResaleAuthorizationSortByLastModifiedDate ResaleAuthorizationSortBy = "LastModifiedDate" +) + +// Values returns all known values for ResaleAuthorizationSortBy. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (ResaleAuthorizationSortBy) Values() []ResaleAuthorizationSortBy { + return []ResaleAuthorizationSortBy{ + "EntityId", + "Name", + "ProductId", + "ProductName", + "ManufacturerAccountId", + "ManufacturerLegalName", + "ResellerAccountID", + "ResellerLegalName", + "Status", + "OfferExtendedStatus", + "CreatedDate", + "AvailabilityEndDate", + "LastModifiedDate", + } +} + +type ResaleAuthorizationStatusString string + +// Enum values for ResaleAuthorizationStatusString +const ( + ResaleAuthorizationStatusStringDraft ResaleAuthorizationStatusString = "Draft" + ResaleAuthorizationStatusStringActive ResaleAuthorizationStatusString = "Active" + ResaleAuthorizationStatusStringRestricted ResaleAuthorizationStatusString = "Restricted" +) + +// Values returns all known values for ResaleAuthorizationStatusString. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. The ordering of this slice is not guaranteed to be stable across +// updates. +func (ResaleAuthorizationStatusString) Values() []ResaleAuthorizationStatusString { + return []ResaleAuthorizationStatusString{ + "Draft", + "Active", + "Restricted", + } +} + +type SaaSProductSortBy string + +// Enum values for SaaSProductSortBy +const ( + SaaSProductSortByEntityId SaaSProductSortBy = "EntityId" + SaaSProductSortByProductTitle SaaSProductSortBy = "ProductTitle" + SaaSProductSortByVisibility SaaSProductSortBy = "Visibility" + SaaSProductSortByLastModifiedDate SaaSProductSortBy = "LastModifiedDate" +) + +// Values returns all known values for SaaSProductSortBy. Note that this can be +// expanded in the future, and so it is only as up to date as the client. The +// ordering of this slice is not guaranteed to be stable across updates. +func (SaaSProductSortBy) Values() []SaaSProductSortBy { + return []SaaSProductSortBy{ + "EntityId", + "ProductTitle", + "Visibility", + "LastModifiedDate", + } +} + +type SaaSProductVisibilityString string + +// Enum values for SaaSProductVisibilityString +const ( + SaaSProductVisibilityStringLimited SaaSProductVisibilityString = "Limited" + SaaSProductVisibilityStringPublic SaaSProductVisibilityString = "Public" + SaaSProductVisibilityStringRestricted SaaSProductVisibilityString = "Restricted" + SaaSProductVisibilityStringDraft SaaSProductVisibilityString = "Draft" +) + +// Values returns all known values for SaaSProductVisibilityString. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// The ordering of this slice is not guaranteed to be stable across updates. +func (SaaSProductVisibilityString) Values() []SaaSProductVisibilityString { + return []SaaSProductVisibilityString{ + "Limited", + "Public", + "Restricted", + "Draft", + } +} + type SortOrder string // Enum values for SortOrder diff --git a/service/marketplacecatalog/types/types.go b/service/marketplacecatalog/types/types.go index b07291d31b6..2650af0d101 100644 --- a/service/marketplacecatalog/types/types.go +++ b/service/marketplacecatalog/types/types.go @@ -7,6 +7,105 @@ import ( smithydocument "github.com/aws/smithy-go/document" ) +// Object that allows filtering on entity id of an AMI product. +type AmiProductEntityIdFilter struct { + + // A string array of unique entity id values to be filtered on. + ValueList []string + + noSmithyDocumentSerde +} + +// Object containing all the filter fields for AMI products. Client can add a +// maximum of 8 filters in a single ListEntities request. +type AmiProductFilters struct { + + // Unique identifier for the AMI product. + EntityId *AmiProductEntityIdFilter + + // The last date on which the AMI product was modified. + LastModifiedDate *AmiProductLastModifiedDateFilter + + // The title of the AMI product. + ProductTitle *AmiProductTitleFilter + + // The visibility of the AMI product. + Visibility *AmiProductVisibilityFilter + + noSmithyDocumentSerde +} + +// Object that allows filtering based on the last modified date of AMI products. +type AmiProductLastModifiedDateFilter struct { + + // Dates between which the AMI product was last modified. + DateRange *AmiProductLastModifiedDateFilterDateRange + + noSmithyDocumentSerde +} + +// Object that contains date range of the last modified date to be filtered on. +// You can optionally provide a BeforeValue and/or AfterValue . Both are inclusive. +type AmiProductLastModifiedDateFilterDateRange struct { + + // Date after which the AMI product was last modified. + AfterValue *string + + // Date before which the AMI product was last modified. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Objects that allows sorting on AMI products based on certain fields and sorting +// order. +type AmiProductSort struct { + + // Field to sort the AMI products by. + SortBy AmiProductSortBy + + // The sorting order. Can be ASCENDING or DESCENDING . The default value is + // DESCENDING . + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// Object that contains summarized information about an AMI product. +type AmiProductSummary struct { + + // The title of the AMI product. + ProductTitle *string + + // The lifecycle of the AMI product. + Visibility AmiProductVisibilityString + + noSmithyDocumentSerde +} + +// Object that allows filtering on product title. +type AmiProductTitleFilter struct { + + // A string array of unique product title values to be filtered on. + ValueList []string + + // A string that will be the wildCard input for product tile filter. It matches + // the provided value as a substring in the actual value. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Object that allows filtering on the visibility of the product in the AWS +// Marketplace. +type AmiProductVisibilityFilter struct { + + // A string array of unique visibility values to be filtered on. + ValueList []AmiProductVisibilityString + + noSmithyDocumentSerde +} + // An object that contains the ChangeType , Details , and Entity . type Change struct { @@ -113,6 +212,205 @@ type ChangeSummary struct { noSmithyDocumentSerde } +// Object that allows filtering on entity id of a container product. +type ContainerProductEntityIdFilter struct { + + // A string array of unique entity id values to be filtered on. + ValueList []string + + noSmithyDocumentSerde +} + +// Object containing all the filter fields for container products. Client can add +// a maximum of 8 filters in a single ListEntities request. +type ContainerProductFilters struct { + + // Unique identifier for the container product. + EntityId *ContainerProductEntityIdFilter + + // The last date on which the container product was modified. + LastModifiedDate *ContainerProductLastModifiedDateFilter + + // The title of the container product. + ProductTitle *ContainerProductTitleFilter + + // The visibility of the container product. + Visibility *ContainerProductVisibilityFilter + + noSmithyDocumentSerde +} + +// Object that allows filtering based on the last modified date of container +// products. +type ContainerProductLastModifiedDateFilter struct { + + // Dates between which the container product was last modified. + DateRange *ContainerProductLastModifiedDateFilterDateRange + + noSmithyDocumentSerde +} + +// Object that contains date range of the last modified date to be filtered on. +// You can optionally provide a BeforeValue and/or AfterValue . Both are inclusive. +type ContainerProductLastModifiedDateFilterDateRange struct { + + // Date after which the container product was last modified. + AfterValue *string + + // Date before which the container product was last modified. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Objects that allows sorting on container products based on certain fields and +// sorting order. +type ContainerProductSort struct { + + // Field to sort the container products by. + SortBy ContainerProductSortBy + + // The sorting order. Can be ASCENDING or DESCENDING . The default value is + // DESCENDING . + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// Object that contains summarized information about a container product. +type ContainerProductSummary struct { + + // The title of the container product. + ProductTitle *string + + // The lifecycle of the product. + Visibility ContainerProductVisibilityString + + noSmithyDocumentSerde +} + +// Object that allows filtering on product title. +type ContainerProductTitleFilter struct { + + // A string array of unique product title values to be filtered on. + ValueList []string + + // A string that will be the wildCard input for product tile filter. It matches + // the provided value as a substring in the actual value. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Object that allows filtering on the visibility of the product in the AWS +// Marketplace. +type ContainerProductVisibilityFilter struct { + + // A string array of unique visibility values to be filtered on. + ValueList []ContainerProductVisibilityString + + noSmithyDocumentSerde +} + +// Object that allows filtering on entity id of a data product. +type DataProductEntityIdFilter struct { + + // A string array of unique entity id values to be filtered on. + ValueList []string + + noSmithyDocumentSerde +} + +// Object containing all the filter fields for data products. Client can add a +// maximum of 8 filters in a single ListEntities request. +type DataProductFilters struct { + + // Unique identifier for the data product. + EntityId *DataProductEntityIdFilter + + // The last date on which the data product was modified. + LastModifiedDate *DataProductLastModifiedDateFilter + + // The title of the data product. + ProductTitle *DataProductTitleFilter + + // The visibility of the data product. + Visibility *DataProductVisibilityFilter + + noSmithyDocumentSerde +} + +// Object that allows filtering based on the last modified date of data products. +type DataProductLastModifiedDateFilter struct { + + // Dates between which the data product was last modified. + DateRange *DataProductLastModifiedDateFilterDateRange + + noSmithyDocumentSerde +} + +// Object that contains date range of the last modified date to be filtered on. +// You can optionally provide a BeforeValue and/or AfterValue . Both are inclusive. +type DataProductLastModifiedDateFilterDateRange struct { + + // Date after which the data product was last modified. + AfterValue *string + + // Date before which the data product was last modified. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Objects that allows sorting on data products based on certain fields and +// sorting order. +type DataProductSort struct { + + // Field to sort the data products by. + SortBy DataProductSortBy + + // The sorting order. Can be ASCENDING or DESCENDING . The default value is + // DESCENDING . + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// Object that contains summarized information about a data product. +type DataProductSummary struct { + + // The title of the data product. + ProductTitle *string + + // The lifecycle of the data product. + Visibility DataProductVisibilityString + + noSmithyDocumentSerde +} + +// Object that allows filtering on product title. +type DataProductTitleFilter struct { + + // A string array of unique product title values to be filtered on. + ValueList []string + + // A string that will be the wildCard input for product tile filter. It matches + // the provided value as a substring in the actual value. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Object that allows filtering on the visibility of the product in the AWS +// Marketplace. +type DataProductVisibilityFilter struct { + + // A string array of unique visibility values to be filtered on. + ValueList []DataProductVisibilityString + + noSmithyDocumentSerde +} + // An entity contains data that describes your product, its supported features, // and how it can be used or launched by your customer. type Entity struct { @@ -133,6 +431,15 @@ type Entity struct { // information common across all entities. type EntitySummary struct { + // An object that contains summary information about the AMI product. + AmiProductSummary *AmiProductSummary + + // An object that contains summary information about the container product. + ContainerProductSummary *ContainerProductSummary + + // An object that contains summary information about the data product. + DataProductSummary *DataProductSummary + // The ARN associated with the unique identifier for the entity. EntityArn *string @@ -149,6 +456,15 @@ type EntitySummary struct { // The name for the entity. This value is not unique. It is defined by the seller. Name *string + // An object that contains summary information about the offer. + OfferSummary *OfferSummary + + // An object that contains summary information about the Resale Authorization. + ResaleAuthorizationSummary *ResaleAuthorizationSummary + + // An object that contains summary information about the SaaS product. + SaaSProductSummary *SaaSProductSummary + // The visibility status of the entity to buyers. This value can be Public // (everyone can view the entity), Limited (the entity is visible to limited // accounts only), or Restricted (the entity was published and then unpublished @@ -158,6 +474,142 @@ type EntitySummary struct { noSmithyDocumentSerde } +// Object containing all the filter fields per entity type. +// +// The following types satisfy this interface: +// +// EntityTypeFiltersMemberAmiProductFilters +// EntityTypeFiltersMemberContainerProductFilters +// EntityTypeFiltersMemberDataProductFilters +// EntityTypeFiltersMemberOfferFilters +// EntityTypeFiltersMemberResaleAuthorizationFilters +// EntityTypeFiltersMemberSaaSProductFilters +type EntityTypeFilters interface { + isEntityTypeFilters() +} + +// A filter for AMI products. +type EntityTypeFiltersMemberAmiProductFilters struct { + Value AmiProductFilters + + noSmithyDocumentSerde +} + +func (*EntityTypeFiltersMemberAmiProductFilters) isEntityTypeFilters() {} + +// A filter for container products. +type EntityTypeFiltersMemberContainerProductFilters struct { + Value ContainerProductFilters + + noSmithyDocumentSerde +} + +func (*EntityTypeFiltersMemberContainerProductFilters) isEntityTypeFilters() {} + +// A filter for data products. +type EntityTypeFiltersMemberDataProductFilters struct { + Value DataProductFilters + + noSmithyDocumentSerde +} + +func (*EntityTypeFiltersMemberDataProductFilters) isEntityTypeFilters() {} + +// A filter for offers. +type EntityTypeFiltersMemberOfferFilters struct { + Value OfferFilters + + noSmithyDocumentSerde +} + +func (*EntityTypeFiltersMemberOfferFilters) isEntityTypeFilters() {} + +// A filter for Resale Authorizations. +type EntityTypeFiltersMemberResaleAuthorizationFilters struct { + Value ResaleAuthorizationFilters + + noSmithyDocumentSerde +} + +func (*EntityTypeFiltersMemberResaleAuthorizationFilters) isEntityTypeFilters() {} + +// A filter for SaaS products. +type EntityTypeFiltersMemberSaaSProductFilters struct { + Value SaaSProductFilters + + noSmithyDocumentSerde +} + +func (*EntityTypeFiltersMemberSaaSProductFilters) isEntityTypeFilters() {} + +// Object containing all the sort fields per entity type. +// +// The following types satisfy this interface: +// +// EntityTypeSortMemberAmiProductSort +// EntityTypeSortMemberContainerProductSort +// EntityTypeSortMemberDataProductSort +// EntityTypeSortMemberOfferSort +// EntityTypeSortMemberResaleAuthorizationSort +// EntityTypeSortMemberSaaSProductSort +type EntityTypeSort interface { + isEntityTypeSort() +} + +// A sort for AMI products. +type EntityTypeSortMemberAmiProductSort struct { + Value AmiProductSort + + noSmithyDocumentSerde +} + +func (*EntityTypeSortMemberAmiProductSort) isEntityTypeSort() {} + +// A sort for container products. +type EntityTypeSortMemberContainerProductSort struct { + Value ContainerProductSort + + noSmithyDocumentSerde +} + +func (*EntityTypeSortMemberContainerProductSort) isEntityTypeSort() {} + +// A sort for data products. +type EntityTypeSortMemberDataProductSort struct { + Value DataProductSort + + noSmithyDocumentSerde +} + +func (*EntityTypeSortMemberDataProductSort) isEntityTypeSort() {} + +// A sort for offers. +type EntityTypeSortMemberOfferSort struct { + Value OfferSort + + noSmithyDocumentSerde +} + +func (*EntityTypeSortMemberOfferSort) isEntityTypeSort() {} + +// A sort for Resale Authorizations. +type EntityTypeSortMemberResaleAuthorizationSort struct { + Value ResaleAuthorizationSort + + noSmithyDocumentSerde +} + +func (*EntityTypeSortMemberResaleAuthorizationSort) isEntityTypeSort() {} + +// A sort for SaaS products. +type EntityTypeSortMemberSaaSProductSort struct { + Value SaaSProductSort + + noSmithyDocumentSerde +} + +func (*EntityTypeSortMemberSaaSProductSort) isEntityTypeSort() {} + // Details about the error. type ErrorDetail struct { @@ -198,36 +650,635 @@ type Filter struct { noSmithyDocumentSerde } -// An object that contains two attributes, SortBy and SortOrder . -type Sort struct { +// Allows filtering on the AvailabilityEndDate of an offer. +type OfferAvailabilityEndDateFilter struct { - // For ListEntities , supported attributes include LastModifiedDate (default) and - // EntityId . In addition to LastModifiedDate and EntityId , each EntityType might - // support additional fields. For ListChangeSets , supported attributes include - // StartTime and EndTime . - SortBy *string + // Allows filtering on the AvailabilityEndDate of an offer with date range as + // input. + DateRange *OfferAvailabilityEndDateFilterDateRange - // The sorting order. Can be ASCENDING or DESCENDING . The default value is - // DESCENDING . - SortOrder SortOrder + noSmithyDocumentSerde +} + +// Allows filtering on the AvailabilityEndDate of an offer with date range as +// input. +type OfferAvailabilityEndDateFilterDateRange struct { + + // Allows filtering on the AvailabilityEndDate of an offer after a date. + AfterValue *string + + // Allows filtering on the AvailabilityEndDate of an offer before a date. + BeforeValue *string noSmithyDocumentSerde } -// A list of objects specifying each key name and value. -type Tag struct { +// Allows filtering on the BuyerAccounts of an offer. +type OfferBuyerAccountsFilter struct { - // The key associated with the tag. - // - // This member is required. - Key *string + // Allows filtering on the BuyerAccounts of an offer with wild card input. + WildCardValue *string - // The value associated with the tag. - // - // This member is required. - Value *string + noSmithyDocumentSerde +} + +// Allows filtering on the entity id of an offer. +type OfferEntityIdFilter struct { + + // Allows filtering on entity id of an offer with list input. + ValueList []string + + noSmithyDocumentSerde +} + +// A filter for offers entity. +type OfferFilters struct { + + // Allows filtering on the AvailabilityEndDate of an offer. + AvailabilityEndDate *OfferAvailabilityEndDateFilter + + // Allows filtering on the BuyerAccounts of an offer. + BuyerAccounts *OfferBuyerAccountsFilter + + // Allows filtering on EntityId of an offer. + EntityId *OfferEntityIdFilter + + // Allows filtering on the LastModifiedDate of an offer. + LastModifiedDate *OfferLastModifiedDateFilter + + // Allows filtering on the Name of an offer. + Name *OfferNameFilter + + // Allows filtering on the ProductId of an offer. + ProductId *OfferProductIdFilter + + // Allows filtering on the ReleaseDate of an offer. + ReleaseDate *OfferReleaseDateFilter + + // Allows filtering on the State of an offer. + State *OfferStateFilter + + // Allows filtering on the Targeting of an offer. + Targeting *OfferTargetingFilter + + noSmithyDocumentSerde +} + +// Allows filtering on the LastModifiedDate of an offer. +type OfferLastModifiedDateFilter struct { + + // Allows filtering on the LastModifiedDate of an offer with date range as input. + DateRange *OfferLastModifiedDateFilterDateRange + + noSmithyDocumentSerde +} + +// Allows filtering on the LastModifiedDate of an offer with date range as input. +type OfferLastModifiedDateFilterDateRange struct { + + // Allows filtering on the LastModifiedDate of an offer after a date. + AfterValue *string + + // Allows filtering on the LastModifiedDate of an offer before a date. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the Name of an offer. +type OfferNameFilter struct { + + // Allows filtering on the Name of an offer with list input. + ValueList []string + + // Allows filtering on the Name of an offer with wild card input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the ProductId of an offer. +type OfferProductIdFilter struct { + + // Allows filtering on the ProductId of an offer with list input. + ValueList []string + + noSmithyDocumentSerde +} + +// Allows filtering on the ReleaseDate of an offer. +type OfferReleaseDateFilter struct { + + // Allows filtering on the ReleaseDate of an offer with date range as input. + DateRange *OfferReleaseDateFilterDateRange + + noSmithyDocumentSerde +} + +// Allows filtering on the ReleaseDate of an offer with date range as input. +type OfferReleaseDateFilterDateRange struct { + + // Allows filtering on the ReleaseDate of offers after a date. + AfterValue *string + + // Allows filtering on the ReleaseDate of offers before a date. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Allows to sort offers. +type OfferSort struct { + + // Allows to sort offers. + SortBy OfferSortBy + + // Allows to sort offers. + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// Allows filtering on the State of an offer. +type OfferStateFilter struct { + + // Allows filtering on the State of an offer with list input. + ValueList []OfferStateString + + noSmithyDocumentSerde +} + +// Summarized information about an offer. +type OfferSummary struct { + + // The availability end date of the offer. + AvailabilityEndDate *string + + // The buyer accounts in the offer. + BuyerAccounts []string + + // The name of the offer. + Name *string + + // The product ID of the offer. + ProductId *string + + // The release date of the offer. + ReleaseDate *string + + // The status of the offer. + State OfferStateString + + // The targeting in the offer. + Targeting []OfferTargetingString + + noSmithyDocumentSerde +} + +// Allows filtering on the Targeting of an offer. +type OfferTargetingFilter struct { + + // Allows filtering on the Targeting of an offer with list input. + ValueList []OfferTargetingString + + noSmithyDocumentSerde +} + +// Allows filtering on AvailabilityEndDate of a ResaleAuthorization. +type ResaleAuthorizationAvailabilityEndDateFilter struct { + + // Allows filtering on AvailabilityEndDate of a ResaleAuthorization with date + // range as input + DateRange *ResaleAuthorizationAvailabilityEndDateFilterDateRange + + // Allows filtering on AvailabilityEndDate of a ResaleAuthorization with date + // value as input. + ValueList []string + + noSmithyDocumentSerde +} + +// Allows filtering on AvailabilityEndDate of a ResaleAuthorization with date +// range as input. +type ResaleAuthorizationAvailabilityEndDateFilterDateRange struct { + + // Allows filtering on AvailabilityEndDate of a ResaleAuthorization after a date. + AfterValue *string + + // Allows filtering on AvailabilityEndDate of a ResaleAuthorization before a date. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on CreatedDate of a ResaleAuthorization. +type ResaleAuthorizationCreatedDateFilter struct { + + // Allows filtering on CreatedDate of a ResaleAuthorization with date range as + // input. + DateRange *ResaleAuthorizationCreatedDateFilterDateRange + + // Allows filtering on CreatedDate of a ResaleAuthorization with date value as + // input. + ValueList []string + + noSmithyDocumentSerde +} + +// Allows filtering on CreatedDate of a ResaleAuthorization with date range as +// input. +type ResaleAuthorizationCreatedDateFilterDateRange struct { + + // Allows filtering on CreatedDate of a ResaleAuthorization after a date. + AfterValue *string + + // Allows filtering on CreatedDate of a ResaleAuthorization before a date. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on EntityId of a ResaleAuthorization. +type ResaleAuthorizationEntityIdFilter struct { + + // Allows filtering on EntityId of a ResaleAuthorization with list input. + ValueList []string + + noSmithyDocumentSerde +} + +// A filter for ResaleAuthorization entity. +type ResaleAuthorizationFilters struct { + + // Allows filtering on the AvailabilityEndDate of a ResaleAuthorization. + AvailabilityEndDate *ResaleAuthorizationAvailabilityEndDateFilter + + // Allows filtering on the CreatedDate of a ResaleAuthorization. + CreatedDate *ResaleAuthorizationCreatedDateFilter + + // Allows filtering on the EntityId of a ResaleAuthorization. + EntityId *ResaleAuthorizationEntityIdFilter + + // Allows filtering on the LastModifiedDate of a ResaleAuthorization. + LastModifiedDate *ResaleAuthorizationLastModifiedDateFilter + + // Allows filtering on the ManufacturerAccountId of a ResaleAuthorization. + ManufacturerAccountId *ResaleAuthorizationManufacturerAccountIdFilter + + // Allows filtering on the ManufacturerLegalName of a ResaleAuthorization. + ManufacturerLegalName *ResaleAuthorizationManufacturerLegalNameFilter + + // Allows filtering on the Name of a ResaleAuthorization. + Name *ResaleAuthorizationNameFilter + + // Allows filtering on the OfferExtendedStatus of a ResaleAuthorization. + OfferExtendedStatus *ResaleAuthorizationOfferExtendedStatusFilter + + // Allows filtering on the ProductId of a ResaleAuthorization. + ProductId *ResaleAuthorizationProductIdFilter + + // Allows filtering on the ProductName of a ResaleAuthorization. + ProductName *ResaleAuthorizationProductNameFilter + + // Allows filtering on the ResellerAccountID of a ResaleAuthorization. + ResellerAccountID *ResaleAuthorizationResellerAccountIDFilter + + // Allows filtering on the ResellerLegalName of a ResaleAuthorization. + ResellerLegalName *ResaleAuthorizationResellerLegalNameFilter + + // Allows filtering on the Status of a ResaleAuthorization. + Status *ResaleAuthorizationStatusFilter + + noSmithyDocumentSerde +} + +// Allows filtering on the LastModifiedDate of a ResaleAuthorization. +type ResaleAuthorizationLastModifiedDateFilter struct { + + // Allows filtering on the LastModifiedDate of a ResaleAuthorization with date + // range as input. + DateRange *ResaleAuthorizationLastModifiedDateFilterDateRange + + noSmithyDocumentSerde +} + +// Allows filtering on the LastModifiedDate of a ResaleAuthorization with date +// range as input. +type ResaleAuthorizationLastModifiedDateFilterDateRange struct { + + // Allows filtering on the LastModifiedDate of a ResaleAuthorization after a date. + AfterValue *string + + // Allows filtering on the LastModifiedDate of a ResaleAuthorization before a date. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the ManufacturerAccountId of a ResaleAuthorization. +type ResaleAuthorizationManufacturerAccountIdFilter struct { + + // Allows filtering on the ManufacturerAccountId of a ResaleAuthorization with + // list input. + ValueList []string + + // Allows filtering on the ManufacturerAccountId of a ResaleAuthorization with + // wild card input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the ManufacturerLegalName of a ResaleAuthorization. +type ResaleAuthorizationManufacturerLegalNameFilter struct { + + // Allows filtering on the ManufacturerLegalName of a ResaleAuthorization with + // list input. + ValueList []string + + // Allows filtering on the ManufacturerLegalName of a ResaleAuthorization with + // wild card input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the Name of a ResaleAuthorization. +type ResaleAuthorizationNameFilter struct { + + // Allows filtering on the Name of a ResaleAuthorization with list input. + ValueList []string + + // Allows filtering on the Name of a ResaleAuthorization with wild card input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the OfferExtendedStatus of a ResaleAuthorization. +type ResaleAuthorizationOfferExtendedStatusFilter struct { + + // Allows filtering on the OfferExtendedStatus of a ResaleAuthorization with list + // input. + ValueList []string + + noSmithyDocumentSerde +} + +// Allows filtering on the ProductId of a ResaleAuthorization. +type ResaleAuthorizationProductIdFilter struct { + + // Allows filtering on the ProductId of a ResaleAuthorization with list input. + ValueList []string + + // Allows filtering on the ProductId of a ResaleAuthorization with wild card input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the ProductName of a ResaleAuthorization. +type ResaleAuthorizationProductNameFilter struct { + + // Allows filtering on the ProductName of a ResaleAuthorization with list input. + ValueList []string + + // Allows filtering on the ProductName of a ResaleAuthorization with wild card + // input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the ResellerAccountID of a ResaleAuthorization. +type ResaleAuthorizationResellerAccountIDFilter struct { + + // Allows filtering on the ResellerAccountID of a ResaleAuthorization with list + // input. + ValueList []string + + // Allows filtering on the ResellerAccountID of a ResaleAuthorization with wild + // card input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows filtering on the ResellerLegalName of a ResaleAuthorization. +type ResaleAuthorizationResellerLegalNameFilter struct { + + // Allows filtering on the ResellerLegalNameProductName of a ResaleAuthorization + // with list input. + ValueList []string + + // Allows filtering on the ResellerLegalName of a ResaleAuthorization with wild + // card input. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Allows to sort ResaleAuthorization. +type ResaleAuthorizationSort struct { + + // Allows to sort ResaleAuthorization. + SortBy ResaleAuthorizationSortBy + + // Allows to sort ResaleAuthorization. + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// Allows filtering on the Status of a ResaleAuthorization. +type ResaleAuthorizationStatusFilter struct { + + // Allows filtering on the Status of a ResaleAuthorization with list input. + ValueList []ResaleAuthorizationStatusString + + noSmithyDocumentSerde +} + +// Summarized information about a Resale Authorization. +type ResaleAuthorizationSummary struct { + + // The availability end date of the ResaleAuthorization. + AvailabilityEndDate *string + + // The created date of the ResaleAuthorization. + CreatedDate *string + + // The manufacturer account ID of the ResaleAuthorization. + ManufacturerAccountId *string + + // The manufacturer legal name of the ResaleAuthorization. + ManufacturerLegalName *string + + // The name of the ResaleAuthorization. + Name *string + + // The offer extended status of the ResaleAuthorization + OfferExtendedStatus *string + + // The product ID of the ResaleAuthorization. + ProductId *string + + // The product name of the ResaleAuthorization. + ProductName *string + + // The reseller account ID of the ResaleAuthorization. + ResellerAccountID *string + + // The reseller legal name of the ResaleAuthorization + ResellerLegalName *string + + // The status of the ResaleAuthorization. + Status ResaleAuthorizationStatusString + + noSmithyDocumentSerde +} + +// Object that allows filtering on entity id of a SaaS product. +type SaaSProductEntityIdFilter struct { + + // A string array of unique entity id values to be filtered on. + ValueList []string + + noSmithyDocumentSerde +} + +// Object containing all the filter fields for SaaS products. Client can add a +// maximum of 8 filters in a single ListEntities request. +type SaaSProductFilters struct { + + // Unique identifier for the SaaS product. + EntityId *SaaSProductEntityIdFilter + + // The last date on which the SaaS product was modified. + LastModifiedDate *SaaSProductLastModifiedDateFilter + + // The title of the SaaS product. + ProductTitle *SaaSProductTitleFilter + + // The visibility of the SaaS product. + Visibility *SaaSProductVisibilityFilter + + noSmithyDocumentSerde +} + +// Object that allows filtering based on the last modified date of SaaS products +type SaaSProductLastModifiedDateFilter struct { + + // Dates between which the SaaS product was last modified. + DateRange *SaaSProductLastModifiedDateFilterDateRange + + noSmithyDocumentSerde +} + +// Object that contains date range of the last modified date to be filtered on. +// You can optionally provide a BeforeValue and/or AfterValue . Both are inclusive. +type SaaSProductLastModifiedDateFilterDateRange struct { + + // Date after which the SaaS product was last modified. + AfterValue *string + + // Date before which the SaaS product was last modified. + BeforeValue *string + + noSmithyDocumentSerde +} + +// Objects that allows sorting on SaaS products based on certain fields and +// sorting order. +type SaaSProductSort struct { + + // Field to sort the SaaS products by. + SortBy SaaSProductSortBy + + // The sorting order. Can be ASCENDING or DESCENDING . The default value is + // DESCENDING . + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// Object that contains summarized information about a SaaS product. +type SaaSProductSummary struct { + + // The title of the SaaS product. + ProductTitle *string + + // The lifecycle of the SaaS product. + Visibility SaaSProductVisibilityString + + noSmithyDocumentSerde +} + +// Object that allows filtering on product title. +type SaaSProductTitleFilter struct { + + // A string array of unique product title values to be filtered on. + ValueList []string + + // A string that will be the wildCard input for product tile filter. It matches + // the provided value as a substring in the actual value. + WildCardValue *string + + noSmithyDocumentSerde +} + +// Object that allows filtering on the visibility of the product in the AWS +// Marketplace. +type SaaSProductVisibilityFilter struct { + + // A string array of unique visibility values to be filtered on. + ValueList []SaaSProductVisibilityString + + noSmithyDocumentSerde +} + +// An object that contains two attributes, SortBy and SortOrder . +type Sort struct { + + // For ListEntities , supported attributes include LastModifiedDate (default) and + // EntityId . In addition to LastModifiedDate and EntityId , each EntityType might + // support additional fields. For ListChangeSets , supported attributes include + // StartTime and EndTime . + SortBy *string + + // The sorting order. Can be ASCENDING or DESCENDING . The default value is + // DESCENDING . + SortOrder SortOrder + + noSmithyDocumentSerde +} + +// A list of objects specifying each key name and value. +type Tag struct { + + // The key associated with the tag. + // + // This member is required. + Key *string + + // The value associated with the tag. + // + // This member is required. + Value *string noSmithyDocumentSerde } type noSmithyDocumentSerde = smithydocument.NoSerde + +// UnknownUnionMember is returned when a union member is returned over the wire, +// but has an unknown tag. +type UnknownUnionMember struct { + Tag string + Value []byte + + noSmithyDocumentSerde +} + +func (*UnknownUnionMember) isEntityTypeFilters() {} +func (*UnknownUnionMember) isEntityTypeSort() {} diff --git a/service/marketplacecatalog/types/types_exported_test.go b/service/marketplacecatalog/types/types_exported_test.go new file mode 100644 index 00000000000..66c1c10fcd6 --- /dev/null +++ b/service/marketplacecatalog/types/types_exported_test.go @@ -0,0 +1,84 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/marketplacecatalog/types" +) + +func ExampleEntityTypeFilters_outputUsage() { + var union types.EntityTypeFilters + // type switches can be used to check the union value + switch v := union.(type) { + case *types.EntityTypeFiltersMemberAmiProductFilters: + _ = v.Value // Value is types.AmiProductFilters + + case *types.EntityTypeFiltersMemberContainerProductFilters: + _ = v.Value // Value is types.ContainerProductFilters + + case *types.EntityTypeFiltersMemberDataProductFilters: + _ = v.Value // Value is types.DataProductFilters + + case *types.EntityTypeFiltersMemberOfferFilters: + _ = v.Value // Value is types.OfferFilters + + case *types.EntityTypeFiltersMemberResaleAuthorizationFilters: + _ = v.Value // Value is types.ResaleAuthorizationFilters + + case *types.EntityTypeFiltersMemberSaaSProductFilters: + _ = v.Value // Value is types.SaaSProductFilters + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.AmiProductFilters +var _ *types.ContainerProductFilters +var _ *types.SaaSProductFilters +var _ *types.OfferFilters +var _ *types.ResaleAuthorizationFilters +var _ *types.DataProductFilters + +func ExampleEntityTypeSort_outputUsage() { + var union types.EntityTypeSort + // type switches can be used to check the union value + switch v := union.(type) { + case *types.EntityTypeSortMemberAmiProductSort: + _ = v.Value // Value is types.AmiProductSort + + case *types.EntityTypeSortMemberContainerProductSort: + _ = v.Value // Value is types.ContainerProductSort + + case *types.EntityTypeSortMemberDataProductSort: + _ = v.Value // Value is types.DataProductSort + + case *types.EntityTypeSortMemberOfferSort: + _ = v.Value // Value is types.OfferSort + + case *types.EntityTypeSortMemberResaleAuthorizationSort: + _ = v.Value // Value is types.ResaleAuthorizationSort + + case *types.EntityTypeSortMemberSaaSProductSort: + _ = v.Value // Value is types.SaaSProductSort + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.SaaSProductSort +var _ *types.AmiProductSort +var _ *types.OfferSort +var _ *types.DataProductSort +var _ *types.ResaleAuthorizationSort +var _ *types.ContainerProductSort diff --git a/service/marketplacecommerceanalytics/CHANGELOG.md b/service/marketplacecommerceanalytics/CHANGELOG.md index a9861cc3adc..078fca849e8 100644 --- a/service/marketplacecommerceanalytics/CHANGELOG.md +++ b/service/marketplacecommerceanalytics/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/marketplacecommerceanalytics/api_client.go b/service/marketplacecommerceanalytics/api_client.go index 4490b31cb04..17346e7f7b3 100644 --- a/service/marketplacecommerceanalytics/api_client.go +++ b/service/marketplacecommerceanalytics/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/marketplacecommerceanalytics/auth.go b/service/marketplacecommerceanalytics/auth.go index e15fa4786bf..8a27be9101f 100644 --- a/service/marketplacecommerceanalytics/auth.go +++ b/service/marketplacecommerceanalytics/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/marketplacecommerceanalytics/go.mod b/service/marketplacecommerceanalytics/go.mod index c8bd32aaf89..ecb128e3f10 100644 --- a/service/marketplacecommerceanalytics/go.mod +++ b/service/marketplacecommerceanalytics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacecommerceanalytics go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacecommerceanalytics/go.sum b/service/marketplacecommerceanalytics/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/marketplacecommerceanalytics/go.sum +++ b/service/marketplacecommerceanalytics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacecommerceanalytics/go_module_metadata.go b/service/marketplacecommerceanalytics/go_module_metadata.go index 7e58707728f..1192e880876 100644 --- a/service/marketplacecommerceanalytics/go_module_metadata.go +++ b/service/marketplacecommerceanalytics/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacecommerceanalytics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/marketplacecommerceanalytics/options.go b/service/marketplacecommerceanalytics/options.go index 21bd57057db..d9790aa4853 100644 --- a/service/marketplacecommerceanalytics/options.go +++ b/service/marketplacecommerceanalytics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplacedeployment/CHANGELOG.md b/service/marketplacedeployment/CHANGELOG.md new file mode 100644 index 00000000000..9d4303abcfe --- /dev/null +++ b/service/marketplacedeployment/CHANGELOG.md @@ -0,0 +1,12 @@ +# v1.0.1 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.0.0 (2023-11-30) + +* **Release**: New AWS service client module +* **Feature**: AWS Marketplace Deployment is a new service that provides essential features that facilitate the deployment of software, data, and services procured through AWS Marketplace. +* **Dependency Update**: Updated to the latest SDK module versions + diff --git a/service/marketplacedeployment/LICENSE.txt b/service/marketplacedeployment/LICENSE.txt new file mode 100644 index 00000000000..d6456956733 --- /dev/null +++ b/service/marketplacedeployment/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/service/marketplacedeployment/api_client.go b/service/marketplacedeployment/api_client.go new file mode 100644 index 00000000000..edfbf3d0aed --- /dev/null +++ b/service/marketplacedeployment/api_client.go @@ -0,0 +1,480 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + cryptorand "crypto/rand" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/aws/defaults" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/retry" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http" + internalauth "github.com/aws/aws-sdk-go-v2/internal/auth" + internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + smithy "github.com/aws/smithy-go" + smithydocument "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyrand "github.com/aws/smithy-go/rand" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net" + "net/http" + "time" +) + +const ServiceID = "Marketplace Deployment" +const ServiceAPIVersion = "2023-01-25" + +// Client provides the API client to make operations call for AWS Marketplace +// Deployment Service. +type Client struct { + options Options +} + +// New returns an initialized Client based on the functional options. Provide +// additional functional options to further configure the behavior of the client, +// such as changing the client's endpoint or adding custom middleware behavior. +func New(options Options, optFns ...func(*Options)) *Client { + options = options.Copy() + + resolveDefaultLogger(&options) + + setResolvedDefaultsMode(&options) + + resolveHTTPClient(&options) + + resolveHTTPSignerV4(&options) + + resolveIdempotencyTokenProvider(&options) + + resolveEndpointResolverV2(&options) + + resolveAuthSchemeResolver(&options) + + for _, fn := range optFns { + fn(&options) + } + + resolveRetryer(&options) + + ignoreAnonymousAuth(&options) + + resolveAuthSchemes(&options) + + client := &Client{ + options: options, + } + + return client +} + +// Options returns a copy of the client configuration. +// +// Callers SHOULD NOT perform mutations on any inner structures within client +// config. Config overrides should instead be made on a per-operation basis through +// functional options. +func (c *Client) Options() Options { + return c.options.Copy() +} + +func (c *Client) invokeOperation(ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error) (result interface{}, metadata middleware.Metadata, err error) { + ctx = middleware.ClearStackValues(ctx) + stack := middleware.NewStack(opID, smithyhttp.NewStackRequest) + options := c.options.Copy() + + for _, fn := range optFns { + fn(&options) + } + + finalizeRetryMaxAttemptOptions(&options, *c) + + finalizeClientEndpointResolverOptions(&options) + + for _, fn := range stackFns { + if err := fn(stack, options); err != nil { + return nil, metadata, err + } + } + + for _, fn := range options.APIOptions { + if err := fn(stack); err != nil { + return nil, metadata, err + } + } + + handler := middleware.DecorateHandler(smithyhttp.NewClientHandler(options.HTTPClient), stack) + result, metadata, err = handler.Handle(ctx, params) + if err != nil { + err = &smithy.OperationError{ + ServiceID: ServiceID, + OperationName: opID, + Err: err, + } + } + return result, metadata, err +} + +type operationInputKey struct{} + +func setOperationInput(ctx context.Context, input interface{}) context.Context { + return middleware.WithStackValue(ctx, operationInputKey{}, input) +} + +func getOperationInput(ctx context.Context) interface{} { + return middleware.GetStackValue(ctx, operationInputKey{}) +} + +type setOperationInputMiddleware struct { +} + +func (*setOperationInputMiddleware) ID() string { + return "setOperationInput" +} + +func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + ctx = setOperationInput(ctx, in.Parameters) + return next.HandleSerialize(ctx, in) +} + +func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { + if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { + return fmt.Errorf("add ResolveAuthScheme: %w", err) + } + if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { + return fmt.Errorf("add GetIdentity: %v", err) + } + if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil { + return fmt.Errorf("add ResolveEndpointV2: %v", err) + } + if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { + return fmt.Errorf("add Signing: %w", err) + } + return nil +} +func resolveAuthSchemeResolver(options *Options) { + if options.AuthSchemeResolver == nil { + options.AuthSchemeResolver = &defaultAuthSchemeResolver{} + } +} + +func resolveAuthSchemes(options *Options) { + if options.AuthSchemes == nil { + options.AuthSchemes = []smithyhttp.AuthScheme{ + internalauth.NewHTTPAuthScheme("aws.auth#sigv4", &internalauthsmithy.V4SignerAdapter{ + Signer: options.HTTPSignerV4, + Logger: options.Logger, + LogSigning: options.ClientLogMode.IsSigning(), + }), + } + } +} + +type noSmithyDocumentSerde = smithydocument.NoSerde + +type legacyEndpointContextSetter struct { + LegacyResolver EndpointResolver +} + +func (*legacyEndpointContextSetter) ID() string { + return "legacyEndpointContextSetter" +} + +func (m *legacyEndpointContextSetter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.LegacyResolver != nil { + ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, true) + } + + return next.HandleInitialize(ctx, in) + +} +func addlegacyEndpointContextSetter(stack *middleware.Stack, o Options) error { + return stack.Initialize.Add(&legacyEndpointContextSetter{ + LegacyResolver: o.EndpointResolver, + }, middleware.Before) +} + +func resolveDefaultLogger(o *Options) { + if o.Logger != nil { + return + } + o.Logger = logging.Nop{} +} + +func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error { + return middleware.AddSetLoggerMiddleware(stack, o.Logger) +} + +func setResolvedDefaultsMode(o *Options) { + if len(o.resolvedDefaultsMode) > 0 { + return + } + + var mode aws.DefaultsMode + mode.SetFromString(string(o.DefaultsMode)) + + if mode == aws.DefaultsModeAuto { + mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment) + } + + o.resolvedDefaultsMode = mode +} + +// NewFromConfig returns a new client from the provided config. +func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client { + opts := Options{ + Region: cfg.Region, + DefaultsMode: cfg.DefaultsMode, + RuntimeEnvironment: cfg.RuntimeEnvironment, + HTTPClient: cfg.HTTPClient, + Credentials: cfg.Credentials, + APIOptions: cfg.APIOptions, + Logger: cfg.Logger, + ClientLogMode: cfg.ClientLogMode, + AppID: cfg.AppID, + } + resolveAWSRetryerProvider(cfg, &opts) + resolveAWSRetryMaxAttempts(cfg, &opts) + resolveAWSRetryMode(cfg, &opts) + resolveAWSEndpointResolver(cfg, &opts) + resolveUseDualStackEndpoint(cfg, &opts) + resolveUseFIPSEndpoint(cfg, &opts) + resolveBaseEndpoint(cfg, &opts) + return New(opts, optFns...) +} + +func resolveHTTPClient(o *Options) { + var buildable *awshttp.BuildableClient + + if o.HTTPClient != nil { + var ok bool + buildable, ok = o.HTTPClient.(*awshttp.BuildableClient) + if !ok { + return + } + } else { + buildable = awshttp.NewBuildableClient() + } + + modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) + if err == nil { + buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) { + if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok { + dialer.Timeout = dialerTimeout + } + }) + + buildable = buildable.WithTransportOptions(func(transport *http.Transport) { + if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok { + transport.TLSHandshakeTimeout = tlsHandshakeTimeout + } + }) + } + + o.HTTPClient = buildable +} + +func resolveRetryer(o *Options) { + if o.Retryer != nil { + return + } + + if len(o.RetryMode) == 0 { + modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode) + if err == nil { + o.RetryMode = modeConfig.RetryMode + } + } + if len(o.RetryMode) == 0 { + o.RetryMode = aws.RetryModeStandard + } + + var standardOptions []func(*retry.StandardOptions) + if v := o.RetryMaxAttempts; v != 0 { + standardOptions = append(standardOptions, func(so *retry.StandardOptions) { + so.MaxAttempts = v + }) + } + + switch o.RetryMode { + case aws.RetryModeAdaptive: + var adaptiveOptions []func(*retry.AdaptiveModeOptions) + if len(standardOptions) != 0 { + adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) { + ao.StandardOptions = append(ao.StandardOptions, standardOptions...) + }) + } + o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...) + + default: + o.Retryer = retry.NewStandard(standardOptions...) + } +} + +func resolveAWSRetryerProvider(cfg aws.Config, o *Options) { + if cfg.Retryer == nil { + return + } + o.Retryer = cfg.Retryer() +} + +func resolveAWSRetryMode(cfg aws.Config, o *Options) { + if len(cfg.RetryMode) == 0 { + return + } + o.RetryMode = cfg.RetryMode +} +func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) { + if cfg.RetryMaxAttempts == 0 { + return + } + o.RetryMaxAttempts = cfg.RetryMaxAttempts +} + +func finalizeRetryMaxAttemptOptions(o *Options, client Client) { + if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts { + return + } + + o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts) +} + +func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { + if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil { + return + } + o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions) +} + +func addClientUserAgent(stack *middleware.Stack, options Options) error { + if err := awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "marketplacedeployment", goModuleVersion)(stack); err != nil { + return err + } + + if len(options.AppID) > 0 { + return awsmiddleware.AddSDKAgentKey(awsmiddleware.ApplicationIdentifier, options.AppID)(stack) + } + + return nil +} + +type HTTPSignerV4 interface { + SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error +} + +func resolveHTTPSignerV4(o *Options) { + if o.HTTPSignerV4 != nil { + return + } + o.HTTPSignerV4 = newDefaultV4Signer(*o) +} + +func newDefaultV4Signer(o Options) *v4.Signer { + return v4.NewSigner(func(so *v4.SignerOptions) { + so.Logger = o.Logger + so.LogSigning = o.ClientLogMode.IsSigning() + }) +} + +func resolveIdempotencyTokenProvider(o *Options) { + if o.IdempotencyTokenProvider != nil { + return + } + o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader) +} + +func addRetryMiddlewares(stack *middleware.Stack, o Options) error { + mo := retry.AddRetryMiddlewaresOptions{ + Retryer: o.Retryer, + LogRetryAttempts: o.ClientLogMode.IsRetries(), + } + return retry.AddRetryMiddlewares(stack, mo) +} + +// resolves dual-stack endpoint configuration +func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseDualStackEndpoint = value + } + return nil +} + +// resolves FIPS endpoint configuration +func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error { + if len(cfg.ConfigSources) == 0 { + return nil + } + value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources) + if err != nil { + return err + } + if found { + o.EndpointOptions.UseFIPSEndpoint = value + } + return nil +} + +// IdempotencyTokenProvider interface for providing idempotency token +type IdempotencyTokenProvider interface { + GetIdempotencyToken() (string, error) +} + +func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error { + return awsmiddleware.AddRequestIDRetrieverMiddleware(stack) +} + +func addResponseErrorMiddleware(stack *middleware.Stack) error { + return awshttp.AddResponseErrorMiddleware(stack) +} + +func addRequestResponseLogging(stack *middleware.Stack, o Options) error { + return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{ + LogRequest: o.ClientLogMode.IsRequest(), + LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(), + LogResponse: o.ClientLogMode.IsResponse(), + LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(), + }, middleware.After) +} + +type disableHTTPSMiddleware struct { + DisableHTTPS bool +} + +func (*disableHTTPSMiddleware) ID() string { + return "disableHTTPS" +} + +func (m *disableHTTPSMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.DisableHTTPS && !smithyhttp.GetHostnameImmutable(ctx) { + req.URL.Scheme = "http" + } + + return next.HandleFinalize(ctx, in) +} + +func addDisableHTTPSMiddleware(stack *middleware.Stack, o Options) error { + return stack.Finalize.Insert(&disableHTTPSMiddleware{ + DisableHTTPS: o.EndpointOptions.DisableHTTPS, + }, "ResolveEndpointV2", middleware.After) +} diff --git a/service/marketplacedeployment/api_client_test.go b/service/marketplacedeployment/api_client_test.go new file mode 100644 index 00000000000..5d01442b363 --- /dev/null +++ b/service/marketplacedeployment/api_client_test.go @@ -0,0 +1,123 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io/ioutil" + "net/http" + "strings" + "testing" +) + +func TestClient_resolveRetryOptions(t *testing.T) { + nopClient := smithyhttp.ClientDoFunc(func(_ *http.Request) (*http.Response, error) { + return &http.Response{ + StatusCode: 200, + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader("")), + }, nil + }) + + cases := map[string]struct { + defaultsMode aws.DefaultsMode + retryer aws.Retryer + retryMaxAttempts int + opRetryMaxAttempts *int + retryMode aws.RetryMode + expectClientRetryMode aws.RetryMode + expectClientMaxAttempts int + expectOpMaxAttempts int + }{ + "defaults": { + defaultsMode: aws.DefaultsModeStandard, + expectClientRetryMode: aws.RetryModeStandard, + expectClientMaxAttempts: 3, + expectOpMaxAttempts: 3, + }, + "custom default retry": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + "custom op max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(2), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 2, + }, + "custom op no change max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(10), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + "custom op 0 max attempts": { + retryMode: aws.RetryModeAdaptive, + retryMaxAttempts: 10, + opRetryMaxAttempts: aws.Int(0), + expectClientRetryMode: aws.RetryModeAdaptive, + expectClientMaxAttempts: 10, + expectOpMaxAttempts: 10, + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + client := NewFromConfig(aws.Config{ + DefaultsMode: c.defaultsMode, + Retryer: func() func() aws.Retryer { + if c.retryer == nil { + return nil + } + + return func() aws.Retryer { return c.retryer } + }(), + HTTPClient: nopClient, + RetryMaxAttempts: c.retryMaxAttempts, + RetryMode: c.retryMode, + }) + + if e, a := c.expectClientRetryMode, client.options.RetryMode; e != a { + t.Errorf("expect %v retry mode, got %v", e, a) + } + if e, a := c.expectClientMaxAttempts, client.options.Retryer.MaxAttempts(); e != a { + t.Errorf("expect %v max attempts, got %v", e, a) + } + + _, _, err := client.invokeOperation(context.Background(), "mockOperation", struct{}{}, + []func(*Options){ + func(o *Options) { + if c.opRetryMaxAttempts == nil { + return + } + o.RetryMaxAttempts = *c.opRetryMaxAttempts + }, + }, + func(s *middleware.Stack, o Options) error { + s.Initialize.Clear() + s.Serialize.Clear() + s.Build.Clear() + s.Finalize.Clear() + s.Deserialize.Clear() + + if e, a := c.expectOpMaxAttempts, o.Retryer.MaxAttempts(); e != a { + t.Errorf("expect %v op max attempts, got %v", e, a) + } + return nil + }) + if err != nil { + t.Fatalf("expect no operation error, got %v", err) + } + }) + } +} diff --git a/service/marketplacedeployment/api_op_ListTagsForResource.go b/service/marketplacedeployment/api_op_ListTagsForResource.go new file mode 100644 index 00000000000..dbc8861486e --- /dev/null +++ b/service/marketplacedeployment/api_op_ListTagsForResource.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Lists all tags that have been added to a deployment parameter resource. +func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { + if params == nil { + params = &ListTagsForResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListTagsForResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListTagsForResourceInput struct { + + // The Amazon Resource Name (ARN) associated with the deployment parameter + // resource you want to list tags on. + // + // This member is required. + ResourceArn *string + + noSmithyDocumentSerde +} + +type ListTagsForResourceOutput struct { + + // A map of key-value pairs, where each pair represents a tag present on the + // resource. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListTagsForResource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListTagsForResource", + } +} diff --git a/service/marketplacedeployment/api_op_PutDeploymentParameter.go b/service/marketplacedeployment/api_op_PutDeploymentParameter.go new file mode 100644 index 00000000000..27aa247635d --- /dev/null +++ b/service/marketplacedeployment/api_op_PutDeploymentParameter.go @@ -0,0 +1,221 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/marketplacedeployment/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates or updates a deployment parameter and is targeted by catalog and +// agreementId . +func (c *Client) PutDeploymentParameter(ctx context.Context, params *PutDeploymentParameterInput, optFns ...func(*Options)) (*PutDeploymentParameterOutput, error) { + if params == nil { + params = &PutDeploymentParameterInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutDeploymentParameter", params, optFns, c.addOperationPutDeploymentParameterMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutDeploymentParameterOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutDeploymentParameterInput struct { + + // The unique identifier of the agreement. + // + // This member is required. + AgreementId *string + + // The catalog related to the request. Fixed value: AWS Marketplace + // + // This member is required. + Catalog *string + + // The deployment parameter targeted to the acceptor of an agreement for which to + // create the AWS Secret Manager resource. + // + // This member is required. + DeploymentParameter *types.DeploymentParameterInput + + // The product for which AWS Marketplace will save secrets for the buyer’s account. + // + // This member is required. + ProductId *string + + // The idempotency token for deployment parameters. A unique identifier for the + // new version. + ClientToken *string + + // The date when deployment parameters expire and are scheduled for deletion. + ExpirationDate *time.Time + + // A map of key-value pairs, where each pair represents a tag saved to the + // resource. Tags will only be applied for create operations, and they'll be + // ignored if the resource already exists. + Tags map[string]string + + noSmithyDocumentSerde +} + +type PutDeploymentParameterOutput struct { + + // The unique identifier of the agreement. + // + // This member is required. + AgreementId *string + + // The unique identifier of the deployment parameter. + // + // This member is required. + DeploymentParameterId *string + + // The Amazon Resource Name (ARN) associated with the deployment parameter + // resource you want to create or update. + // + // This member is required. + ResourceArn *string + + // A map of key-value pairs, where each pair represents a tag saved to the + // resource. Tags will only be applied for create operations, and they'll be + // ignored if the resource already exists. + Tags map[string]string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutDeploymentParameterMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpPutDeploymentParameter{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutDeploymentParameter{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "PutDeploymentParameter"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opPutDeploymentParameterMiddleware(stack, options); err != nil { + return err + } + if err = addOpPutDeploymentParameterValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutDeploymentParameter(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +type idempotencyToken_initializeOpPutDeploymentParameter struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpPutDeploymentParameter) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpPutDeploymentParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*PutDeploymentParameterInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *PutDeploymentParameterInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opPutDeploymentParameterMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpPutDeploymentParameter{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opPutDeploymentParameter(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "PutDeploymentParameter", + } +} diff --git a/service/marketplacedeployment/api_op_TagResource.go b/service/marketplacedeployment/api_op_TagResource.go new file mode 100644 index 00000000000..ce1bfb87817 --- /dev/null +++ b/service/marketplacedeployment/api_op_TagResource.go @@ -0,0 +1,136 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Tags a resource. +func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { + if params == nil { + params = &TagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*TagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type TagResourceInput struct { + + // The Amazon Resource Name (ARN) associated with the resource you want to tag. + // + // This member is required. + ResourceArn *string + + // A map of key-value pairs, where each pair represents a tag present on the + // resource. + Tags map[string]string + + noSmithyDocumentSerde +} + +type TagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "TagResource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpTagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "TagResource", + } +} diff --git a/service/marketplacedeployment/api_op_UntagResource.go b/service/marketplacedeployment/api_op_UntagResource.go new file mode 100644 index 00000000000..fefa50523f9 --- /dev/null +++ b/service/marketplacedeployment/api_op_UntagResource.go @@ -0,0 +1,138 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes a tag or list of tags from a resource. +func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { + if params == nil { + params = &UntagResourceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UntagResourceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UntagResourceInput struct { + + // The Amazon Resource Name (ARN) associated with the resource you want to remove + // the tag from. + // + // This member is required. + ResourceArn *string + + // A list of key names of tags to be removed. + // + // This member is required. + TagKeys []string + + noSmithyDocumentSerde +} + +type UntagResourceOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UntagResource"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUntagResourceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UntagResource", + } +} diff --git a/service/marketplacedeployment/auth.go b/service/marketplacedeployment/auth.go new file mode 100644 index 00000000000..c5554e5fd0b --- /dev/null +++ b/service/marketplacedeployment/auth.go @@ -0,0 +1,256 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + smithy "github.com/aws/smithy-go" + smithyauth "github.com/aws/smithy-go/auth" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +func bindAuthParamsRegion(params *AuthResolverParameters, _ interface{}, options Options) { + params.Region = options.Region +} + +type setLegacyContextSigningOptionsMiddleware struct { +} + +func (*setLegacyContextSigningOptionsMiddleware) ID() string { + return "setLegacyContextSigningOptions" +} + +func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + rscheme := getResolvedAuthScheme(ctx) + schemeID := rscheme.Scheme.SchemeID() + + if sn := awsmiddleware.GetSigningName(ctx); sn != "" { + if schemeID == "aws.auth#sigv4" { + smithyhttp.SetSigV4SigningName(&rscheme.SignerProperties, sn) + } else if schemeID == "aws.auth#sigv4a" { + smithyhttp.SetSigV4ASigningName(&rscheme.SignerProperties, sn) + } + } + + if sr := awsmiddleware.GetSigningRegion(ctx); sr != "" { + if schemeID == "aws.auth#sigv4" { + smithyhttp.SetSigV4SigningRegion(&rscheme.SignerProperties, sr) + } else if schemeID == "aws.auth#sigv4a" { + smithyhttp.SetSigV4ASigningRegions(&rscheme.SignerProperties, []string{sr}) + } + } + + return next.HandleFinalize(ctx, in) +} + +func addSetLegacyContextSigningOptionsMiddleware(stack *middleware.Stack) error { + return stack.Finalize.Insert(&setLegacyContextSigningOptionsMiddleware{}, "Signing", middleware.Before) +} + +// AuthResolverParameters contains the set of inputs necessary for auth scheme +// resolution. +type AuthResolverParameters struct { + // The name of the operation being invoked. + Operation string + + // The region in which the operation is being invoked. + Region string +} + +func bindAuthResolverParams(operation string, input interface{}, options Options) *AuthResolverParameters { + params := &AuthResolverParameters{ + Operation: operation, + } + + bindAuthParamsRegion(params, input, options) + + return params +} + +// AuthSchemeResolver returns a set of possible authentication options for an +// operation. +type AuthSchemeResolver interface { + ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error) +} + +type defaultAuthSchemeResolver struct{} + +var _ AuthSchemeResolver = (*defaultAuthSchemeResolver)(nil) + +func (*defaultAuthSchemeResolver) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) { + if overrides, ok := operationAuthOptions[params.Operation]; ok { + return overrides(params), nil + } + return serviceAuthOptions(params), nil +} + +var operationAuthOptions = map[string]func(*AuthResolverParameters) []*smithyauth.Option{} + +func serviceAuthOptions(params *AuthResolverParameters) []*smithyauth.Option { + return []*smithyauth.Option{ + { + SchemeID: smithyauth.SchemeIDSigV4, + SignerProperties: func() smithy.Properties { + var props smithy.Properties + smithyhttp.SetSigV4SigningName(&props, "aws-marketplace") + smithyhttp.SetSigV4SigningRegion(&props, params.Region) + return props + }(), + }, + } +} + +type resolveAuthSchemeMiddleware struct { + operation string + options Options +} + +func (*resolveAuthSchemeMiddleware) ID() string { + return "ResolveAuthScheme" +} + +func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) + options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) + if err != nil { + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) + } + + scheme, ok := m.selectScheme(options) + if !ok { + return out, metadata, fmt.Errorf("could not select an auth scheme") + } + + ctx = setResolvedAuthScheme(ctx, scheme) + return next.HandleFinalize(ctx, in) +} + +func (m *resolveAuthSchemeMiddleware) selectScheme(options []*smithyauth.Option) (*resolvedAuthScheme, bool) { + for _, option := range options { + if option.SchemeID == smithyauth.SchemeIDAnonymous { + return newResolvedAuthScheme(smithyhttp.NewAnonymousScheme(), option), true + } + + for _, scheme := range m.options.AuthSchemes { + if scheme.SchemeID() != option.SchemeID { + continue + } + + if scheme.IdentityResolver(m.options) != nil { + return newResolvedAuthScheme(scheme, option), true + } + } + } + + return nil, false +} + +type resolvedAuthSchemeKey struct{} + +type resolvedAuthScheme struct { + Scheme smithyhttp.AuthScheme + IdentityProperties smithy.Properties + SignerProperties smithy.Properties +} + +func newResolvedAuthScheme(scheme smithyhttp.AuthScheme, option *smithyauth.Option) *resolvedAuthScheme { + return &resolvedAuthScheme{ + Scheme: scheme, + IdentityProperties: option.IdentityProperties, + SignerProperties: option.SignerProperties, + } +} + +func setResolvedAuthScheme(ctx context.Context, scheme *resolvedAuthScheme) context.Context { + return middleware.WithStackValue(ctx, resolvedAuthSchemeKey{}, scheme) +} + +func getResolvedAuthScheme(ctx context.Context) *resolvedAuthScheme { + v, _ := middleware.GetStackValue(ctx, resolvedAuthSchemeKey{}).(*resolvedAuthScheme) + return v +} + +type getIdentityMiddleware struct { + options Options +} + +func (*getIdentityMiddleware) ID() string { + return "GetIdentity" +} + +func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + resolver := rscheme.Scheme.IdentityResolver(m.options) + if resolver == nil { + return out, metadata, fmt.Errorf("no identity resolver") + } + + identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) + if err != nil { + return out, metadata, fmt.Errorf("get identity: %w", err) + } + + ctx = setIdentity(ctx, identity) + return next.HandleFinalize(ctx, in) +} + +type identityKey struct{} + +func setIdentity(ctx context.Context, identity smithyauth.Identity) context.Context { + return middleware.WithStackValue(ctx, identityKey{}, identity) +} + +func getIdentity(ctx context.Context) smithyauth.Identity { + v, _ := middleware.GetStackValue(ctx, identityKey{}).(smithyauth.Identity) + return v +} + +type signRequestMiddleware struct { +} + +func (*signRequestMiddleware) ID() string { + return "Signing" +} + +func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request) + } + + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + identity := getIdentity(ctx) + if identity == nil { + return out, metadata, fmt.Errorf("no identity") + } + + signer := rscheme.Scheme.Signer() + if signer == nil { + return out, metadata, fmt.Errorf("no signer") + } + + if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { + return out, metadata, fmt.Errorf("sign request: %w", err) + } + + return next.HandleFinalize(ctx, in) +} diff --git a/service/marketplacedeployment/deserializers.go b/service/marketplacedeployment/deserializers.go new file mode 100644 index 00000000000..e9af6e6d1b3 --- /dev/null +++ b/service/marketplacedeployment/deserializers.go @@ -0,0 +1,1188 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/marketplacedeployment/types" + smithy "github.com/aws/smithy-go" + smithyio "github.com/aws/smithy-go/io" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithyhttp "github.com/aws/smithy-go/transport/http" + "io" + "strings" +) + +type awsRestjson1_deserializeOpListTagsForResource struct { +} + +func (*awsRestjson1_deserializeOpListTagsForResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorListTagsForResource(response, &metadata) + } + output := &ListTagsForResourceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentListTagsForResourceOutput(v **ListTagsForResourceOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListTagsForResourceOutput + if *v == nil { + sv = &ListTagsForResourceOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "tags": + if err := awsRestjson1_deserializeDocumentTags(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpPutDeploymentParameter struct { +} + +func (*awsRestjson1_deserializeOpPutDeploymentParameter) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutDeploymentParameter) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorPutDeploymentParameter(response, &metadata) + } + output := &PutDeploymentParameterOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentPutDeploymentParameterOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutDeploymentParameter(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentPutDeploymentParameterOutput(v **PutDeploymentParameterOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutDeploymentParameterOutput + if *v == nil { + sv = &PutDeploymentParameterOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "agreementId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.AgreementId = ptr.String(jtv) + } + + case "deploymentParameterId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected DeploymentParameterResourceIdentifier to be of type string, got %T instead", value) + } + sv.DeploymentParameterId = ptr.String(jtv) + } + + case "resourceArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceArn to be of type string, got %T instead", value) + } + sv.ResourceArn = ptr.String(jtv) + } + + case "tags": + if err := awsRestjson1_deserializeDocumentTagsMap(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +type awsRestjson1_deserializeOpTagResource struct { +} + +func (*awsRestjson1_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsRestjson1_deserializeOpUntagResource struct { +} + +func (*awsRestjson1_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsRestjson1_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsRestjson1_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsRestjson1_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.AccessDeniedException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ConflictException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorInternalServerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.InternalServerException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentInternalServerException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ResourceNotFoundException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentResourceNotFoundException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorServiceQuotaExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ServiceQuotaExceededException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentServiceQuotaExceededException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorThrottlingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ThrottlingException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentThrottlingException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeErrorValidationException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + output := &types.ValidationException{} + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + err := awsRestjson1_deserializeDocumentValidationException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + + return output +} + +func awsRestjson1_deserializeDocumentAccessDeniedException(v **types.AccessDeniedException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AccessDeniedException + if *v == nil { + sv = &types.AccessDeniedException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentConflictException(v **types.ConflictException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ConflictException + if *v == nil { + sv = &types.ConflictException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + case "resourceId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ResourceId to be of type string, got %T instead", value) + } + sv.ResourceId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentInternalServerException(v **types.InternalServerException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.InternalServerException + if *v == nil { + sv = &types.InternalServerException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ResourceNotFoundException + if *v == nil { + sv = &types.ResourceNotFoundException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentServiceQuotaExceededException(v **types.ServiceQuotaExceededException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ServiceQuotaExceededException + if *v == nil { + sv = &types.ServiceQuotaExceededException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentTagsMap(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagValue to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + +func awsRestjson1_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ThrottlingException + if *v == nil { + sv = &types.ThrottlingException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentValidationException(v **types.ValidationException, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ValidationException + if *v == nil { + sv = &types.ValidationException{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "fieldName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.FieldName = ptr.String(jtv) + } + + case "message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} diff --git a/service/marketplacedeployment/doc.go b/service/marketplacedeployment/doc.go new file mode 100644 index 00000000000..7174791858a --- /dev/null +++ b/service/marketplacedeployment/doc.go @@ -0,0 +1,13 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package marketplacedeployment provides the API client, operations, and +// parameter types for AWS Marketplace Deployment Service. +// +// The AWS Marketplace Deployment Service supports the Quick Launch experience, +// which is a deployment option for software as a service (SaaS) products. Quick +// Launch simplifies and reduces the time, resources, and steps required to +// configure, deploy, and launch a products. The AWS Marketplace Deployment Service +// provides sellers with a secure method for passing deployment parameters (for +// example, API keys and external IDs) to buyers during the Quick Launch +// experience. +package marketplacedeployment diff --git a/service/marketplacedeployment/endpoints.go b/service/marketplacedeployment/endpoints.go new file mode 100644 index 00000000000..084d0800395 --- /dev/null +++ b/service/marketplacedeployment/endpoints.go @@ -0,0 +1,509 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "errors" + "fmt" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" + "github.com/aws/aws-sdk-go-v2/internal/endpoints" + "github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn" + internalendpoints "github.com/aws/aws-sdk-go-v2/service/marketplacedeployment/internal/endpoints" + smithyauth "github.com/aws/smithy-go/auth" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/middleware" + "github.com/aws/smithy-go/ptr" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" + "net/url" + "os" + "strings" +) + +// EndpointResolverOptions is the service endpoint resolver options +type EndpointResolverOptions = internalendpoints.Options + +// EndpointResolver interface for resolving service endpoints. +type EndpointResolver interface { + ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error) +} + +var _ EndpointResolver = &internalendpoints.Resolver{} + +// NewDefaultEndpointResolver constructs a new service endpoint resolver +func NewDefaultEndpointResolver() *internalendpoints.Resolver { + return internalendpoints.New() +} + +// EndpointResolverFunc is a helper utility that wraps a function so it satisfies +// the EndpointResolver interface. This is useful when you want to add additional +// endpoint resolving logic, or stub out specific endpoints with custom values. +type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error) + +func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return fn(region, options) +} + +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + +type ResolveEndpoint struct { + Resolver EndpointResolver + Options EndpointResolverOptions +} + +func (*ResolveEndpoint) ID() string { + return "ResolveEndpoint" +} + +func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + if !awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleSerialize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.Resolver == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + eo := m.Options + eo.Logger = middleware.GetLogger(ctx) + + var endpoint aws.Endpoint + endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo) + if err != nil { + nf := (&aws.EndpointNotFoundError{}) + if errors.As(err, &nf) { + ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, false) + return next.HandleSerialize(ctx, in) + } + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + req.URL, err = url.Parse(endpoint.URL) + if err != nil { + return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err) + } + + if len(awsmiddleware.GetSigningName(ctx)) == 0 { + signingName := endpoint.SigningName + if len(signingName) == 0 { + signingName = "aws-marketplace" + } + ctx = awsmiddleware.SetSigningName(ctx, signingName) + } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) + ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) + ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) + ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) + return next.HandleSerialize(ctx, in) +} +func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error { + return stack.Serialize.Insert(&ResolveEndpoint{ + Resolver: o.EndpointResolver, + Options: o.EndpointOptions, + }, "OperationSerializer", middleware.Before) +} + +func removeResolveEndpointMiddleware(stack *middleware.Stack) error { + _, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID()) + return err +} + +type wrappedEndpointResolver struct { + awsResolver aws.EndpointResolverWithOptions +} + +func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) { + return w.awsResolver.ResolveEndpoint(ServiceID, region, options) +} + +type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error) + +func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) { + return a(service, region) +} + +var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil) + +// withEndpointResolver returns an aws.EndpointResolverWithOptions that first delegates endpoint resolution to the awsResolver. +// If awsResolver returns aws.EndpointNotFoundError error, the v1 resolver middleware will swallow the error, +// and set an appropriate context flag such that fallback will occur when EndpointResolverV2 is invoked +// via its middleware. +// +// If another error (besides aws.EndpointNotFoundError) is returned, then that error will be propagated. +func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions) EndpointResolver { + var resolver aws.EndpointResolverWithOptions + + if awsResolverWithOptions != nil { + resolver = awsResolverWithOptions + } else if awsResolver != nil { + resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint) + } + + return &wrappedEndpointResolver{ + awsResolver: resolver, + } +} + +func finalizeClientEndpointResolverOptions(options *Options) { + options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage() + + if len(options.EndpointOptions.ResolvedRegion) == 0 { + const fipsInfix = "-fips-" + const fipsPrefix = "fips-" + const fipsSuffix = "-fips" + + if strings.Contains(options.Region, fipsInfix) || + strings.Contains(options.Region, fipsPrefix) || + strings.Contains(options.Region, fipsSuffix) { + options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll( + options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "") + options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled + } + } + +} + +func resolveEndpointResolverV2(options *Options) { + if options.EndpointResolverV2 == nil { + options.EndpointResolverV2 = NewDefaultEndpointResolverV2() + } +} + +func resolveBaseEndpoint(cfg aws.Config, o *Options) { + if cfg.BaseEndpoint != nil { + o.BaseEndpoint = cfg.BaseEndpoint + } + + _, g := os.LookupEnv("AWS_ENDPOINT_URL") + _, s := os.LookupEnv("AWS_ENDPOINT_URL_MARKETPLACE_DEPLOYMENT") + + if g && !s { + return + } + + value, found, err := internalConfig.ResolveServiceBaseEndpoint(context.Background(), "Marketplace Deployment", cfg.ConfigSources) + if found && err == nil { + o.BaseEndpoint = &value + } +} + +// EndpointParameters provides the parameters that influence how endpoints are +// resolved. +type EndpointParameters struct { + // The AWS region used to dispatch the request. + // + // Parameter is + // required. + // + // AWS::Region + Region *string + + // When true, use the dual-stack endpoint. If the configured endpoint does not + // support dual-stack, dispatching the request MAY return an error. + // + // Defaults to + // false if no value is provided. + // + // AWS::UseDualStack + UseDualStack *bool + + // 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. + // + // Defaults to false if no value is + // provided. + // + // AWS::UseFIPS + UseFIPS *bool + + // Override the endpoint used to send this request + // + // Parameter is + // required. + // + // SDK::Endpoint + Endpoint *string +} + +// ValidateRequired validates required parameters are set. +func (p EndpointParameters) ValidateRequired() error { + if p.UseDualStack == nil { + return fmt.Errorf("parameter UseDualStack is required") + } + + if p.UseFIPS == nil { + return fmt.Errorf("parameter UseFIPS is required") + } + + return nil +} + +// WithDefaults returns a shallow copy of EndpointParameterswith default values +// applied to members where applicable. +func (p EndpointParameters) WithDefaults() EndpointParameters { + if p.UseDualStack == nil { + p.UseDualStack = ptr.Bool(false) + } + + if p.UseFIPS == nil { + p.UseFIPS = ptr.Bool(false) + } + return p +} + +// EndpointResolverV2 provides the interface for resolving service endpoints. +type EndpointResolverV2 interface { + // ResolveEndpoint attempts to resolve the endpoint with the provided options, + // returning the endpoint if found. Otherwise an error is returned. + ResolveEndpoint(ctx context.Context, params EndpointParameters) ( + smithyendpoints.Endpoint, error, + ) +} + +// resolver provides the implementation for resolving endpoints. +type resolver struct{} + +func NewDefaultEndpointResolverV2() EndpointResolverV2 { + return &resolver{} +} + +// ResolveEndpoint attempts to resolve the endpoint with the provided options, +// returning the endpoint if found. Otherwise an error is returned. +func (r *resolver) ResolveEndpoint( + ctx context.Context, params EndpointParameters, +) ( + endpoint smithyendpoints.Endpoint, err error, +) { + params = params.WithDefaults() + if err = params.ValidateRequired(); err != nil { + return endpoint, fmt.Errorf("endpoint parameters are not valid, %w", err) + } + _UseDualStack := *params.UseDualStack + _UseFIPS := *params.UseFIPS + + if exprVal := params.Endpoint; exprVal != nil { + _Endpoint := *exprVal + _ = _Endpoint + if _UseFIPS == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: FIPS and custom endpoint are not supported") + } + if _UseDualStack == true { + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Dualstack and custom endpoint are not supported") + } + uriString := _Endpoint + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + if exprVal := params.Region; exprVal != nil { + _Region := *exprVal + _ = _Region + if exprVal := awsrulesfn.GetPartition(_Region); exprVal != nil { + _PartitionResult := *exprVal + _ = _PartitionResult + if _UseFIPS == true { + if _UseDualStack == true { + if true == _PartitionResult.SupportsFIPS { + if true == _PartitionResult.SupportsDualStack { + uriString := func() string { + var out strings.Builder + out.WriteString("https://deployment-marketplace-fips.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DualStackDnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS and DualStack are enabled, but this partition does not support one or both") + } + } + if _UseFIPS == true { + if _PartitionResult.SupportsFIPS == true { + uriString := func() string { + var out strings.Builder + out.WriteString("https://deployment-marketplace-fips.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS is enabled but this partition does not support FIPS") + } + if _UseDualStack == true { + if true == _PartitionResult.SupportsDualStack { + uriString := func() string { + var out strings.Builder + out.WriteString("https://deployment-marketplace.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DualStackDnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "DualStack is enabled but this partition does not support DualStack") + } + uriString := func() string { + var out strings.Builder + out.WriteString("https://deployment-marketplace.") + out.WriteString(_Region) + out.WriteString(".") + out.WriteString(_PartitionResult.DnsSuffix) + return out.String() + }() + + uri, err := url.Parse(uriString) + if err != nil { + return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString) + } + + return smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + }, nil + } + return endpoint, fmt.Errorf("Endpoint resolution failed. Invalid operation or environment input.") + } + return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Missing Region") +} + +type endpointParamsBinder interface { + bindEndpointParams(*EndpointParameters) +} + +func bindEndpointParams(input interface{}, options Options) *EndpointParameters { + params := &EndpointParameters{} + + params.Region = aws.String(endpoints.MapFIPSRegion(options.Region)) + params.UseDualStack = aws.Bool(options.EndpointOptions.UseDualStackEndpoint == aws.DualStackEndpointStateEnabled) + params.UseFIPS = aws.Bool(options.EndpointOptions.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled) + params.Endpoint = options.BaseEndpoint + + if b, ok := input.(endpointParamsBinder); ok { + b.bindEndpointParams(params) + } + + return params +} + +type resolveEndpointV2Middleware struct { + options Options +} + +func (*resolveEndpointV2Middleware) ID() string { + return "ResolveEndpointV2" +} + +func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( + out middleware.FinalizeOutput, metadata middleware.Metadata, err error, +) { + if awsmiddleware.GetRequiresLegacyEndpoints(ctx) { + return next.HandleFinalize(ctx, in) + } + + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, fmt.Errorf("unknown transport type %T", in.Request) + } + + if m.options.EndpointResolverV2 == nil { + return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil") + } + + params := bindEndpointParams(getOperationInput(ctx), m.options) + endpt, err := m.options.EndpointResolverV2.ResolveEndpoint(ctx, *params) + if err != nil { + return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err) + } + + if endpt.URI.RawPath == "" && req.URL.RawPath != "" { + endpt.URI.RawPath = endpt.URI.Path + } + req.URL.Scheme = endpt.URI.Scheme + req.URL.Host = endpt.URI.Host + req.URL.Path = smithyhttp.JoinPath(endpt.URI.Path, req.URL.Path) + req.URL.RawPath = smithyhttp.JoinPath(endpt.URI.RawPath, req.URL.RawPath) + for k := range endpt.Headers { + req.Header.Set(k, endpt.Headers.Get(k)) + } + + rscheme := getResolvedAuthScheme(ctx) + if rscheme == nil { + return out, metadata, fmt.Errorf("no resolved auth scheme") + } + + opts, _ := smithyauth.GetAuthOptions(&endpt.Properties) + for _, o := range opts { + rscheme.SignerProperties.SetAll(&o.SignerProperties) + } + + return next.HandleFinalize(ctx, in) +} diff --git a/service/marketplacedeployment/endpoints_config_test.go b/service/marketplacedeployment/endpoints_config_test.go new file mode 100644 index 00000000000..b16ceb2c8b4 --- /dev/null +++ b/service/marketplacedeployment/endpoints_config_test.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + "os" + "reflect" + "testing" +) + +type mockConfigSource struct { + global string + service string + ignore bool +} + +// GetIgnoreConfiguredEndpoints is used in knowing when to disable configured +// endpoints feature. +func (m mockConfigSource) GetIgnoreConfiguredEndpoints(context.Context) (bool, bool, error) { + return m.ignore, m.ignore, nil +} + +// GetServiceBaseEndpoint is used to retrieve a normalized SDK ID for use +// with configured endpoints. +func (m mockConfigSource) GetServiceBaseEndpoint(ctx context.Context, sdkID string) (string, bool, error) { + if m.service != "" { + return m.service, true, nil + } + return "", false, nil +} + +func TestResolveBaseEndpoint(t *testing.T) { + cases := map[string]struct { + envGlobal string + envService string + envIgnore bool + configGlobal string + configService string + configIgnore bool + clientEndpoint *string + expectURL *string + }{ + "env ignore": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-deployment.dev", + envIgnore: true, + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-deployment.dev", + expectURL: nil, + }, + "env global": { + envGlobal: "https://env-global.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-deployment.dev", + expectURL: aws.String("https://env-global.dev"), + }, + "env service": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-deployment.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-deployment.dev", + expectURL: aws.String("https://env-marketplace-deployment.dev"), + }, + "config ignore": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-deployment.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-deployment.dev", + configIgnore: true, + expectURL: nil, + }, + "config global": { + configGlobal: "http://config-global.dev", + expectURL: aws.String("http://config-global.dev"), + }, + "config service": { + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-deployment.dev", + expectURL: aws.String("http://config-marketplace-deployment.dev"), + }, + "client": { + envGlobal: "https://env-global.dev", + envService: "https://env-marketplace-deployment.dev", + configGlobal: "http://config-global.dev", + configService: "http://config-marketplace-deployment.dev", + clientEndpoint: aws.String("https://client-marketplace-deployment.dev"), + expectURL: aws.String("https://client-marketplace-deployment.dev"), + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + os.Clearenv() + + awsConfig := aws.Config{} + ignore := c.envIgnore || c.configIgnore + + if c.configGlobal != "" && !ignore { + awsConfig.BaseEndpoint = aws.String(c.configGlobal) + } + + if c.envGlobal != "" { + t.Setenv("AWS_ENDPOINT_URL", c.envGlobal) + if !ignore { + awsConfig.BaseEndpoint = aws.String(c.envGlobal) + } + } + + if c.envService != "" { + t.Setenv("AWS_ENDPOINT_URL_MARKETPLACE_DEPLOYMENT", c.envService) + } + + awsConfig.ConfigSources = []interface{}{ + mockConfigSource{ + global: c.envGlobal, + service: c.envService, + ignore: c.envIgnore, + }, + mockConfigSource{ + global: c.configGlobal, + service: c.configService, + ignore: c.configIgnore, + }, + } + + client := NewFromConfig(awsConfig, func(o *Options) { + if c.clientEndpoint != nil { + o.BaseEndpoint = c.clientEndpoint + } + }) + + if e, a := c.expectURL, client.options.BaseEndpoint; !reflect.DeepEqual(e, a) { + t.Errorf("expect endpoint %v , got %v", e, a) + } + }) + } +} diff --git a/service/marketplacedeployment/endpoints_test.go b/service/marketplacedeployment/endpoints_test.go new file mode 100644 index 00000000000..a7a2ad79324 --- /dev/null +++ b/service/marketplacedeployment/endpoints_test.go @@ -0,0 +1,856 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + smithy "github.com/aws/smithy-go" + smithyendpoints "github.com/aws/smithy-go/endpoints" + "github.com/aws/smithy-go/ptr" + "github.com/google/go-cmp/cmp" + "net/http" + "net/url" + "strings" + "testing" +) + +// For region us-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase0(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.us-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase1(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.us-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase2(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.us-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase3(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.us-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS enabled and DualStack enabled +func TestEndpointCase4(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.cn-north-1.api.amazonwebservices.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS enabled and DualStack disabled +func TestEndpointCase5(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.cn-north-1.amazonaws.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS disabled and DualStack enabled +func TestEndpointCase6(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.cn-north-1.api.amazonwebservices.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region cn-north-1 with FIPS disabled and DualStack disabled +func TestEndpointCase7(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("cn-north-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.cn-north-1.amazonaws.com.cn") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase8(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.us-gov-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase9(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.us-gov-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase10(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.us-gov-east-1.api.aws") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-gov-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase11(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-gov-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.us-gov-east-1.amazonaws.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase12(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase13(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.us-iso-east-1.c2s.ic.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-iso-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase14(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-iso-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase15(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-iso-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.us-iso-east-1.c2s.ic.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-isob-east-1 with FIPS enabled and DualStack enabled +func TestEndpointCase16(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "FIPS and DualStack are enabled, but this partition does not support one or both", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-isob-east-1 with FIPS enabled and DualStack disabled +func TestEndpointCase17(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace-fips.us-isob-east-1.sc2s.sgov.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For region us-isob-east-1 with FIPS disabled and DualStack enabled +func TestEndpointCase18(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For region us-isob-east-1 with FIPS disabled and DualStack disabled +func TestEndpointCase19(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-isob-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://deployment-marketplace.us-isob-east-1.sc2s.sgov.gov") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with region set and fips disabled and dualstack disabled +func TestEndpointCase20(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://example.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with region not set and fips disabled and dualstack disabled +func TestEndpointCase21(t *testing.T) { + var params = EndpointParameters{ + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + uri, _ := url.Parse("https://example.com") + + expectEndpoint := smithyendpoints.Endpoint{ + URI: *uri, + Headers: http.Header{}, + Properties: smithy.Properties{}, + } + + if e, a := expectEndpoint.URI, result.URI; e != a { + t.Errorf("expect %v URI, got %v", e, a) + } + + if diff := cmp.Diff(expectEndpoint.Headers, result.Headers); diff != "" { + t.Errorf("expect headers to match\n%s", diff) + } + + if diff := cmp.Diff(expectEndpoint.Properties, result.Properties, + cmp.AllowUnexported(smithy.Properties{}), + ); diff != "" { + t.Errorf("expect properties to match\n%s", diff) + } +} + +// For custom endpoint with fips enabled and dualstack disabled +func TestEndpointCase22(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(true), + UseDualStack: ptr.Bool(false), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: FIPS and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// For custom endpoint with fips disabled and dualstack enabled +func TestEndpointCase23(t *testing.T) { + var params = EndpointParameters{ + Region: ptr.String("us-east-1"), + UseFIPS: ptr.Bool(false), + UseDualStack: ptr.Bool(true), + Endpoint: ptr.String("https://example.com"), + } + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Dualstack and custom endpoint are not supported", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} + +// Missing region +func TestEndpointCase24(t *testing.T) { + var params = EndpointParameters{} + + resolver := NewDefaultEndpointResolverV2() + result, err := resolver.ResolveEndpoint(context.Background(), params) + _, _ = result, err + + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := "Invalid Configuration: Missing Region", err.Error(); !strings.Contains(a, e) { + t.Errorf("expect %v error in %v", e, a) + } +} diff --git a/service/marketplacedeployment/generated.json b/service/marketplacedeployment/generated.json new file mode 100644 index 00000000000..b5cb7b5204f --- /dev/null +++ b/service/marketplacedeployment/generated.json @@ -0,0 +1,35 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000", + "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000", + "github.com/aws/smithy-go": "v1.4.0", + "github.com/google/go-cmp": "v0.5.4" + }, + "files": [ + "api_client.go", + "api_client_test.go", + "api_op_ListTagsForResource.go", + "api_op_PutDeploymentParameter.go", + "api_op_TagResource.go", + "api_op_UntagResource.go", + "auth.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "endpoints_config_test.go", + "endpoints_test.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "options.go", + "protocol_test.go", + "serializers.go", + "types/errors.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/marketplacedeployment", + "unstable": false +} diff --git a/service/marketplacedeployment/go.mod b/service/marketplacedeployment/go.mod new file mode 100644 index 00000000000..97bffe142f0 --- /dev/null +++ b/service/marketplacedeployment/go.mod @@ -0,0 +1,17 @@ +module github.com/aws/aws-sdk-go-v2/service/marketplacedeployment + +go 1.19 + +require ( + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 + github.com/google/go-cmp v0.5.8 +) + +replace github.com/aws/aws-sdk-go-v2 => ../../ + +replace github.com/aws/aws-sdk-go-v2/internal/configsources => ../../internal/configsources/ + +replace github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 => ../../internal/endpoints/v2/ diff --git a/service/marketplacedeployment/go.sum b/service/marketplacedeployment/go.sum new file mode 100644 index 00000000000..2949ab2a4c2 --- /dev/null +++ b/service/marketplacedeployment/go.sum @@ -0,0 +1,4 @@ +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacedeployment/go_module_metadata.go b/service/marketplacedeployment/go_module_metadata.go new file mode 100644 index 00000000000..27b5041f525 --- /dev/null +++ b/service/marketplacedeployment/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package marketplacedeployment + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "1.0.1" diff --git a/service/marketplacedeployment/internal/endpoints/endpoints.go b/service/marketplacedeployment/internal/endpoints/endpoints.go new file mode 100644 index 00000000000..8a9f7438804 --- /dev/null +++ b/service/marketplacedeployment/internal/endpoints/endpoints.go @@ -0,0 +1,296 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "github.com/aws/aws-sdk-go-v2/aws" + endpoints "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2" + "github.com/aws/smithy-go/logging" + "regexp" +) + +// Options is the endpoint resolver configuration options +type Options struct { + // Logger is a logging implementation that log events should be sent to. + Logger logging.Logger + + // LogDeprecated indicates that deprecated endpoints should be logged to the + // provided logger. + LogDeprecated bool + + // ResolvedRegion is used to override the region to be resolved, rather then the + // using the value passed to the ResolveEndpoint method. This value is used by the + // SDK to translate regions like fips-us-east-1 or us-east-1-fips to an alternative + // name. You must not set this value directly in your application. + ResolvedRegion string + + // DisableHTTPS informs the resolver to return an endpoint that does not use the + // HTTPS scheme. + DisableHTTPS bool + + // UseDualStackEndpoint specifies the resolver must resolve a dual-stack endpoint. + UseDualStackEndpoint aws.DualStackEndpointState + + // UseFIPSEndpoint specifies the resolver must resolve a FIPS endpoint. + UseFIPSEndpoint aws.FIPSEndpointState +} + +func (o Options) GetResolvedRegion() string { + return o.ResolvedRegion +} + +func (o Options) GetDisableHTTPS() bool { + return o.DisableHTTPS +} + +func (o Options) GetUseDualStackEndpoint() aws.DualStackEndpointState { + return o.UseDualStackEndpoint +} + +func (o Options) GetUseFIPSEndpoint() aws.FIPSEndpointState { + return o.UseFIPSEndpoint +} + +func transformToSharedOptions(options Options) endpoints.Options { + return endpoints.Options{ + Logger: options.Logger, + LogDeprecated: options.LogDeprecated, + ResolvedRegion: options.ResolvedRegion, + DisableHTTPS: options.DisableHTTPS, + UseDualStackEndpoint: options.UseDualStackEndpoint, + UseFIPSEndpoint: options.UseFIPSEndpoint, + } +} + +// Resolver Marketplace Deployment endpoint resolver +type Resolver struct { + partitions endpoints.Partitions +} + +// ResolveEndpoint resolves the service endpoint for the given region and options +func (r *Resolver) ResolveEndpoint(region string, options Options) (endpoint aws.Endpoint, err error) { + if len(region) == 0 { + return endpoint, &aws.MissingRegionError{} + } + + opt := transformToSharedOptions(options) + return r.partitions.ResolveEndpoint(region, opt) +} + +// New returns a new Resolver +func New() *Resolver { + return &Resolver{ + partitions: defaultPartitions, + } +} + +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsIsoE *regexp.Regexp + AwsIsoF *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsIsoE: regexp.MustCompile("^eu\\-isoe\\-\\w+\\-\\d+$"), + AwsIsoF: regexp.MustCompile("^us\\-isof\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + +var defaultPartitions = endpoints.Partitions{ + { + ID: "aws", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "deployment-marketplace.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "deployment-marketplace.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.Aws, + IsRegionalized: true, + }, + { + ID: "aws-cn", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "deployment-marketplace.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.api.amazonwebservices.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "deployment-marketplace.{region}.amazonaws.com.cn", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsCn, + IsRegionalized: true, + }, + { + ID: "aws-iso", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "deployment-marketplace.{region}.c2s.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIso, + IsRegionalized: true, + }, + { + ID: "aws-iso-b", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "deployment-marketplace.{region}.sc2s.sgov.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoB, + IsRegionalized: true, + }, + { + ID: "aws-iso-e", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "deployment-marketplace.{region}.cloud.adc-e.uk", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoE, + IsRegionalized: true, + }, + { + ID: "aws-iso-f", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.csp.hci.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "deployment-marketplace.{region}.csp.hci.ic.gov", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsIsoF, + IsRegionalized: true, + }, + { + ID: "aws-us-gov", + Defaults: map[endpoints.DefaultKey]endpoints.Endpoint{ + { + Variant: endpoints.DualStackVariant, + }: { + Hostname: "deployment-marketplace.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: endpoints.FIPSVariant | endpoints.DualStackVariant, + }: { + Hostname: "deployment-marketplace-fips.{region}.api.aws", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + { + Variant: 0, + }: { + Hostname: "deployment-marketplace.{region}.amazonaws.com", + Protocols: []string{"https"}, + SignatureVersions: []string{"v4"}, + }, + }, + RegionRegex: partitionRegexp.AwsUsGov, + IsRegionalized: true, + }, +} diff --git a/service/marketplacedeployment/internal/endpoints/endpoints_test.go b/service/marketplacedeployment/internal/endpoints/endpoints_test.go new file mode 100644 index 00000000000..08e5da2d833 --- /dev/null +++ b/service/marketplacedeployment/internal/endpoints/endpoints_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package endpoints + +import ( + "testing" +) + +func TestRegexCompile(t *testing.T) { + _ = defaultPartitions +} diff --git a/service/marketplacedeployment/options.go b/service/marketplacedeployment/options.go new file mode 100644 index 00000000000..3b4a96805ce --- /dev/null +++ b/service/marketplacedeployment/options.go @@ -0,0 +1,223 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/aws" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" + smithyauth "github.com/aws/smithy-go/auth" + "github.com/aws/smithy-go/logging" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "net/http" +) + +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} + +type Options struct { + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // The optional application specific identifier appended to the User-Agent header. + AppID string + + // This endpoint will be given as input to an EndpointResolverV2. It is used for + // providing a custom base endpoint that is subject to modifications by the + // processing EndpointResolverV2. + BaseEndpoint *string + + // Configures the events that will be sent to the configured logger. + ClientLogMode aws.ClientLogMode + + // The credentials object to use when signing requests. + Credentials aws.CredentialsProvider + + // The configuration DefaultsMode that the SDK should use when constructing the + // clients initial default settings. + DefaultsMode aws.DefaultsMode + + // The endpoint options to be used when attempting to resolve an endpoint. + EndpointOptions EndpointResolverOptions + + // The service endpoint resolver. + // + // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a + // value for this field will likely prevent you from using any endpoint-related + // service features released after the introduction of EndpointResolverV2 and + // BaseEndpoint. To migrate an EndpointResolver implementation that uses a custom + // endpoint, set the client option BaseEndpoint instead. + EndpointResolver EndpointResolver + + // Resolves the endpoint used for a particular service operation. This should be + // used over the deprecated EndpointResolver. + EndpointResolverV2 EndpointResolverV2 + + // Signature Version 4 (SigV4) Signer + HTTPSignerV4 HTTPSignerV4 + + // Provides idempotency tokens values that will be automatically populated into + // idempotent API operations. + IdempotencyTokenProvider IdempotencyTokenProvider + + // The logger writer interface to write logging messages to. + Logger logging.Logger + + // The region to send requests to. (Required) + Region string + + // RetryMaxAttempts specifies the maximum number attempts an API client will call + // an operation that fails with a retryable error. A value of 0 is ignored, and + // will not be used to configure the API client created default retryer, or modify + // per operation call's retry max attempts. When creating a new API Clients this + // member will only be used if the Retryer Options member is nil. This value will + // be ignored if Retryer is not nil. If specified in an operation call's functional + // options with a value that is different than the constructed client's Options, + // the Client's Retryer will be wrapped to use the operation's specific + // RetryMaxAttempts value. + RetryMaxAttempts int + + // RetryMode specifies the retry mode the API client will be created with, if + // Retryer option is not also specified. When creating a new API Clients this + // member will only be used if the Retryer Options member is nil. This value will + // be ignored if Retryer is not nil. Currently does not support per operation call + // overrides, may in the future. + RetryMode aws.RetryMode + + // Retryer guides how HTTP requests should be retried in case of recoverable + // failures. When nil the API client will use a default retryer. The kind of + // default retry created by the API client can be changed with the RetryMode + // option. + Retryer aws.Retryer + + // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set + // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You + // should not populate this structure programmatically, or rely on the values here + // within your applications. + RuntimeEnvironment aws.RuntimeEnvironment + + // The initial DefaultsMode used when the client options were constructed. If the + // DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved + // value was at that point in time. Currently does not support per operation call + // overrides, may in the future. + resolvedDefaultsMode aws.DefaultsMode + + // The HTTP client to invoke API calls with. Defaults to client's default HTTP + // implementation if nil. + HTTPClient HTTPClient + + // The auth scheme resolver which determines how to authenticate for each + // operation. + AuthSchemeResolver AuthSchemeResolver + + // The list of auth schemes supported by the client. + AuthSchemes []smithyhttp.AuthScheme +} + +// Copy creates a clone where the APIOptions list is deep copied. +func (o Options) Copy() Options { + to := o + to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions)) + copy(to.APIOptions, o.APIOptions) + + return to +} + +func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver { + if schemeID == "aws.auth#sigv4" { + return getSigV4IdentityResolver(o) + } + if schemeID == "smithy.api#noAuth" { + return &smithyauth.AnonymousIdentityResolver{} + } + return nil +} + +// WithAPIOptions returns a functional option for setting the Client's APIOptions +// option. +func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { + return func(o *Options) { + o.APIOptions = append(o.APIOptions, optFns...) + } +} + +// Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for +// this field will likely prevent you from using any endpoint-related service +// features released after the introduction of EndpointResolverV2 and BaseEndpoint. +// To migrate an EndpointResolver implementation that uses a custom endpoint, set +// the client option BaseEndpoint instead. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + +// WithEndpointResolverV2 returns a functional option for setting the Client's +// EndpointResolverV2 option. +func WithEndpointResolverV2(v EndpointResolverV2) func(*Options) { + return func(o *Options) { + o.EndpointResolverV2 = v + } +} + +func getSigV4IdentityResolver(o Options) smithyauth.IdentityResolver { + if o.Credentials != nil { + return &internalauthsmithy.CredentialsProviderAdapter{Provider: o.Credentials} + } + return nil +} + +// WithSigV4SigningName applies an override to the authentication workflow to +// use the given signing name for SigV4-authenticated operations. +// +// This is an advanced setting. The value here is FINAL, taking precedence over +// the resolved signing name from both auth scheme resolution and endpoint +// resolution. +func WithSigV4SigningName(name string) func(*Options) { + fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, + ) { + return next.HandleInitialize(awsmiddleware.SetSigningName(ctx, name), in) + } + return func(o *Options) { + o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { + return s.Initialize.Add( + middleware.InitializeMiddlewareFunc("withSigV4SigningName", fn), + middleware.Before, + ) + }) + } +} + +// WithSigV4SigningRegion applies an override to the authentication workflow to +// use the given signing region for SigV4-authenticated operations. +// +// This is an advanced setting. The value here is FINAL, taking precedence over +// the resolved signing region from both auth scheme resolution and endpoint +// resolution. +func WithSigV4SigningRegion(region string) func(*Options) { + fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, + ) { + return next.HandleInitialize(awsmiddleware.SetSigningRegion(ctx, region), in) + } + return func(o *Options) { + o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error { + return s.Initialize.Add( + middleware.InitializeMiddlewareFunc("withSigV4SigningRegion", fn), + middleware.Before, + ) + }) + } +} + +func ignoreAnonymousAuth(options *Options) { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { + options.Credentials = nil + } +} diff --git a/service/marketplacedeployment/protocol_test.go b/service/marketplacedeployment/protocol_test.go new file mode 100644 index 00000000000..fa97a74cd7f --- /dev/null +++ b/service/marketplacedeployment/protocol_test.go @@ -0,0 +1,3 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment diff --git a/service/marketplacedeployment/serializers.go b/service/marketplacedeployment/serializers.go new file mode 100644 index 00000000000..0246ffc9af4 --- /dev/null +++ b/service/marketplacedeployment/serializers.go @@ -0,0 +1,402 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "bytes" + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/marketplacedeployment/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/encoding/httpbinding" + smithyjson "github.com/aws/smithy-go/encoding/json" + "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +type awsRestjson1_serializeOpListTagsForResource struct { +} + +func (*awsRestjson1_serializeOpListTagsForResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpListTagsForResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListTagsForResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "GET" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsListTagsForResourceInput(v *ListTagsForResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpPutDeploymentParameter struct { +} + +func (*awsRestjson1_serializeOpPutDeploymentParameter) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPutDeploymentParameter) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PutDeploymentParameterInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/catalogs/{catalog}/products/{productId}/deployment-parameters") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsPutDeploymentParameterInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentPutDeploymentParameterInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPutDeploymentParameterInput(v *PutDeploymentParameterInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.Catalog == nil || len(*v.Catalog) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member catalog must not be empty")} + } + if v.Catalog != nil { + if err := encoder.SetURI("catalog").String(*v.Catalog); err != nil { + return err + } + } + + if v.ProductId == nil || len(*v.ProductId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member productId must not be empty")} + } + if v.ProductId != nil { + if err := encoder.SetURI("productId").String(*v.ProductId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPutDeploymentParameterInput(v *PutDeploymentParameterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.AgreementId != nil { + ok := object.Key("agreementId") + ok.String(*v.AgreementId) + } + + if v.ClientToken != nil { + ok := object.Key("clientToken") + ok.String(*v.ClientToken) + } + + if v.DeploymentParameter != nil { + ok := object.Key("deploymentParameter") + if err := awsRestjson1_serializeDocumentDeploymentParameterInput(v.DeploymentParameter, ok); err != nil { + return err + } + } + + if v.ExpirationDate != nil { + ok := object.Key("expirationDate") + ok.String(smithytime.FormatDateTime(*v.ExpirationDate)) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTagsMap(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpTagResource struct { +} + +func (*awsRestjson1_serializeOpTagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpTagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*TagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "POST" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsTagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentTagResourceInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsTagResourceInput(v *TagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentTagResourceInput(v *TagResourceInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsRestjson1_serializeDocumentTags(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + +type awsRestjson1_serializeOpUntagResource struct { +} + +func (*awsRestjson1_serializeOpUntagResource) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpUntagResource) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UntagResourceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/tags/{resourceArn}") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "DELETE" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsUntagResourceInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsUntagResourceInput(v *UntagResourceInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.ResourceArn == nil || len(*v.ResourceArn) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member resourceArn must not be empty")} + } + if v.ResourceArn != nil { + if err := encoder.SetURI("resourceArn").String(*v.ResourceArn); err != nil { + return err + } + } + + if v.TagKeys != nil { + for i := range v.TagKeys { + encoder.AddQuery("tagKeys").String(v.TagKeys[i]) + } + } + + return nil +} + +func awsRestjson1_serializeDocumentDeploymentParameterInput(v *types.DeploymentParameterInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Name != nil { + ok := object.Key("name") + ok.String(*v.Name) + } + + if v.SecretString != nil { + ok := object.Key("secretString") + ok.String(*v.SecretString) + } + + return nil +} + +func awsRestjson1_serializeDocumentTags(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + +func awsRestjson1_serializeDocumentTagsMap(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} diff --git a/service/marketplacedeployment/types/errors.go b/service/marketplacedeployment/types/errors.go new file mode 100644 index 00000000000..a6a892d4b0b --- /dev/null +++ b/service/marketplacedeployment/types/errors.go @@ -0,0 +1,195 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + "fmt" + smithy "github.com/aws/smithy-go" +) + +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *AccessDeniedException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *AccessDeniedException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "AccessDeniedException" + } + return *e.ErrorCodeOverride +} +func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The request configuration has conflicts. For details, see the accompanying +// error message. +type ConflictException struct { + Message *string + + ErrorCodeOverride *string + + ResourceId *string + + noSmithyDocumentSerde +} + +func (e *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ConflictException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ConflictException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ConflictException" + } + return *e.ErrorCodeOverride +} +func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// There was an internal service exception. +type InternalServerException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *InternalServerException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *InternalServerException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "InternalServerException" + } + return *e.ErrorCodeOverride +} +func (e *InternalServerException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } + +// The specified resource wasn't found. +type ResourceNotFoundException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ResourceNotFoundException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ResourceNotFoundException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ResourceNotFoundException" + } + return *e.ErrorCodeOverride +} +func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// The maximum number of requests per account has been exceeded. +type ServiceQuotaExceededException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ServiceQuotaExceededException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ServiceQuotaExceededException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ServiceQuotaExceededException" + } + return *e.ErrorCodeOverride +} +func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// Too many requests. +type ThrottlingException struct { + Message *string + + ErrorCodeOverride *string + + noSmithyDocumentSerde +} + +func (e *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ThrottlingException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ThrottlingException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ThrottlingException" + } + return *e.ErrorCodeOverride +} +func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } + +// An error occurred during validation. +type ValidationException struct { + Message *string + + ErrorCodeOverride *string + + FieldName *string + + noSmithyDocumentSerde +} + +func (e *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) +} +func (e *ValidationException) ErrorMessage() string { + if e.Message == nil { + return "" + } + return *e.Message +} +func (e *ValidationException) ErrorCode() string { + if e == nil || e.ErrorCodeOverride == nil { + return "ValidationException" + } + return *e.ErrorCodeOverride +} +func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } diff --git a/service/marketplacedeployment/types/types.go b/service/marketplacedeployment/types/types.go new file mode 100644 index 00000000000..8678dced0ef --- /dev/null +++ b/service/marketplacedeployment/types/types.go @@ -0,0 +1,28 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithydocument "github.com/aws/smithy-go/document" +) + +// The shape containing the requested deployment parameter name and secretString. +type DeploymentParameterInput struct { + + // The desired name of the deployment parameter. This is the identifier on which + // deployment parameters are keyed for a given buyer and product. If this name + // matches an existing deployment parameter, this request will update the existing + // resource. + // + // This member is required. + Name *string + + // The text to encrypt and store in the secret. + // + // This member is required. + SecretString *string + + noSmithyDocumentSerde +} + +type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/service/marketplacedeployment/validators.go b/service/marketplacedeployment/validators.go new file mode 100644 index 00000000000..1b30b048685 --- /dev/null +++ b/service/marketplacedeployment/validators.go @@ -0,0 +1,201 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package marketplacedeployment + +import ( + "context" + "fmt" + "github.com/aws/aws-sdk-go-v2/service/marketplacedeployment/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +type validateOpListTagsForResource struct { +} + +func (*validateOpListTagsForResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ListTagsForResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpListTagsForResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpPutDeploymentParameter struct { +} + +func (*validateOpPutDeploymentParameter) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutDeploymentParameter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutDeploymentParameterInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutDeploymentParameterInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpTagResource struct { +} + +func (*validateOpTagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*TagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpTagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUntagResource struct { +} + +func (*validateOpUntagResource) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UntagResourceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUntagResourceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After) +} + +func addOpPutDeploymentParameterValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutDeploymentParameter{}, middleware.After) +} + +func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpTagResource{}, middleware.After) +} + +func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After) +} + +func validateDeploymentParameterInput(v *types.DeploymentParameterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeploymentParameterInput"} + if v.Name == nil { + invalidParams.Add(smithy.NewErrParamRequired("Name")) + } + if v.SecretString == nil { + invalidParams.Add(smithy.NewErrParamRequired("SecretString")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpPutDeploymentParameterInput(v *PutDeploymentParameterInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutDeploymentParameterInput"} + if v.Catalog == nil { + invalidParams.Add(smithy.NewErrParamRequired("Catalog")) + } + if v.ProductId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ProductId")) + } + if v.AgreementId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AgreementId")) + } + if v.DeploymentParameter == nil { + invalidParams.Add(smithy.NewErrParamRequired("DeploymentParameter")) + } else if v.DeploymentParameter != nil { + if err := validateDeploymentParameterInput(v.DeploymentParameter); err != nil { + invalidParams.AddNested("DeploymentParameter", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpTagResourceInput(v *TagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUntagResourceInput(v *UntagResourceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"} + if v.ResourceArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ResourceArn")) + } + if v.TagKeys == nil { + invalidParams.Add(smithy.NewErrParamRequired("TagKeys")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} diff --git a/service/marketplaceentitlementservice/CHANGELOG.md b/service/marketplaceentitlementservice/CHANGELOG.md index 33744c47449..8bb0bf2e288 100644 --- a/service/marketplaceentitlementservice/CHANGELOG.md +++ b/service/marketplaceentitlementservice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/marketplaceentitlementservice/api_client.go b/service/marketplaceentitlementservice/api_client.go index 87bf92e9dcc..acf0c467fd4 100644 --- a/service/marketplaceentitlementservice/api_client.go +++ b/service/marketplaceentitlementservice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/marketplaceentitlementservice/auth.go b/service/marketplaceentitlementservice/auth.go index 2d773eefe4a..700a6e2912b 100644 --- a/service/marketplaceentitlementservice/auth.go +++ b/service/marketplaceentitlementservice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/marketplaceentitlementservice/go.mod b/service/marketplaceentitlementservice/go.mod index f6dc89e01fa..96e44bbeb73 100644 --- a/service/marketplaceentitlementservice/go.mod +++ b/service/marketplaceentitlementservice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplaceentitlementservice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplaceentitlementservice/go.sum b/service/marketplaceentitlementservice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/marketplaceentitlementservice/go.sum +++ b/service/marketplaceentitlementservice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplaceentitlementservice/go_module_metadata.go b/service/marketplaceentitlementservice/go_module_metadata.go index ab562b0206c..e40b994af6f 100644 --- a/service/marketplaceentitlementservice/go_module_metadata.go +++ b/service/marketplaceentitlementservice/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplaceentitlementservice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/marketplaceentitlementservice/options.go b/service/marketplaceentitlementservice/options.go index 707872ef2c8..66bed9b8d99 100644 --- a/service/marketplaceentitlementservice/options.go +++ b/service/marketplaceentitlementservice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/marketplacemetering/CHANGELOG.md b/service/marketplacemetering/CHANGELOG.md index 39da801a9ce..4fde78531ca 100644 --- a/service/marketplacemetering/CHANGELOG.md +++ b/service/marketplacemetering/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/marketplacemetering/api_client.go b/service/marketplacemetering/api_client.go index 1c9db6d9e09..dfec2eee3d1 100644 --- a/service/marketplacemetering/api_client.go +++ b/service/marketplacemetering/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/marketplacemetering/auth.go b/service/marketplacemetering/auth.go index 89cce6f0151..b3c2014e00f 100644 --- a/service/marketplacemetering/auth.go +++ b/service/marketplacemetering/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/marketplacemetering/go.mod b/service/marketplacemetering/go.mod index fb791548e7d..ae5c9578b2d 100644 --- a/service/marketplacemetering/go.mod +++ b/service/marketplacemetering/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/marketplacemetering go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/marketplacemetering/go.sum b/service/marketplacemetering/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/marketplacemetering/go.sum +++ b/service/marketplacemetering/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/marketplacemetering/go_module_metadata.go b/service/marketplacemetering/go_module_metadata.go index d5a194754de..ca2aac7b6c9 100644 --- a/service/marketplacemetering/go_module_metadata.go +++ b/service/marketplacemetering/go_module_metadata.go @@ -3,4 +3,4 @@ package marketplacemetering // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/marketplacemetering/options.go b/service/marketplacemetering/options.go index 2d9127e3893..7793f1c2131 100644 --- a/service/marketplacemetering/options.go +++ b/service/marketplacemetering/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediaconnect/CHANGELOG.md b/service/mediaconnect/CHANGELOG.md index ec6c94b8ba2..4f0cb8ba977 100644 --- a/service/mediaconnect/CHANGELOG.md +++ b/service/mediaconnect/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediaconnect/api_client.go b/service/mediaconnect/api_client.go index d86e9761705..403074e0edf 100644 --- a/service/mediaconnect/api_client.go +++ b/service/mediaconnect/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediaconnect/auth.go b/service/mediaconnect/auth.go index d63dd820282..7603eac67fa 100644 --- a/service/mediaconnect/auth.go +++ b/service/mediaconnect/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediaconnect/go.mod b/service/mediaconnect/go.mod index 8b623153aa9..94418a888e4 100644 --- a/service/mediaconnect/go.mod +++ b/service/mediaconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconnect go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/mediaconnect/go.sum b/service/mediaconnect/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/mediaconnect/go.sum +++ b/service/mediaconnect/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/mediaconnect/go_module_metadata.go b/service/mediaconnect/go_module_metadata.go index 16b71440844..f9ca5dd3b88 100644 --- a/service/mediaconnect/go_module_metadata.go +++ b/service/mediaconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package mediaconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/mediaconnect/options.go b/service/mediaconnect/options.go index 651312bdc86..2c7fd89ebcc 100644 --- a/service/mediaconnect/options.go +++ b/service/mediaconnect/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediaconvert/CHANGELOG.md b/service/mediaconvert/CHANGELOG.md index 3ef07c21352..89534fe3ab2 100644 --- a/service/mediaconvert/CHANGELOG.md +++ b/service/mediaconvert/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.48.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.48.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.48.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediaconvert/api_client.go b/service/mediaconvert/api_client.go index 83e59133291..3fbcaa76d79 100644 --- a/service/mediaconvert/api_client.go +++ b/service/mediaconvert/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediaconvert/auth.go b/service/mediaconvert/auth.go index 34fb581a6d1..eeba6ab062f 100644 --- a/service/mediaconvert/auth.go +++ b/service/mediaconvert/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediaconvert/go.mod b/service/mediaconvert/go.mod index 8fd200699ae..68d5afbf23e 100644 --- a/service/mediaconvert/go.mod +++ b/service/mediaconvert/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediaconvert go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediaconvert/go.sum b/service/mediaconvert/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mediaconvert/go.sum +++ b/service/mediaconvert/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediaconvert/go_module_metadata.go b/service/mediaconvert/go_module_metadata.go index d9e40c22054..85abab2a329 100644 --- a/service/mediaconvert/go_module_metadata.go +++ b/service/mediaconvert/go_module_metadata.go @@ -3,4 +3,4 @@ package mediaconvert // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.48.0" +const goModuleVersion = "1.48.2" diff --git a/service/mediaconvert/options.go b/service/mediaconvert/options.go index 5a40ec72150..992224ebd72 100644 --- a/service/mediaconvert/options.go +++ b/service/mediaconvert/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/medialive/CHANGELOG.md b/service/medialive/CHANGELOG.md index ac754e9a412..36f68cbb9f1 100644 --- a/service/medialive/CHANGELOG.md +++ b/service/medialive/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.43.0 (2023-12-04) + +* **Feature**: Adds support for custom color correction on channels using 3D LUT files. + +# v1.42.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.42.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.42.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/medialive/api_client.go b/service/medialive/api_client.go index 5760061de53..30cdb9879a7 100644 --- a/service/medialive/api_client.go +++ b/service/medialive/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/medialive/auth.go b/service/medialive/auth.go index 3978acff7ca..8cde1810048 100644 --- a/service/medialive/auth.go +++ b/service/medialive/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/medialive/deserializers.go b/service/medialive/deserializers.go index 2d4b2492175..f1e865c6479 100644 --- a/service/medialive/deserializers.go +++ b/service/medialive/deserializers.go @@ -12421,6 +12421,40 @@ func awsRestjson1_deserializeDocument__listOfChannelSummary(v *[]types.ChannelSu return nil } +func awsRestjson1_deserializeDocument__listOfColorCorrection(v *[]types.ColorCorrection, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.ColorCorrection + if *v == nil { + cv = []types.ColorCorrection{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.ColorCorrection + destAddr := &col + if err := awsRestjson1_deserializeDocumentColorCorrection(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsRestjson1_deserializeDocument__listOfFailoverCondition(v *[]types.FailoverCondition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -16704,6 +16738,100 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va return nil } +func awsRestjson1_deserializeDocumentColorCorrection(v **types.ColorCorrection, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ColorCorrection + if *v == nil { + sv = &types.ColorCorrection{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "inputColorSpace": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColorSpace to be of type string, got %T instead", value) + } + sv.InputColorSpace = types.ColorSpace(jtv) + } + + case "outputColorSpace": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ColorSpace to be of type string, got %T instead", value) + } + sv.OutputColorSpace = types.ColorSpace(jtv) + } + + case "uri": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected __string to be of type string, got %T instead", value) + } + sv.Uri = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsRestjson1_deserializeDocumentColorCorrectionSettings(v **types.ColorCorrectionSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ColorCorrectionSettings + if *v == nil { + sv = &types.ColorCorrectionSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "globalColorCorrections": + if err := awsRestjson1_deserializeDocument__listOfColorCorrection(&sv.GlobalColorCorrections, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentColorSpacePassthroughSettings(v **types.ColorSpacePassthroughSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -18020,6 +18148,11 @@ func awsRestjson1_deserializeDocumentEncoderSettings(v **types.EncoderSettings, return err } + case "colorCorrectionSettings": + if err := awsRestjson1_deserializeDocumentColorCorrectionSettings(&sv.ColorCorrectionSettings, value); err != nil { + return err + } + case "featureActivations": if err := awsRestjson1_deserializeDocumentFeatureActivations(&sv.FeatureActivations, value); err != nil { return err diff --git a/service/medialive/go.mod b/service/medialive/go.mod index 83f9b52e31a..3db2e2a673a 100644 --- a/service/medialive/go.mod +++ b/service/medialive/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/medialive go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/medialive/go.sum b/service/medialive/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/medialive/go.sum +++ b/service/medialive/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/medialive/go_module_metadata.go b/service/medialive/go_module_metadata.go index 2b1919d134b..b2129d18856 100644 --- a/service/medialive/go_module_metadata.go +++ b/service/medialive/go_module_metadata.go @@ -3,4 +3,4 @@ package medialive // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.42.0" +const goModuleVersion = "1.43.0" diff --git a/service/medialive/options.go b/service/medialive/options.go index 191ad618488..bdf61d9fb59 100644 --- a/service/medialive/options.go +++ b/service/medialive/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/medialive/serializers.go b/service/medialive/serializers.go index 600d1613349..f74dc8702b4 100644 --- a/service/medialive/serializers.go +++ b/service/medialive/serializers.go @@ -5264,6 +5264,19 @@ func awsRestjson1_serializeDocument__listOfCaptionSelector(v []types.CaptionSele return nil } +func awsRestjson1_serializeDocument__listOfColorCorrection(v []types.ColorCorrection, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if err := awsRestjson1_serializeDocumentColorCorrection(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsRestjson1_serializeDocument__listOfFailoverCondition(v []types.FailoverCondition, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -6756,6 +6769,42 @@ func awsRestjson1_serializeDocumentCdiInputSpecification(v *types.CdiInputSpecif return nil } +func awsRestjson1_serializeDocumentColorCorrection(v *types.ColorCorrection, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.InputColorSpace) > 0 { + ok := object.Key("inputColorSpace") + ok.String(string(v.InputColorSpace)) + } + + if len(v.OutputColorSpace) > 0 { + ok := object.Key("outputColorSpace") + ok.String(string(v.OutputColorSpace)) + } + + if v.Uri != nil { + ok := object.Key("uri") + ok.String(*v.Uri) + } + + return nil +} + +func awsRestjson1_serializeDocumentColorCorrectionSettings(v *types.ColorCorrectionSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.GlobalColorCorrections != nil { + ok := object.Key("globalColorCorrections") + if err := awsRestjson1_serializeDocument__listOfColorCorrection(v.GlobalColorCorrections, ok); err != nil { + return err + } + } + + return nil +} + func awsRestjson1_serializeDocumentColorSpacePassthroughSettings(v *types.ColorSpacePassthroughSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -7302,6 +7351,13 @@ func awsRestjson1_serializeDocumentEncoderSettings(v *types.EncoderSettings, val } } + if v.ColorCorrectionSettings != nil { + ok := object.Key("colorCorrectionSettings") + if err := awsRestjson1_serializeDocumentColorCorrectionSettings(v.ColorCorrectionSettings, ok); err != nil { + return err + } + } + if v.FeatureActivations != nil { ok := object.Key("featureActivations") if err := awsRestjson1_serializeDocumentFeatureActivations(v.FeatureActivations, ok); err != nil { diff --git a/service/medialive/types/enums.go b/service/medialive/types/enums.go index 825c196728f..59d1b5011c5 100644 --- a/service/medialive/types/enums.go +++ b/service/medialive/types/enums.go @@ -751,6 +751,28 @@ func (ChannelState) Values() []ChannelState { } } +type ColorSpace string + +// Enum values for ColorSpace +const ( + ColorSpaceHdr10 ColorSpace = "HDR10" + ColorSpaceHlg2020 ColorSpace = "HLG_2020" + ColorSpaceRec601 ColorSpace = "REC_601" + ColorSpaceRec709 ColorSpace = "REC_709" +) + +// Values returns all known values for ColorSpace. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (ColorSpace) Values() []ColorSpace { + return []ColorSpace{ + "HDR10", + "HLG_2020", + "REC_601", + "REC_709", + } +} + type ContentType string // Enum values for ContentType diff --git a/service/medialive/types/types.go b/service/medialive/types/types.go index 7f21e670583..2b0d4c47ae8 100644 --- a/service/medialive/types/types.go +++ b/service/medialive/types/types.go @@ -1109,6 +1109,47 @@ type ChannelSummary struct { noSmithyDocumentSerde } +// Property of ColorCorrectionSettings. Used for custom color space conversion. +// The object identifies one 3D LUT file and specifies the input/output color space +// combination that the file will be used for. +type ColorCorrection struct { + + // The color space of the input. + // + // This member is required. + InputColorSpace ColorSpace + + // The color space of the output. + // + // This member is required. + OutputColorSpace ColorSpace + + // The URI of the 3D LUT file. The protocol must be 's3:' or 's3ssl:':. + // + // This member is required. + Uri *string + + noSmithyDocumentSerde +} + +// Property of encoderSettings. Controls color conversion when you are using 3D +// LUT files to perform color conversion on video. +type ColorCorrectionSettings struct { + + // An array of colorCorrections that applies when you are using 3D LUT files to + // perform color conversion on video. Each colorCorrection contains one 3D LUT file + // (that defines the color mapping for converting an input color space to an output + // color space), and the input/output combination that this 3D LUT file applies to. + // MediaLive reads the color space in the input metadata, determines the color + // space that you have specified for the output, and finds and uses the LUT file + // that applies to this combination. + // + // This member is required. + GlobalColorCorrections []ColorCorrection + + noSmithyDocumentSerde +} + // Passthrough applies no color space conversion to the output type ColorSpacePassthroughSettings struct { noSmithyDocumentSerde @@ -1519,6 +1560,9 @@ type EncoderSettings struct { // Settings for caption decriptions CaptionDescriptions []CaptionDescription + // Color correction settings + ColorCorrectionSettings *ColorCorrectionSettings + // Feature Activations FeatureActivations *FeatureActivations diff --git a/service/medialive/validators.go b/service/medialive/validators.go index f88269b8b4c..310e394891b 100644 --- a/service/medialive/validators.go +++ b/service/medialive/validators.go @@ -1329,6 +1329,23 @@ func validate__listOfCaptionSelector(v []types.CaptionSelector) error { } } +func validate__listOfColorCorrection(v []types.ColorCorrection) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ListOfColorCorrection"} + for i := range v { + if err := validateColorCorrection(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validate__listOfFailoverCondition(v []types.FailoverCondition) error { if v == nil { return nil @@ -2057,6 +2074,46 @@ func validateCaptionSelectorSettings(v *types.CaptionSelectorSettings) error { } } +func validateColorCorrection(v *types.ColorCorrection) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ColorCorrection"} + if len(v.InputColorSpace) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InputColorSpace")) + } + if len(v.OutputColorSpace) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("OutputColorSpace")) + } + if v.Uri == nil { + invalidParams.Add(smithy.NewErrParamRequired("Uri")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateColorCorrectionSettings(v *types.ColorCorrectionSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ColorCorrectionSettings"} + if v.GlobalColorCorrections == nil { + invalidParams.Add(smithy.NewErrParamRequired("GlobalColorCorrections")) + } else if v.GlobalColorCorrections != nil { + if err := validate__listOfColorCorrection(v.GlobalColorCorrections); err != nil { + invalidParams.AddNested("GlobalColorCorrections", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDvbNitSettings(v *types.DvbNitSettings) error { if v == nil { return nil @@ -2124,6 +2181,11 @@ func validateEncoderSettings(v *types.EncoderSettings) error { invalidParams.AddNested("CaptionDescriptions", err.(smithy.InvalidParamsError)) } } + if v.ColorCorrectionSettings != nil { + if err := validateColorCorrectionSettings(v.ColorCorrectionSettings); err != nil { + invalidParams.AddNested("ColorCorrectionSettings", err.(smithy.InvalidParamsError)) + } + } if v.GlobalConfiguration != nil { if err := validateGlobalConfiguration(v.GlobalConfiguration); err != nil { invalidParams.AddNested("GlobalConfiguration", err.(smithy.InvalidParamsError)) diff --git a/service/mediapackage/CHANGELOG.md b/service/mediapackage/CHANGELOG.md index 3e2112a78f6..e37b3f765e0 100644 --- a/service/mediapackage/CHANGELOG.md +++ b/service/mediapackage/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediapackage/api_client.go b/service/mediapackage/api_client.go index 910f3bd842b..6ddb5e541db 100644 --- a/service/mediapackage/api_client.go +++ b/service/mediapackage/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediapackage/auth.go b/service/mediapackage/auth.go index ed04a9f11aa..235d987ea87 100644 --- a/service/mediapackage/auth.go +++ b/service/mediapackage/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediapackage/go.mod b/service/mediapackage/go.mod index c381e7ea115..419958da8da 100644 --- a/service/mediapackage/go.mod +++ b/service/mediapackage/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackage go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackage/go.sum b/service/mediapackage/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mediapackage/go.sum +++ b/service/mediapackage/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackage/go_module_metadata.go b/service/mediapackage/go_module_metadata.go index 559ed65a236..dafcb97e50b 100644 --- a/service/mediapackage/go_module_metadata.go +++ b/service/mediapackage/go_module_metadata.go @@ -3,4 +3,4 @@ package mediapackage // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/mediapackage/options.go b/service/mediapackage/options.go index 57af07cde94..455a87dfad8 100644 --- a/service/mediapackage/options.go +++ b/service/mediapackage/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediapackagev2/CHANGELOG.md b/service/mediapackagev2/CHANGELOG.md index 7802cffdfae..24c62afb62f 100644 --- a/service/mediapackagev2/CHANGELOG.md +++ b/service/mediapackagev2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediapackagev2/api_client.go b/service/mediapackagev2/api_client.go index 3ede833347a..19fbfafb5d3 100644 --- a/service/mediapackagev2/api_client.go +++ b/service/mediapackagev2/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediapackagev2/auth.go b/service/mediapackagev2/auth.go index c6545dcbfe1..1ecf7f507d1 100644 --- a/service/mediapackagev2/auth.go +++ b/service/mediapackagev2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediapackagev2/go.mod b/service/mediapackagev2/go.mod index 26412d22a82..b5c9e9646e9 100644 --- a/service/mediapackagev2/go.mod +++ b/service/mediapackagev2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackagev2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackagev2/go.sum b/service/mediapackagev2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mediapackagev2/go.sum +++ b/service/mediapackagev2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagev2/go_module_metadata.go b/service/mediapackagev2/go_module_metadata.go index 7be6147109d..b7a4daec7a3 100644 --- a/service/mediapackagev2/go_module_metadata.go +++ b/service/mediapackagev2/go_module_metadata.go @@ -3,4 +3,4 @@ package mediapackagev2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/mediapackagev2/options.go b/service/mediapackagev2/options.go index ddfd9002eac..7f2aa7d0814 100644 --- a/service/mediapackagev2/options.go +++ b/service/mediapackagev2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediapackagevod/CHANGELOG.md b/service/mediapackagevod/CHANGELOG.md index ba9ac80c146..318913ab488 100644 --- a/service/mediapackagevod/CHANGELOG.md +++ b/service/mediapackagevod/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediapackagevod/api_client.go b/service/mediapackagevod/api_client.go index e0487067fb6..9596737b950 100644 --- a/service/mediapackagevod/api_client.go +++ b/service/mediapackagevod/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediapackagevod/auth.go b/service/mediapackagevod/auth.go index a27e14a464d..2781b59eee3 100644 --- a/service/mediapackagevod/auth.go +++ b/service/mediapackagevod/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediapackagevod/go.mod b/service/mediapackagevod/go.mod index eeac280c77b..d6ee560305c 100644 --- a/service/mediapackagevod/go.mod +++ b/service/mediapackagevod/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediapackagevod go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediapackagevod/go.sum b/service/mediapackagevod/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mediapackagevod/go.sum +++ b/service/mediapackagevod/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediapackagevod/go_module_metadata.go b/service/mediapackagevod/go_module_metadata.go index ef84c47831a..1cb1af56cd8 100644 --- a/service/mediapackagevod/go_module_metadata.go +++ b/service/mediapackagevod/go_module_metadata.go @@ -3,4 +3,4 @@ package mediapackagevod // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/mediapackagevod/options.go b/service/mediapackagevod/options.go index a40cda08b36..87c6e1655e6 100644 --- a/service/mediapackagevod/options.go +++ b/service/mediapackagevod/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediastore/CHANGELOG.md b/service/mediastore/CHANGELOG.md index fead3cda8f0..85809082dce 100644 --- a/service/mediastore/CHANGELOG.md +++ b/service/mediastore/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediastore/api_client.go b/service/mediastore/api_client.go index 4ea12e71d9e..0276f59d9e7 100644 --- a/service/mediastore/api_client.go +++ b/service/mediastore/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediastore/auth.go b/service/mediastore/auth.go index 6f4f6022f79..5f875e0c7a1 100644 --- a/service/mediastore/auth.go +++ b/service/mediastore/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediastore/go.mod b/service/mediastore/go.mod index 586fda652d8..e607b1620b5 100644 --- a/service/mediastore/go.mod +++ b/service/mediastore/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediastore go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediastore/go.sum b/service/mediastore/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mediastore/go.sum +++ b/service/mediastore/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastore/go_module_metadata.go b/service/mediastore/go_module_metadata.go index 0e3ac7a6eae..a810cdd6386 100644 --- a/service/mediastore/go_module_metadata.go +++ b/service/mediastore/go_module_metadata.go @@ -3,4 +3,4 @@ package mediastore // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/mediastore/options.go b/service/mediastore/options.go index 59d7687fea9..5732e4a2c9c 100644 --- a/service/mediastore/options.go +++ b/service/mediastore/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediastoredata/CHANGELOG.md b/service/mediastoredata/CHANGELOG.md index 11d94e64a70..5b9d595fd82 100644 --- a/service/mediastoredata/CHANGELOG.md +++ b/service/mediastoredata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediastoredata/api_client.go b/service/mediastoredata/api_client.go index f2dbef9b60e..8e9ddb939de 100644 --- a/service/mediastoredata/api_client.go +++ b/service/mediastoredata/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediastoredata/auth.go b/service/mediastoredata/auth.go index 222b990c9a0..e94992cd400 100644 --- a/service/mediastoredata/auth.go +++ b/service/mediastoredata/auth.go @@ -135,7 +135,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -215,7 +215,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -264,7 +264,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediastoredata/go.mod b/service/mediastoredata/go.mod index e1a26e306d6..6b147879ddc 100644 --- a/service/mediastoredata/go.mod +++ b/service/mediastoredata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediastoredata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediastoredata/go.sum b/service/mediastoredata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mediastoredata/go.sum +++ b/service/mediastoredata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediastoredata/go_module_metadata.go b/service/mediastoredata/go_module_metadata.go index ea075f75f4d..d01c86384fa 100644 --- a/service/mediastoredata/go_module_metadata.go +++ b/service/mediastoredata/go_module_metadata.go @@ -3,4 +3,4 @@ package mediastoredata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/mediastoredata/options.go b/service/mediastoredata/options.go index 37bf82715dd..c016b8ff710 100644 --- a/service/mediastoredata/options.go +++ b/service/mediastoredata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mediatailor/CHANGELOG.md b/service/mediatailor/CHANGELOG.md index 51d567b0306..9fbc8469dc8 100644 --- a/service/mediatailor/CHANGELOG.md +++ b/service/mediatailor/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.32.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.32.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.32.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mediatailor/api_client.go b/service/mediatailor/api_client.go index b135d10fcb4..b6e704597c4 100644 --- a/service/mediatailor/api_client.go +++ b/service/mediatailor/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mediatailor/auth.go b/service/mediatailor/auth.go index 1034a45de30..71cb057650d 100644 --- a/service/mediatailor/auth.go +++ b/service/mediatailor/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mediatailor/go.mod b/service/mediatailor/go.mod index 57dbb450725..eeb3bd813b6 100644 --- a/service/mediatailor/go.mod +++ b/service/mediatailor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mediatailor go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mediatailor/go.sum b/service/mediatailor/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mediatailor/go.sum +++ b/service/mediatailor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mediatailor/go_module_metadata.go b/service/mediatailor/go_module_metadata.go index 43ea6f10702..ba39241193d 100644 --- a/service/mediatailor/go_module_metadata.go +++ b/service/mediatailor/go_module_metadata.go @@ -3,4 +3,4 @@ package mediatailor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.32.0" +const goModuleVersion = "1.32.2" diff --git a/service/mediatailor/options.go b/service/mediatailor/options.go index 5cf914ce598..ca9c1618c28 100644 --- a/service/mediatailor/options.go +++ b/service/mediatailor/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/medicalimaging/CHANGELOG.md b/service/medicalimaging/CHANGELOG.md index bdeb3cfa938..99ad231de34 100644 --- a/service/medicalimaging/CHANGELOG.md +++ b/service/medicalimaging/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/medicalimaging/api_client.go b/service/medicalimaging/api_client.go index e92f323d12c..4c04584e1b5 100644 --- a/service/medicalimaging/api_client.go +++ b/service/medicalimaging/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/medicalimaging/auth.go b/service/medicalimaging/auth.go index a7df69670c2..9f980ebcd2d 100644 --- a/service/medicalimaging/auth.go +++ b/service/medicalimaging/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/medicalimaging/go.mod b/service/medicalimaging/go.mod index a59470ee1ba..0f1f0807cf3 100644 --- a/service/medicalimaging/go.mod +++ b/service/medicalimaging/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/medicalimaging go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/medicalimaging/go.sum b/service/medicalimaging/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/medicalimaging/go.sum +++ b/service/medicalimaging/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/medicalimaging/go_module_metadata.go b/service/medicalimaging/go_module_metadata.go index 44d45dc5475..25984ff8da0 100644 --- a/service/medicalimaging/go_module_metadata.go +++ b/service/medicalimaging/go_module_metadata.go @@ -3,4 +3,4 @@ package medicalimaging // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/medicalimaging/options.go b/service/medicalimaging/options.go index 1e57adf3159..d76f87724e4 100644 --- a/service/medicalimaging/options.go +++ b/service/medicalimaging/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/memorydb/CHANGELOG.md b/service/memorydb/CHANGELOG.md index 98e3f7fbf4a..26f18e1fc8b 100644 --- a/service/memorydb/CHANGELOG.md +++ b/service/memorydb/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/memorydb/api_client.go b/service/memorydb/api_client.go index 129d2db4c7b..a14c464fe3b 100644 --- a/service/memorydb/api_client.go +++ b/service/memorydb/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/memorydb/auth.go b/service/memorydb/auth.go index 751bb25d166..554f3dd3a52 100644 --- a/service/memorydb/auth.go +++ b/service/memorydb/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/memorydb/go.mod b/service/memorydb/go.mod index c5cf412c87f..833211372a9 100644 --- a/service/memorydb/go.mod +++ b/service/memorydb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/memorydb go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/memorydb/go.sum b/service/memorydb/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/memorydb/go.sum +++ b/service/memorydb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/memorydb/go_module_metadata.go b/service/memorydb/go_module_metadata.go index 28fe944e05b..bfb6bf76844 100644 --- a/service/memorydb/go_module_metadata.go +++ b/service/memorydb/go_module_metadata.go @@ -3,4 +3,4 @@ package memorydb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/memorydb/options.go b/service/memorydb/options.go index 1012e9e5156..a70680960cc 100644 --- a/service/memorydb/options.go +++ b/service/memorydb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mgn/CHANGELOG.md b/service/mgn/CHANGELOG.md index 40c1f6bedc9..67882574fa2 100644 --- a/service/mgn/CHANGELOG.md +++ b/service/mgn/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mgn/api_client.go b/service/mgn/api_client.go index 1b80905d966..e0b701907d7 100644 --- a/service/mgn/api_client.go +++ b/service/mgn/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mgn/auth.go b/service/mgn/auth.go index 2501a2f2f12..da41a054cab 100644 --- a/service/mgn/auth.go +++ b/service/mgn/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mgn/go.mod b/service/mgn/go.mod index e1232d13684..fc738885034 100644 --- a/service/mgn/go.mod +++ b/service/mgn/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mgn go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mgn/go.sum b/service/mgn/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mgn/go.sum +++ b/service/mgn/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mgn/go_module_metadata.go b/service/mgn/go_module_metadata.go index 1711aaaf9a2..24ed8dd56f9 100644 --- a/service/mgn/go_module_metadata.go +++ b/service/mgn/go_module_metadata.go @@ -3,4 +3,4 @@ package mgn // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/mgn/options.go b/service/mgn/options.go index 6dc1745a125..693fa0a4cd8 100644 --- a/service/mgn/options.go +++ b/service/mgn/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhub/CHANGELOG.md b/service/migrationhub/CHANGELOG.md index fead3cda8f0..85809082dce 100644 --- a/service/migrationhub/CHANGELOG.md +++ b/service/migrationhub/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/migrationhub/api_client.go b/service/migrationhub/api_client.go index a711adcb9c8..0cfb6fa63c0 100644 --- a/service/migrationhub/api_client.go +++ b/service/migrationhub/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/migrationhub/auth.go b/service/migrationhub/auth.go index 124ab35f49e..cf2c097ff41 100644 --- a/service/migrationhub/auth.go +++ b/service/migrationhub/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/migrationhub/go.mod b/service/migrationhub/go.mod index 560808b7466..978f275cca7 100644 --- a/service/migrationhub/go.mod +++ b/service/migrationhub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhub go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhub/go.sum b/service/migrationhub/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/migrationhub/go.sum +++ b/service/migrationhub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhub/go_module_metadata.go b/service/migrationhub/go_module_metadata.go index 944282fb2a9..4d093de90bc 100644 --- a/service/migrationhub/go_module_metadata.go +++ b/service/migrationhub/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/migrationhub/options.go b/service/migrationhub/options.go index de16a95eea0..094ad6e146f 100644 --- a/service/migrationhub/options.go +++ b/service/migrationhub/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhubconfig/CHANGELOG.md b/service/migrationhubconfig/CHANGELOG.md index fee87390a80..a6a6a24fc1f 100644 --- a/service/migrationhubconfig/CHANGELOG.md +++ b/service/migrationhubconfig/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/migrationhubconfig/api_client.go b/service/migrationhubconfig/api_client.go index c5d82aa0403..c3baa3a15e0 100644 --- a/service/migrationhubconfig/api_client.go +++ b/service/migrationhubconfig/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/migrationhubconfig/auth.go b/service/migrationhubconfig/auth.go index 56f60049b96..7b0f6a61cd1 100644 --- a/service/migrationhubconfig/auth.go +++ b/service/migrationhubconfig/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/migrationhubconfig/go.mod b/service/migrationhubconfig/go.mod index 4dad0365609..dfb7afdd69a 100644 --- a/service/migrationhubconfig/go.mod +++ b/service/migrationhubconfig/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubconfig go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubconfig/go.sum b/service/migrationhubconfig/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/migrationhubconfig/go.sum +++ b/service/migrationhubconfig/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubconfig/go_module_metadata.go b/service/migrationhubconfig/go_module_metadata.go index 607529b4843..eeec72e8309 100644 --- a/service/migrationhubconfig/go_module_metadata.go +++ b/service/migrationhubconfig/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhubconfig // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/migrationhubconfig/options.go b/service/migrationhubconfig/options.go index 9aa15662a9b..434f09c868b 100644 --- a/service/migrationhubconfig/options.go +++ b/service/migrationhubconfig/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhuborchestrator/CHANGELOG.md b/service/migrationhuborchestrator/CHANGELOG.md index d0458c86b6b..40ebe2a9bcd 100644 --- a/service/migrationhuborchestrator/CHANGELOG.md +++ b/service/migrationhuborchestrator/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/migrationhuborchestrator/api_client.go b/service/migrationhuborchestrator/api_client.go index 61cf7c37e16..e77d65e7988 100644 --- a/service/migrationhuborchestrator/api_client.go +++ b/service/migrationhuborchestrator/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/migrationhuborchestrator/auth.go b/service/migrationhuborchestrator/auth.go index 0a435f413d9..effeb59dbdf 100644 --- a/service/migrationhuborchestrator/auth.go +++ b/service/migrationhuborchestrator/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/migrationhuborchestrator/go.mod b/service/migrationhuborchestrator/go.mod index 257cae52eb8..383a0b21bc1 100644 --- a/service/migrationhuborchestrator/go.mod +++ b/service/migrationhuborchestrator/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhuborchestrator go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhuborchestrator/go.sum b/service/migrationhuborchestrator/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/migrationhuborchestrator/go.sum +++ b/service/migrationhuborchestrator/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhuborchestrator/go_module_metadata.go b/service/migrationhuborchestrator/go_module_metadata.go index 4a9b2b15ce3..860345b26da 100644 --- a/service/migrationhuborchestrator/go_module_metadata.go +++ b/service/migrationhuborchestrator/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhuborchestrator // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/migrationhuborchestrator/options.go b/service/migrationhuborchestrator/options.go index eb92a17c001..dc7275d42c3 100644 --- a/service/migrationhuborchestrator/options.go +++ b/service/migrationhuborchestrator/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhubrefactorspaces/CHANGELOG.md b/service/migrationhubrefactorspaces/CHANGELOG.md index 8dcd47e1caa..8951189dada 100644 --- a/service/migrationhubrefactorspaces/CHANGELOG.md +++ b/service/migrationhubrefactorspaces/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.14.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.14.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/migrationhubrefactorspaces/api_client.go b/service/migrationhubrefactorspaces/api_client.go index 23b110772bd..9850c79fee7 100644 --- a/service/migrationhubrefactorspaces/api_client.go +++ b/service/migrationhubrefactorspaces/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/migrationhubrefactorspaces/auth.go b/service/migrationhubrefactorspaces/auth.go index 8f19f48622a..2b44bd04794 100644 --- a/service/migrationhubrefactorspaces/auth.go +++ b/service/migrationhubrefactorspaces/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/migrationhubrefactorspaces/go.mod b/service/migrationhubrefactorspaces/go.mod index e675235df23..9cabddc0082 100644 --- a/service/migrationhubrefactorspaces/go.mod +++ b/service/migrationhubrefactorspaces/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubrefactorspaces go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubrefactorspaces/go.sum b/service/migrationhubrefactorspaces/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/migrationhubrefactorspaces/go.sum +++ b/service/migrationhubrefactorspaces/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubrefactorspaces/go_module_metadata.go b/service/migrationhubrefactorspaces/go_module_metadata.go index 563f4608138..c29391d1af7 100644 --- a/service/migrationhubrefactorspaces/go_module_metadata.go +++ b/service/migrationhubrefactorspaces/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhubrefactorspaces // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.14.2" diff --git a/service/migrationhubrefactorspaces/options.go b/service/migrationhubrefactorspaces/options.go index 933cc55803c..586aac02845 100644 --- a/service/migrationhubrefactorspaces/options.go +++ b/service/migrationhubrefactorspaces/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/migrationhubstrategy/CHANGELOG.md b/service/migrationhubstrategy/CHANGELOG.md index 443a26be7f7..057a1a3f78e 100644 --- a/service/migrationhubstrategy/CHANGELOG.md +++ b/service/migrationhubstrategy/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.15.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/migrationhubstrategy/api_client.go b/service/migrationhubstrategy/api_client.go index d949acd669e..62d1ce68c89 100644 --- a/service/migrationhubstrategy/api_client.go +++ b/service/migrationhubstrategy/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/migrationhubstrategy/auth.go b/service/migrationhubstrategy/auth.go index 90130eaa397..74bce681d74 100644 --- a/service/migrationhubstrategy/auth.go +++ b/service/migrationhubstrategy/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/migrationhubstrategy/go.mod b/service/migrationhubstrategy/go.mod index 8755a64b4ce..0a3136785a6 100644 --- a/service/migrationhubstrategy/go.mod +++ b/service/migrationhubstrategy/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/migrationhubstrategy go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/migrationhubstrategy/go.sum b/service/migrationhubstrategy/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/migrationhubstrategy/go.sum +++ b/service/migrationhubstrategy/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/migrationhubstrategy/go_module_metadata.go b/service/migrationhubstrategy/go_module_metadata.go index e8125096249..8a5a0249d8a 100644 --- a/service/migrationhubstrategy/go_module_metadata.go +++ b/service/migrationhubstrategy/go_module_metadata.go @@ -3,4 +3,4 @@ package migrationhubstrategy // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.0" +const goModuleVersion = "1.15.2" diff --git a/service/migrationhubstrategy/options.go b/service/migrationhubstrategy/options.go index 58b93600d82..7030a6ebcc2 100644 --- a/service/migrationhubstrategy/options.go +++ b/service/migrationhubstrategy/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mobile/CHANGELOG.md b/service/mobile/CHANGELOG.md index 36a81e384ee..21ff286546b 100644 --- a/service/mobile/CHANGELOG.md +++ b/service/mobile/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mobile/api_client.go b/service/mobile/api_client.go index 065e24b556b..b6059eaba9f 100644 --- a/service/mobile/api_client.go +++ b/service/mobile/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mobile/auth.go b/service/mobile/auth.go index efa5170607f..ef71bb5e262 100644 --- a/service/mobile/auth.go +++ b/service/mobile/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mobile/go.mod b/service/mobile/go.mod index 2d379643c1a..8c032e636e7 100644 --- a/service/mobile/go.mod +++ b/service/mobile/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mobile go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mobile/go.sum b/service/mobile/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mobile/go.sum +++ b/service/mobile/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mobile/go_module_metadata.go b/service/mobile/go_module_metadata.go index ff83eb378cb..a2613fa936a 100644 --- a/service/mobile/go_module_metadata.go +++ b/service/mobile/go_module_metadata.go @@ -3,4 +3,4 @@ package mobile // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/mobile/options.go b/service/mobile/options.go index c48b38edb91..bda4edd6aa8 100644 --- a/service/mobile/options.go +++ b/service/mobile/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mq/CHANGELOG.md b/service/mq/CHANGELOG.md index 95def584621..8dbc1b88f74 100644 --- a/service/mq/CHANGELOG.md +++ b/service/mq/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mq/api_client.go b/service/mq/api_client.go index a6c451ef84a..c89023e92e9 100644 --- a/service/mq/api_client.go +++ b/service/mq/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mq/auth.go b/service/mq/auth.go index 70c48c1bb21..8197c62bfbd 100644 --- a/service/mq/auth.go +++ b/service/mq/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mq/go.mod b/service/mq/go.mod index 2851639eae6..2d5c32b9ec5 100644 --- a/service/mq/go.mod +++ b/service/mq/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mq go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mq/go.sum b/service/mq/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mq/go.sum +++ b/service/mq/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mq/go_module_metadata.go b/service/mq/go_module_metadata.go index fcce7e0576d..846df6b4c81 100644 --- a/service/mq/go_module_metadata.go +++ b/service/mq/go_module_metadata.go @@ -3,4 +3,4 @@ package mq // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/mq/options.go b/service/mq/options.go index fb9f50d1df5..ec4d26257d5 100644 --- a/service/mq/options.go +++ b/service/mq/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mturk/CHANGELOG.md b/service/mturk/CHANGELOG.md index 3818e1862d4..f175c03344e 100644 --- a/service/mturk/CHANGELOG.md +++ b/service/mturk/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mturk/api_client.go b/service/mturk/api_client.go index f5b3db7933e..64bcadf3871 100644 --- a/service/mturk/api_client.go +++ b/service/mturk/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mturk/auth.go b/service/mturk/auth.go index 359ff6d5ae3..f466f09403d 100644 --- a/service/mturk/auth.go +++ b/service/mturk/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mturk/go.mod b/service/mturk/go.mod index fef6037ff86..cf34a7e33a8 100644 --- a/service/mturk/go.mod +++ b/service/mturk/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mturk go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mturk/go.sum b/service/mturk/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mturk/go.sum +++ b/service/mturk/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mturk/go_module_metadata.go b/service/mturk/go_module_metadata.go index b9a3424adca..6d32a715b25 100644 --- a/service/mturk/go_module_metadata.go +++ b/service/mturk/go_module_metadata.go @@ -3,4 +3,4 @@ package mturk // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/mturk/options.go b/service/mturk/options.go index be67756bf74..f5bc27043c9 100644 --- a/service/mturk/options.go +++ b/service/mturk/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/mwaa/CHANGELOG.md b/service/mwaa/CHANGELOG.md index bb052095643..cdd1dcc77e4 100644 --- a/service/mwaa/CHANGELOG.md +++ b/service/mwaa/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/mwaa/api_client.go b/service/mwaa/api_client.go index 6bdcedd2f02..0febd0674e3 100644 --- a/service/mwaa/api_client.go +++ b/service/mwaa/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/mwaa/auth.go b/service/mwaa/auth.go index 7bd3756bf8f..718d1aed129 100644 --- a/service/mwaa/auth.go +++ b/service/mwaa/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/mwaa/go.mod b/service/mwaa/go.mod index ef5697fd625..5297427bee7 100644 --- a/service/mwaa/go.mod +++ b/service/mwaa/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/mwaa go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/mwaa/go.sum b/service/mwaa/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/mwaa/go.sum +++ b/service/mwaa/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/mwaa/go_module_metadata.go b/service/mwaa/go_module_metadata.go index 9f5afee7c24..109bfe5f96d 100644 --- a/service/mwaa/go_module_metadata.go +++ b/service/mwaa/go_module_metadata.go @@ -3,4 +3,4 @@ package mwaa // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/mwaa/options.go b/service/mwaa/options.go index 94e70fc9c5a..83a977cb721 100644 --- a/service/mwaa/options.go +++ b/service/mwaa/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/neptune/CHANGELOG.md b/service/neptune/CHANGELOG.md index 090435c41c8..aceedfd1969 100644 --- a/service/neptune/CHANGELOG.md +++ b/service/neptune/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.27.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/neptune/api_client.go b/service/neptune/api_client.go index 5047af99b7e..25177e08c70 100644 --- a/service/neptune/api_client.go +++ b/service/neptune/api_client.go @@ -142,7 +142,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -151,7 +151,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/neptune/auth.go b/service/neptune/auth.go index 4e5e8cd24aa..a3c48ba1389 100644 --- a/service/neptune/auth.go +++ b/service/neptune/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/neptune/go.mod b/service/neptune/go.mod index d4699eb8bf4..fc4c571fbe8 100644 --- a/service/neptune/go.mod +++ b/service/neptune/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/neptune go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/neptune/go.sum b/service/neptune/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/neptune/go.sum +++ b/service/neptune/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/neptune/go_module_metadata.go b/service/neptune/go_module_metadata.go index 7387f876a04..480c31f9b47 100644 --- a/service/neptune/go_module_metadata.go +++ b/service/neptune/go_module_metadata.go @@ -3,4 +3,4 @@ package neptune // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.2" diff --git a/service/neptune/options.go b/service/neptune/options.go index 3b0312fdbf9..67458766bcf 100644 --- a/service/neptune/options.go +++ b/service/neptune/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/neptunedata/CHANGELOG.md b/service/neptunedata/CHANGELOG.md index fbd66628411..5874d233169 100644 --- a/service/neptunedata/CHANGELOG.md +++ b/service/neptunedata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.3.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.3.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.3.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/neptunedata/api_client.go b/service/neptunedata/api_client.go index 2f7f851db9c..da0cf1b4526 100644 --- a/service/neptunedata/api_client.go +++ b/service/neptunedata/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/neptunedata/auth.go b/service/neptunedata/auth.go index c658d875f31..cedbfab6ed7 100644 --- a/service/neptunedata/auth.go +++ b/service/neptunedata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/neptunedata/go.mod b/service/neptunedata/go.mod index 4c47d876c5f..0e74ed07521 100644 --- a/service/neptunedata/go.mod +++ b/service/neptunedata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/neptunedata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/neptunedata/go.sum b/service/neptunedata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/neptunedata/go.sum +++ b/service/neptunedata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/neptunedata/go_module_metadata.go b/service/neptunedata/go_module_metadata.go index 87a89d6c67e..5fdfdeb5b5d 100644 --- a/service/neptunedata/go_module_metadata.go +++ b/service/neptunedata/go_module_metadata.go @@ -3,4 +3,4 @@ package neptunedata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.3.0" +const goModuleVersion = "1.3.2" diff --git a/service/neptunedata/options.go b/service/neptunedata/options.go index b4f61742693..4c759b09efd 100644 --- a/service/neptunedata/options.go +++ b/service/neptunedata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/networkfirewall/CHANGELOG.md b/service/networkfirewall/CHANGELOG.md index e77cbdab169..ecd04847a0e 100644 --- a/service/networkfirewall/CHANGELOG.md +++ b/service/networkfirewall/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.36.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.36.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/networkfirewall/api_client.go b/service/networkfirewall/api_client.go index 47cd6cf08c8..7f4112d9ac5 100644 --- a/service/networkfirewall/api_client.go +++ b/service/networkfirewall/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/networkfirewall/auth.go b/service/networkfirewall/auth.go index 5c9b019aae7..8ee25d682b4 100644 --- a/service/networkfirewall/auth.go +++ b/service/networkfirewall/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/networkfirewall/go.mod b/service/networkfirewall/go.mod index 980c39e40ec..00b439e515c 100644 --- a/service/networkfirewall/go.mod +++ b/service/networkfirewall/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkfirewall go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/networkfirewall/go.sum b/service/networkfirewall/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/networkfirewall/go.sum +++ b/service/networkfirewall/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/networkfirewall/go_module_metadata.go b/service/networkfirewall/go_module_metadata.go index 8a5648c5443..cbc6af3d95e 100644 --- a/service/networkfirewall/go_module_metadata.go +++ b/service/networkfirewall/go_module_metadata.go @@ -3,4 +3,4 @@ package networkfirewall // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.0" +const goModuleVersion = "1.36.2" diff --git a/service/networkfirewall/options.go b/service/networkfirewall/options.go index ebb02958702..edfcbede0dd 100644 --- a/service/networkfirewall/options.go +++ b/service/networkfirewall/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/networkmanager/CHANGELOG.md b/service/networkmanager/CHANGELOG.md index 9d8a7c061ed..df730f51086 100644 --- a/service/networkmanager/CHANGELOG.md +++ b/service/networkmanager/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/networkmanager/api_client.go b/service/networkmanager/api_client.go index 1c72a082df3..14ef55db707 100644 --- a/service/networkmanager/api_client.go +++ b/service/networkmanager/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/networkmanager/auth.go b/service/networkmanager/auth.go index caa10a02de3..481ebb4e813 100644 --- a/service/networkmanager/auth.go +++ b/service/networkmanager/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/networkmanager/go.mod b/service/networkmanager/go.mod index 90d27792396..1730694c1fb 100644 --- a/service/networkmanager/go.mod +++ b/service/networkmanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/networkmanager go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/networkmanager/go.sum b/service/networkmanager/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/networkmanager/go.sum +++ b/service/networkmanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/networkmanager/go_module_metadata.go b/service/networkmanager/go_module_metadata.go index 10c81d615a1..777e8cd97b3 100644 --- a/service/networkmanager/go_module_metadata.go +++ b/service/networkmanager/go_module_metadata.go @@ -3,4 +3,4 @@ package networkmanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/networkmanager/options.go b/service/networkmanager/options.go index 945050c4b39..a29cc28de5b 100644 --- a/service/networkmanager/options.go +++ b/service/networkmanager/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/nimble/CHANGELOG.md b/service/nimble/CHANGELOG.md index eef26cd10da..e1fd9c12dca 100644 --- a/service/nimble/CHANGELOG.md +++ b/service/nimble/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/nimble/api_client.go b/service/nimble/api_client.go index 8af19e66fa8..584986a5d6d 100644 --- a/service/nimble/api_client.go +++ b/service/nimble/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/nimble/auth.go b/service/nimble/auth.go index 36b23ffacf4..62c671dc15c 100644 --- a/service/nimble/auth.go +++ b/service/nimble/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/nimble/go.mod b/service/nimble/go.mod index 2c197850392..521abf1900d 100644 --- a/service/nimble/go.mod +++ b/service/nimble/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/nimble go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/nimble/go.sum b/service/nimble/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/nimble/go.sum +++ b/service/nimble/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/nimble/go_module_metadata.go b/service/nimble/go_module_metadata.go index 09bc2cc8e11..7cb653c36e7 100644 --- a/service/nimble/go_module_metadata.go +++ b/service/nimble/go_module_metadata.go @@ -3,4 +3,4 @@ package nimble // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/nimble/options.go b/service/nimble/options.go index 1ed156dc598..66d7d02f577 100644 --- a/service/nimble/options.go +++ b/service/nimble/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/oam/CHANGELOG.md b/service/oam/CHANGELOG.md index 20f46a7cb59..0d091fdef2f 100644 --- a/service/oam/CHANGELOG.md +++ b/service/oam/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/oam/api_client.go b/service/oam/api_client.go index 5d9f5752435..01c7bd4cc3c 100644 --- a/service/oam/api_client.go +++ b/service/oam/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/oam/auth.go b/service/oam/auth.go index aef9be3790b..930644ee838 100644 --- a/service/oam/auth.go +++ b/service/oam/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/oam/go.mod b/service/oam/go.mod index 0138c9da82e..3eeec480755 100644 --- a/service/oam/go.mod +++ b/service/oam/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/oam go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/oam/go.sum b/service/oam/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/oam/go.sum +++ b/service/oam/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/oam/go_module_metadata.go b/service/oam/go_module_metadata.go index f8f32817958..19e0227710e 100644 --- a/service/oam/go_module_metadata.go +++ b/service/oam/go_module_metadata.go @@ -3,4 +3,4 @@ package oam // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/oam/options.go b/service/oam/options.go index 7a8180235c4..2c27435937a 100644 --- a/service/oam/options.go +++ b/service/oam/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/omics/CHANGELOG.md b/service/omics/CHANGELOG.md index 1d69067eddb..6b83624f173 100644 --- a/service/omics/CHANGELOG.md +++ b/service/omics/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.16.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/omics/api_client.go b/service/omics/api_client.go index 8b1111ad95e..c6f1de927ba 100644 --- a/service/omics/api_client.go +++ b/service/omics/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/omics/auth.go b/service/omics/auth.go index 4ffd9f0892c..3d9857e841f 100644 --- a/service/omics/auth.go +++ b/service/omics/auth.go @@ -135,7 +135,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -215,7 +215,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -264,7 +264,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/omics/go.mod b/service/omics/go.mod index 8d4d6b58aaa..6877eb9fdf8 100644 --- a/service/omics/go.mod +++ b/service/omics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/omics go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/omics/go.sum b/service/omics/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/omics/go.sum +++ b/service/omics/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/omics/go_module_metadata.go b/service/omics/go_module_metadata.go index 4b2a090ba8f..9152dbd597e 100644 --- a/service/omics/go_module_metadata.go +++ b/service/omics/go_module_metadata.go @@ -3,4 +3,4 @@ package omics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.2" diff --git a/service/omics/options.go b/service/omics/options.go index fcda1f3a932..8ebeb9089bc 100644 --- a/service/omics/options.go +++ b/service/omics/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opensearch/CHANGELOG.md b/service/opensearch/CHANGELOG.md index 30e211073a8..d299e06494a 100644 --- a/service/opensearch/CHANGELOG.md +++ b/service/opensearch/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/opensearch/api_client.go b/service/opensearch/api_client.go index e6a91fab339..83d5fb3002a 100644 --- a/service/opensearch/api_client.go +++ b/service/opensearch/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/opensearch/auth.go b/service/opensearch/auth.go index 64515785c0b..ff25d097ec3 100644 --- a/service/opensearch/auth.go +++ b/service/opensearch/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/opensearch/go.mod b/service/opensearch/go.mod index 421f832cc8c..fbf5715444c 100644 --- a/service/opensearch/go.mod +++ b/service/opensearch/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opensearch go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/opensearch/go.sum b/service/opensearch/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/opensearch/go.sum +++ b/service/opensearch/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opensearch/go_module_metadata.go b/service/opensearch/go_module_metadata.go index 071f125719f..3e63988dc1a 100644 --- a/service/opensearch/go_module_metadata.go +++ b/service/opensearch/go_module_metadata.go @@ -3,4 +3,4 @@ package opensearch // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/opensearch/options.go b/service/opensearch/options.go index 475e8866d6f..30fb0030f38 100644 --- a/service/opensearch/options.go +++ b/service/opensearch/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opensearchserverless/CHANGELOG.md b/service/opensearchserverless/CHANGELOG.md index f6f1a4f700c..3e7623f8462 100644 --- a/service/opensearchserverless/CHANGELOG.md +++ b/service/opensearchserverless/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.9.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.9.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.9.0 (2023-11-29) * **Feature**: Amazon OpenSearch Serverless collections support an additional attribute called standby-replicas. This allows to specify whether a collection should have redundancy enabled. diff --git a/service/opensearchserverless/api_client.go b/service/opensearchserverless/api_client.go index 1e8d06dd09a..8402379eb3a 100644 --- a/service/opensearchserverless/api_client.go +++ b/service/opensearchserverless/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/opensearchserverless/auth.go b/service/opensearchserverless/auth.go index 194b15d62fe..fabcc25f9bf 100644 --- a/service/opensearchserverless/auth.go +++ b/service/opensearchserverless/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/opensearchserverless/go.mod b/service/opensearchserverless/go.mod index dea184e9ba1..748b6ef37b0 100644 --- a/service/opensearchserverless/go.mod +++ b/service/opensearchserverless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opensearchserverless go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/opensearchserverless/go.sum b/service/opensearchserverless/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/opensearchserverless/go.sum +++ b/service/opensearchserverless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/opensearchserverless/go_module_metadata.go b/service/opensearchserverless/go_module_metadata.go index 6b8df966c42..6112261534d 100644 --- a/service/opensearchserverless/go_module_metadata.go +++ b/service/opensearchserverless/go_module_metadata.go @@ -3,4 +3,4 @@ package opensearchserverless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.9.0" +const goModuleVersion = "1.9.2" diff --git a/service/opensearchserverless/options.go b/service/opensearchserverless/options.go index f94bf5c614a..2055e36f3b0 100644 --- a/service/opensearchserverless/options.go +++ b/service/opensearchserverless/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opsworks/CHANGELOG.md b/service/opsworks/CHANGELOG.md index 9d53b58a8b5..a553350eb58 100644 --- a/service/opsworks/CHANGELOG.md +++ b/service/opsworks/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/opsworks/api_client.go b/service/opsworks/api_client.go index b1690fd2514..217fc292ad2 100644 --- a/service/opsworks/api_client.go +++ b/service/opsworks/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/opsworks/auth.go b/service/opsworks/auth.go index a7f83500041..2eb2ea717e8 100644 --- a/service/opsworks/auth.go +++ b/service/opsworks/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/opsworks/go.mod b/service/opsworks/go.mod index e8e6f9db162..a35cec3d03f 100644 --- a/service/opsworks/go.mod +++ b/service/opsworks/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opsworks go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworks/go.sum b/service/opsworks/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/opsworks/go.sum +++ b/service/opsworks/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/opsworks/go_module_metadata.go b/service/opsworks/go_module_metadata.go index 8e167f134ae..f21ee50d1ac 100644 --- a/service/opsworks/go_module_metadata.go +++ b/service/opsworks/go_module_metadata.go @@ -3,4 +3,4 @@ package opsworks // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/opsworks/options.go b/service/opsworks/options.go index 37bf6f9a6f2..c393cbb0735 100644 --- a/service/opsworks/options.go +++ b/service/opsworks/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/opsworkscm/CHANGELOG.md b/service/opsworkscm/CHANGELOG.md index 89eb9e6728c..dd6ee8c1fb6 100644 --- a/service/opsworkscm/CHANGELOG.md +++ b/service/opsworkscm/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/opsworkscm/api_client.go b/service/opsworkscm/api_client.go index fda8b01e4ad..3bf73f020df 100644 --- a/service/opsworkscm/api_client.go +++ b/service/opsworkscm/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/opsworkscm/auth.go b/service/opsworkscm/auth.go index 748ef2392ce..63d8678a3d8 100644 --- a/service/opsworkscm/auth.go +++ b/service/opsworkscm/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/opsworkscm/go.mod b/service/opsworkscm/go.mod index d6140aecf4e..55d495340a3 100644 --- a/service/opsworkscm/go.mod +++ b/service/opsworkscm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/opsworkscm go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/opsworkscm/go.sum b/service/opsworkscm/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/opsworkscm/go.sum +++ b/service/opsworkscm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/opsworkscm/go_module_metadata.go b/service/opsworkscm/go_module_metadata.go index 64d426bf999..a1bd1eaf660 100644 --- a/service/opsworkscm/go_module_metadata.go +++ b/service/opsworkscm/go_module_metadata.go @@ -3,4 +3,4 @@ package opsworkscm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/opsworkscm/options.go b/service/opsworkscm/options.go index 59e090935fb..7aff3026d53 100644 --- a/service/opsworkscm/options.go +++ b/service/opsworkscm/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/organizations/CHANGELOG.md b/service/organizations/CHANGELOG.md index 0bc56064655..deb7b8800d1 100644 --- a/service/organizations/CHANGELOG.md +++ b/service/organizations/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/organizations/api_client.go b/service/organizations/api_client.go index 02fc78a865e..215ab7f12df 100644 --- a/service/organizations/api_client.go +++ b/service/organizations/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/organizations/auth.go b/service/organizations/auth.go index e1974babbc8..2ebd7a78b12 100644 --- a/service/organizations/auth.go +++ b/service/organizations/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/organizations/go.mod b/service/organizations/go.mod index 5e784bec3de..37c36bec7ec 100644 --- a/service/organizations/go.mod +++ b/service/organizations/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/organizations go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/organizations/go.sum b/service/organizations/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/organizations/go.sum +++ b/service/organizations/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/organizations/go_module_metadata.go b/service/organizations/go_module_metadata.go index ed2421e5ed4..14eb8985b5c 100644 --- a/service/organizations/go_module_metadata.go +++ b/service/organizations/go_module_metadata.go @@ -3,4 +3,4 @@ package organizations // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/organizations/options.go b/service/organizations/options.go index e9a2c1480a9..60ef27824ba 100644 --- a/service/organizations/options.go +++ b/service/organizations/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/osis/CHANGELOG.md b/service/osis/CHANGELOG.md index b742ec807d8..11f9303d223 100644 --- a/service/osis/CHANGELOG.md +++ b/service/osis/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/osis/api_client.go b/service/osis/api_client.go index e56242b6235..ababfa81cc3 100644 --- a/service/osis/api_client.go +++ b/service/osis/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/osis/auth.go b/service/osis/auth.go index 144ebab47b6..380fd0a93aa 100644 --- a/service/osis/auth.go +++ b/service/osis/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/osis/go.mod b/service/osis/go.mod index b23636f1faa..69796720b25 100644 --- a/service/osis/go.mod +++ b/service/osis/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/osis go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/osis/go.sum b/service/osis/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/osis/go.sum +++ b/service/osis/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/osis/go_module_metadata.go b/service/osis/go_module_metadata.go index eae44fdbf52..1530200dc03 100644 --- a/service/osis/go_module_metadata.go +++ b/service/osis/go_module_metadata.go @@ -3,4 +3,4 @@ package osis // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/osis/options.go b/service/osis/options.go index a83f1c84f7c..9af297ad134 100644 --- a/service/osis/options.go +++ b/service/osis/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/outposts/CHANGELOG.md b/service/outposts/CHANGELOG.md index 6eae536a5f1..b33901d1abd 100644 --- a/service/outposts/CHANGELOG.md +++ b/service/outposts/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.34.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.34.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/outposts/api_client.go b/service/outposts/api_client.go index dc1077ffe62..ca5802b11b9 100644 --- a/service/outposts/api_client.go +++ b/service/outposts/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/outposts/auth.go b/service/outposts/auth.go index 679bf99eb34..86d7321b803 100644 --- a/service/outposts/auth.go +++ b/service/outposts/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/outposts/go.mod b/service/outposts/go.mod index bea3c51f6e3..267b594fada 100644 --- a/service/outposts/go.mod +++ b/service/outposts/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/outposts go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/outposts/go.sum b/service/outposts/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/outposts/go.sum +++ b/service/outposts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/outposts/go_module_metadata.go b/service/outposts/go_module_metadata.go index 2b141910ebd..693346221b2 100644 --- a/service/outposts/go_module_metadata.go +++ b/service/outposts/go_module_metadata.go @@ -3,4 +3,4 @@ package outposts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.2" diff --git a/service/outposts/options.go b/service/outposts/options.go index 3c07adfcae1..c25ff0e9955 100644 --- a/service/outposts/options.go +++ b/service/outposts/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/panorama/CHANGELOG.md b/service/panorama/CHANGELOG.md index 8fb1a93c53c..4dc70fd44d0 100644 --- a/service/panorama/CHANGELOG.md +++ b/service/panorama/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.16.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/panorama/api_client.go b/service/panorama/api_client.go index 6e315289463..b140506984b 100644 --- a/service/panorama/api_client.go +++ b/service/panorama/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/panorama/auth.go b/service/panorama/auth.go index 5a5260db9af..bb010ebd5dc 100644 --- a/service/panorama/auth.go +++ b/service/panorama/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/panorama/go.mod b/service/panorama/go.mod index 4b4c70a0ec4..50834644b41 100644 --- a/service/panorama/go.mod +++ b/service/panorama/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/panorama go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/panorama/go.sum b/service/panorama/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/panorama/go.sum +++ b/service/panorama/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/panorama/go_module_metadata.go b/service/panorama/go_module_metadata.go index 493b0fd3ca9..bc36ef934f1 100644 --- a/service/panorama/go_module_metadata.go +++ b/service/panorama/go_module_metadata.go @@ -3,4 +3,4 @@ package panorama // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.2" diff --git a/service/panorama/options.go b/service/panorama/options.go index d39d3adac08..3a17ba1de43 100644 --- a/service/panorama/options.go +++ b/service/panorama/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/paymentcryptography/CHANGELOG.md b/service/paymentcryptography/CHANGELOG.md index a3f945ffd92..c56ddcad7b8 100644 --- a/service/paymentcryptography/CHANGELOG.md +++ b/service/paymentcryptography/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/paymentcryptography/api_client.go b/service/paymentcryptography/api_client.go index 198897b92b8..838ab3e895a 100644 --- a/service/paymentcryptography/api_client.go +++ b/service/paymentcryptography/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/paymentcryptography/auth.go b/service/paymentcryptography/auth.go index f4b32d2bbbc..c9c5847a840 100644 --- a/service/paymentcryptography/auth.go +++ b/service/paymentcryptography/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/paymentcryptography/go.mod b/service/paymentcryptography/go.mod index 97d1fb1fa45..72d7349a83a 100644 --- a/service/paymentcryptography/go.mod +++ b/service/paymentcryptography/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/paymentcryptography go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/paymentcryptography/go.sum b/service/paymentcryptography/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/paymentcryptography/go.sum +++ b/service/paymentcryptography/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptography/go_module_metadata.go b/service/paymentcryptography/go_module_metadata.go index 5bf40ed48fd..84163a5b603 100644 --- a/service/paymentcryptography/go_module_metadata.go +++ b/service/paymentcryptography/go_module_metadata.go @@ -3,4 +3,4 @@ package paymentcryptography // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/paymentcryptography/options.go b/service/paymentcryptography/options.go index bc25e88e053..790184916fa 100644 --- a/service/paymentcryptography/options.go +++ b/service/paymentcryptography/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/paymentcryptographydata/CHANGELOG.md b/service/paymentcryptographydata/CHANGELOG.md index 94aa489a70f..8d9f4bda7e2 100644 --- a/service/paymentcryptographydata/CHANGELOG.md +++ b/service/paymentcryptographydata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/paymentcryptographydata/api_client.go b/service/paymentcryptographydata/api_client.go index ec955447690..7eaf66dcf4e 100644 --- a/service/paymentcryptographydata/api_client.go +++ b/service/paymentcryptographydata/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/paymentcryptographydata/auth.go b/service/paymentcryptographydata/auth.go index d6c718798db..024d23c43cb 100644 --- a/service/paymentcryptographydata/auth.go +++ b/service/paymentcryptographydata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/paymentcryptographydata/go.mod b/service/paymentcryptographydata/go.mod index eac76ef6374..bfcae772022 100644 --- a/service/paymentcryptographydata/go.mod +++ b/service/paymentcryptographydata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/paymentcryptographydata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/paymentcryptographydata/go.sum b/service/paymentcryptographydata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/paymentcryptographydata/go.sum +++ b/service/paymentcryptographydata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/paymentcryptographydata/go_module_metadata.go b/service/paymentcryptographydata/go_module_metadata.go index 908a12f6342..687097f3561 100644 --- a/service/paymentcryptographydata/go_module_metadata.go +++ b/service/paymentcryptographydata/go_module_metadata.go @@ -3,4 +3,4 @@ package paymentcryptographydata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/paymentcryptographydata/options.go b/service/paymentcryptographydata/options.go index f986f9add2d..540f59f4d6d 100644 --- a/service/paymentcryptographydata/options.go +++ b/service/paymentcryptographydata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pcaconnectorad/CHANGELOG.md b/service/pcaconnectorad/CHANGELOG.md index 1bb75d81504..4f6da6f94b3 100644 --- a/service/pcaconnectorad/CHANGELOG.md +++ b/service/pcaconnectorad/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.3.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.3.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.3.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pcaconnectorad/api_client.go b/service/pcaconnectorad/api_client.go index e2c7dc5ffa4..df64199d809 100644 --- a/service/pcaconnectorad/api_client.go +++ b/service/pcaconnectorad/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pcaconnectorad/auth.go b/service/pcaconnectorad/auth.go index 19bdcd88c6a..88de31f9ece 100644 --- a/service/pcaconnectorad/auth.go +++ b/service/pcaconnectorad/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pcaconnectorad/go.mod b/service/pcaconnectorad/go.mod index 676015ec69f..ef8f8e4099c 100644 --- a/service/pcaconnectorad/go.mod +++ b/service/pcaconnectorad/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pcaconnectorad go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pcaconnectorad/go.sum b/service/pcaconnectorad/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pcaconnectorad/go.sum +++ b/service/pcaconnectorad/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pcaconnectorad/go_module_metadata.go b/service/pcaconnectorad/go_module_metadata.go index 22912b5845c..3beaccc03b0 100644 --- a/service/pcaconnectorad/go_module_metadata.go +++ b/service/pcaconnectorad/go_module_metadata.go @@ -3,4 +3,4 @@ package pcaconnectorad // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.3.0" +const goModuleVersion = "1.3.2" diff --git a/service/pcaconnectorad/options.go b/service/pcaconnectorad/options.go index c79caa1d5d4..405f7ea7cbc 100644 --- a/service/pcaconnectorad/options.go +++ b/service/pcaconnectorad/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/personalize/CHANGELOG.md b/service/personalize/CHANGELOG.md index 776361642c1..1dce6c3368b 100644 --- a/service/personalize/CHANGELOG.md +++ b/service/personalize/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.30.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.30.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.30.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/personalize/api_client.go b/service/personalize/api_client.go index 1a8b664f76c..9d6104cbaea 100644 --- a/service/personalize/api_client.go +++ b/service/personalize/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/personalize/auth.go b/service/personalize/auth.go index 57fb30dae12..f681025a947 100644 --- a/service/personalize/auth.go +++ b/service/personalize/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/personalize/go.mod b/service/personalize/go.mod index 13c3e03ffeb..541f8117427 100644 --- a/service/personalize/go.mod +++ b/service/personalize/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalize go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalize/go.sum b/service/personalize/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/personalize/go.sum +++ b/service/personalize/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalize/go_module_metadata.go b/service/personalize/go_module_metadata.go index ab554a38234..80b53cd1abf 100644 --- a/service/personalize/go_module_metadata.go +++ b/service/personalize/go_module_metadata.go @@ -3,4 +3,4 @@ package personalize // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.30.0" +const goModuleVersion = "1.30.2" diff --git a/service/personalize/options.go b/service/personalize/options.go index c397f469ff0..22ef323edfc 100644 --- a/service/personalize/options.go +++ b/service/personalize/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/personalizeevents/CHANGELOG.md b/service/personalizeevents/CHANGELOG.md index aca4e049ef4..7843947d42a 100644 --- a/service/personalizeevents/CHANGELOG.md +++ b/service/personalizeevents/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/personalizeevents/api_client.go b/service/personalizeevents/api_client.go index 2db8625b687..13a60c8b7e8 100644 --- a/service/personalizeevents/api_client.go +++ b/service/personalizeevents/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/personalizeevents/auth.go b/service/personalizeevents/auth.go index 3c72794d891..580fbbeac5b 100644 --- a/service/personalizeevents/auth.go +++ b/service/personalizeevents/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/personalizeevents/go.mod b/service/personalizeevents/go.mod index eb8151fb944..40fa65ab82b 100644 --- a/service/personalizeevents/go.mod +++ b/service/personalizeevents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeevents go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalizeevents/go.sum b/service/personalizeevents/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/personalizeevents/go.sum +++ b/service/personalizeevents/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeevents/go_module_metadata.go b/service/personalizeevents/go_module_metadata.go index b452ce65399..c634e7d0216 100644 --- a/service/personalizeevents/go_module_metadata.go +++ b/service/personalizeevents/go_module_metadata.go @@ -3,4 +3,4 @@ package personalizeevents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/personalizeevents/options.go b/service/personalizeevents/options.go index d97e763f3f4..c84a1b199e8 100644 --- a/service/personalizeevents/options.go +++ b/service/personalizeevents/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/personalizeruntime/CHANGELOG.md b/service/personalizeruntime/CHANGELOG.md index 6559c10cbb4..e4bd3af0a6d 100644 --- a/service/personalizeruntime/CHANGELOG.md +++ b/service/personalizeruntime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/personalizeruntime/api_client.go b/service/personalizeruntime/api_client.go index 536f652b35c..adde4981f58 100644 --- a/service/personalizeruntime/api_client.go +++ b/service/personalizeruntime/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/personalizeruntime/auth.go b/service/personalizeruntime/auth.go index fabc71efe9f..cf2e30b3afd 100644 --- a/service/personalizeruntime/auth.go +++ b/service/personalizeruntime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/personalizeruntime/go.mod b/service/personalizeruntime/go.mod index c6e63c1cf4f..545ef8bff87 100644 --- a/service/personalizeruntime/go.mod +++ b/service/personalizeruntime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/personalizeruntime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/personalizeruntime/go.sum b/service/personalizeruntime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/personalizeruntime/go.sum +++ b/service/personalizeruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/personalizeruntime/go_module_metadata.go b/service/personalizeruntime/go_module_metadata.go index 31a984e6cc7..e8b2ba4cf58 100644 --- a/service/personalizeruntime/go_module_metadata.go +++ b/service/personalizeruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package personalizeruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/personalizeruntime/options.go b/service/personalizeruntime/options.go index 72b3a00508f..09714196fc8 100644 --- a/service/personalizeruntime/options.go +++ b/service/personalizeruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pi/CHANGELOG.md b/service/pi/CHANGELOG.md index 69b8340f1dc..5e466166415 100644 --- a/service/pi/CHANGELOG.md +++ b/service/pi/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pi/api_client.go b/service/pi/api_client.go index 1eba03ac28e..f589ecb67cc 100644 --- a/service/pi/api_client.go +++ b/service/pi/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pi/auth.go b/service/pi/auth.go index e1673730237..ae74575af21 100644 --- a/service/pi/auth.go +++ b/service/pi/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pi/go.mod b/service/pi/go.mod index 8323f99de7c..a115e9909a9 100644 --- a/service/pi/go.mod +++ b/service/pi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pi go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pi/go.sum b/service/pi/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pi/go.sum +++ b/service/pi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pi/go_module_metadata.go b/service/pi/go_module_metadata.go index 4c183857b6a..412dbb3d357 100644 --- a/service/pi/go_module_metadata.go +++ b/service/pi/go_module_metadata.go @@ -3,4 +3,4 @@ package pi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/pi/options.go b/service/pi/options.go index 2c3d626aa26..1d3cbbe4415 100644 --- a/service/pi/options.go +++ b/service/pi/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpoint/CHANGELOG.md b/service/pinpoint/CHANGELOG.md index a67f1991668..e6d315095a7 100644 --- a/service/pinpoint/CHANGELOG.md +++ b/service/pinpoint/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pinpoint/api_client.go b/service/pinpoint/api_client.go index 61301bf019c..3b2a319e4cf 100644 --- a/service/pinpoint/api_client.go +++ b/service/pinpoint/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pinpoint/auth.go b/service/pinpoint/auth.go index 475bd201b6e..4ae2abb33ff 100644 --- a/service/pinpoint/auth.go +++ b/service/pinpoint/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pinpoint/go.mod b/service/pinpoint/go.mod index 8db8673c2e3..511ff326eb7 100644 --- a/service/pinpoint/go.mod +++ b/service/pinpoint/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpoint go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpoint/go.sum b/service/pinpoint/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pinpoint/go.sum +++ b/service/pinpoint/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpoint/go_module_metadata.go b/service/pinpoint/go_module_metadata.go index 79a28cc9cb1..a534c675aac 100644 --- a/service/pinpoint/go_module_metadata.go +++ b/service/pinpoint/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpoint // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/pinpoint/options.go b/service/pinpoint/options.go index 80ed772776f..70acddb379e 100644 --- a/service/pinpoint/options.go +++ b/service/pinpoint/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpointemail/CHANGELOG.md b/service/pinpointemail/CHANGELOG.md index e20f582dca3..bc342a32616 100644 --- a/service/pinpointemail/CHANGELOG.md +++ b/service/pinpointemail/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pinpointemail/api_client.go b/service/pinpointemail/api_client.go index d18b10e8203..52af5e7a820 100644 --- a/service/pinpointemail/api_client.go +++ b/service/pinpointemail/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pinpointemail/auth.go b/service/pinpointemail/auth.go index 40d3a115b31..9d69f362ce5 100644 --- a/service/pinpointemail/auth.go +++ b/service/pinpointemail/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pinpointemail/go.mod b/service/pinpointemail/go.mod index a7417d9dd0d..c4435ac5ee4 100644 --- a/service/pinpointemail/go.mod +++ b/service/pinpointemail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointemail go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointemail/go.sum b/service/pinpointemail/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pinpointemail/go.sum +++ b/service/pinpointemail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointemail/go_module_metadata.go b/service/pinpointemail/go_module_metadata.go index f90506e318a..2d2b1196120 100644 --- a/service/pinpointemail/go_module_metadata.go +++ b/service/pinpointemail/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpointemail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/pinpointemail/options.go b/service/pinpointemail/options.go index 5ccc3e82fa6..97c27ddf49c 100644 --- a/service/pinpointemail/options.go +++ b/service/pinpointemail/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpointsmsvoice/CHANGELOG.md b/service/pinpointsmsvoice/CHANGELOG.md index 129e9bce48a..803387818d9 100644 --- a/service/pinpointsmsvoice/CHANGELOG.md +++ b/service/pinpointsmsvoice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pinpointsmsvoice/api_client.go b/service/pinpointsmsvoice/api_client.go index c86a6f823b8..4de23a08288 100644 --- a/service/pinpointsmsvoice/api_client.go +++ b/service/pinpointsmsvoice/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pinpointsmsvoice/auth.go b/service/pinpointsmsvoice/auth.go index 8bdf0b24aaa..b51c75bb334 100644 --- a/service/pinpointsmsvoice/auth.go +++ b/service/pinpointsmsvoice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pinpointsmsvoice/go.mod b/service/pinpointsmsvoice/go.mod index 77d934966e8..dfa30cda52a 100644 --- a/service/pinpointsmsvoice/go.mod +++ b/service/pinpointsmsvoice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointsmsvoice/go.sum b/service/pinpointsmsvoice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pinpointsmsvoice/go.sum +++ b/service/pinpointsmsvoice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoice/go_module_metadata.go b/service/pinpointsmsvoice/go_module_metadata.go index 3856d43f654..1d236284d1f 100644 --- a/service/pinpointsmsvoice/go_module_metadata.go +++ b/service/pinpointsmsvoice/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpointsmsvoice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/pinpointsmsvoice/options.go b/service/pinpointsmsvoice/options.go index e71dcf9d001..cdf2dbc1bae 100644 --- a/service/pinpointsmsvoice/options.go +++ b/service/pinpointsmsvoice/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pinpointsmsvoicev2/CHANGELOG.md b/service/pinpointsmsvoicev2/CHANGELOG.md index b73eef776c5..d3f6335a405 100644 --- a/service/pinpointsmsvoicev2/CHANGELOG.md +++ b/service/pinpointsmsvoicev2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pinpointsmsvoicev2/api_client.go b/service/pinpointsmsvoicev2/api_client.go index a5c39f1eaad..ea5a1c1b66c 100644 --- a/service/pinpointsmsvoicev2/api_client.go +++ b/service/pinpointsmsvoicev2/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pinpointsmsvoicev2/auth.go b/service/pinpointsmsvoicev2/auth.go index c0602706af5..0f63abbccb3 100644 --- a/service/pinpointsmsvoicev2/auth.go +++ b/service/pinpointsmsvoicev2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pinpointsmsvoicev2/go.mod b/service/pinpointsmsvoicev2/go.mod index ea0f37f7c15..479f26dc827 100644 --- a/service/pinpointsmsvoicev2/go.mod +++ b/service/pinpointsmsvoicev2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoicev2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pinpointsmsvoicev2/go.sum b/service/pinpointsmsvoicev2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pinpointsmsvoicev2/go.sum +++ b/service/pinpointsmsvoicev2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pinpointsmsvoicev2/go_module_metadata.go b/service/pinpointsmsvoicev2/go_module_metadata.go index eee1855fbb3..5580be0cadd 100644 --- a/service/pinpointsmsvoicev2/go_module_metadata.go +++ b/service/pinpointsmsvoicev2/go_module_metadata.go @@ -3,4 +3,4 @@ package pinpointsmsvoicev2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/pinpointsmsvoicev2/options.go b/service/pinpointsmsvoicev2/options.go index 00d56a6f96a..11927e81d99 100644 --- a/service/pinpointsmsvoicev2/options.go +++ b/service/pinpointsmsvoicev2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pipes/CHANGELOG.md b/service/pipes/CHANGELOG.md index 52b89b6fc18..2f3399ecadb 100644 --- a/service/pipes/CHANGELOG.md +++ b/service/pipes/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.9.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.9.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.9.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pipes/api_client.go b/service/pipes/api_client.go index d1c926006f3..2a52b2da367 100644 --- a/service/pipes/api_client.go +++ b/service/pipes/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pipes/auth.go b/service/pipes/auth.go index 3f221e1a21e..88336b38ac0 100644 --- a/service/pipes/auth.go +++ b/service/pipes/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pipes/go.mod b/service/pipes/go.mod index 79592ce31d1..d4baf9c75c1 100644 --- a/service/pipes/go.mod +++ b/service/pipes/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pipes go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pipes/go.sum b/service/pipes/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pipes/go.sum +++ b/service/pipes/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pipes/go_module_metadata.go b/service/pipes/go_module_metadata.go index 611770da9a6..221d2ead884 100644 --- a/service/pipes/go_module_metadata.go +++ b/service/pipes/go_module_metadata.go @@ -3,4 +3,4 @@ package pipes // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.9.0" +const goModuleVersion = "1.9.2" diff --git a/service/pipes/options.go b/service/pipes/options.go index 43db880bac4..9b5edfbe05c 100644 --- a/service/pipes/options.go +++ b/service/pipes/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/polly/CHANGELOG.md b/service/polly/CHANGELOG.md index a2feec37087..e491633d814 100644 --- a/service/polly/CHANGELOG.md +++ b/service/polly/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.36.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.36.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.36.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/polly/api_client.go b/service/polly/api_client.go index fe208c1e45e..abba4c00ba8 100644 --- a/service/polly/api_client.go +++ b/service/polly/api_client.go @@ -142,7 +142,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -151,7 +151,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/polly/auth.go b/service/polly/auth.go index 40e82f50852..47b14a4d766 100644 --- a/service/polly/auth.go +++ b/service/polly/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/polly/go.mod b/service/polly/go.mod index 268a6b53651..7ab03ff7162 100644 --- a/service/polly/go.mod +++ b/service/polly/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/polly go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/polly/go.sum b/service/polly/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/polly/go.sum +++ b/service/polly/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/polly/go_module_metadata.go b/service/polly/go_module_metadata.go index ca73620eae3..912cd3cd1c7 100644 --- a/service/polly/go_module_metadata.go +++ b/service/polly/go_module_metadata.go @@ -3,4 +3,4 @@ package polly // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.36.0" +const goModuleVersion = "1.36.2" diff --git a/service/polly/options.go b/service/polly/options.go index 50ac243433f..0f3ab554a86 100644 --- a/service/polly/options.go +++ b/service/polly/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/pricing/CHANGELOG.md b/service/pricing/CHANGELOG.md index 79810408211..75e806a66e7 100644 --- a/service/pricing/CHANGELOG.md +++ b/service/pricing/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/pricing/api_client.go b/service/pricing/api_client.go index ae0745c53b6..b5031fb92e2 100644 --- a/service/pricing/api_client.go +++ b/service/pricing/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/pricing/auth.go b/service/pricing/auth.go index de387031010..83d9db4bf4d 100644 --- a/service/pricing/auth.go +++ b/service/pricing/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/pricing/go.mod b/service/pricing/go.mod index 5c72d5f48bc..f7a972f6d46 100644 --- a/service/pricing/go.mod +++ b/service/pricing/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/pricing go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/pricing/go.sum b/service/pricing/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/pricing/go.sum +++ b/service/pricing/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/pricing/go_module_metadata.go b/service/pricing/go_module_metadata.go index 99822cf4afb..f06ed8d8487 100644 --- a/service/pricing/go_module_metadata.go +++ b/service/pricing/go_module_metadata.go @@ -3,4 +3,4 @@ package pricing // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/pricing/options.go b/service/pricing/options.go index 3d65d8fc781..56457cc8a76 100644 --- a/service/pricing/options.go +++ b/service/pricing/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/privatenetworks/CHANGELOG.md b/service/privatenetworks/CHANGELOG.md index 41c08259536..f989d9dd8bb 100644 --- a/service/privatenetworks/CHANGELOG.md +++ b/service/privatenetworks/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/privatenetworks/api_client.go b/service/privatenetworks/api_client.go index 2f4ab34fe42..c97e2b0a2a0 100644 --- a/service/privatenetworks/api_client.go +++ b/service/privatenetworks/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/privatenetworks/auth.go b/service/privatenetworks/auth.go index 13e27f85f73..82df45001a4 100644 --- a/service/privatenetworks/auth.go +++ b/service/privatenetworks/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/privatenetworks/go.mod b/service/privatenetworks/go.mod index 31de73eb2f4..c71e0077617 100644 --- a/service/privatenetworks/go.mod +++ b/service/privatenetworks/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/privatenetworks go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/privatenetworks/go.sum b/service/privatenetworks/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/privatenetworks/go.sum +++ b/service/privatenetworks/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/privatenetworks/go_module_metadata.go b/service/privatenetworks/go_module_metadata.go index 218150a4e0c..a2d0a147250 100644 --- a/service/privatenetworks/go_module_metadata.go +++ b/service/privatenetworks/go_module_metadata.go @@ -3,4 +3,4 @@ package privatenetworks // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/privatenetworks/options.go b/service/privatenetworks/options.go index 3718d63dd22..8302431fa1d 100644 --- a/service/privatenetworks/options.go +++ b/service/privatenetworks/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/proton/CHANGELOG.md b/service/proton/CHANGELOG.md index ade1feb6e3a..eaa1d4aa592 100644 --- a/service/proton/CHANGELOG.md +++ b/service/proton/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/proton/api_client.go b/service/proton/api_client.go index 1deb4a9d003..79e1265b3a5 100644 --- a/service/proton/api_client.go +++ b/service/proton/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/proton/auth.go b/service/proton/auth.go index 096a8a01aff..4c82e6c00f9 100644 --- a/service/proton/auth.go +++ b/service/proton/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/proton/go.mod b/service/proton/go.mod index ce6d20ac6a5..796e7499668 100644 --- a/service/proton/go.mod +++ b/service/proton/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/proton go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/proton/go.sum b/service/proton/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/proton/go.sum +++ b/service/proton/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/proton/go_module_metadata.go b/service/proton/go_module_metadata.go index 8221503f833..b9720d0fc8a 100644 --- a/service/proton/go_module_metadata.go +++ b/service/proton/go_module_metadata.go @@ -3,4 +3,4 @@ package proton // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/proton/options.go b/service/proton/options.go index c60be03dce6..24da38215d0 100644 --- a/service/proton/options.go +++ b/service/proton/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qbusiness/CHANGELOG.md b/service/qbusiness/CHANGELOG.md index 5e3e5786640..b66ccc2111f 100644 --- a/service/qbusiness/CHANGELOG.md +++ b/service/qbusiness/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/qbusiness/api_client.go b/service/qbusiness/api_client.go index 46127345885..3e6ffa7e4da 100644 --- a/service/qbusiness/api_client.go +++ b/service/qbusiness/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/qbusiness/auth.go b/service/qbusiness/auth.go index a85c8d729c9..eea1c0c4202 100644 --- a/service/qbusiness/auth.go +++ b/service/qbusiness/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/qbusiness/go.mod b/service/qbusiness/go.mod index 6fbeebf7b72..76239a4a14e 100644 --- a/service/qbusiness/go.mod +++ b/service/qbusiness/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qbusiness go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qbusiness/go.sum b/service/qbusiness/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/qbusiness/go.sum +++ b/service/qbusiness/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qbusiness/go_module_metadata.go b/service/qbusiness/go_module_metadata.go index d7fbd6810d7..0ee1f1a920e 100644 --- a/service/qbusiness/go_module_metadata.go +++ b/service/qbusiness/go_module_metadata.go @@ -3,4 +3,4 @@ package qbusiness // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/qbusiness/options.go b/service/qbusiness/options.go index 1af710d376c..4689343b19b 100644 --- a/service/qbusiness/options.go +++ b/service/qbusiness/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qconnect/CHANGELOG.md b/service/qconnect/CHANGELOG.md index 709bf6ac1de..239e2abdaeb 100644 --- a/service/qconnect/CHANGELOG.md +++ b/service/qconnect/CHANGELOG.md @@ -1,3 +1,14 @@ +# v1.2.0 (2023-12-01) + +* **Feature**: This release adds the PutFeedback API and allows providing feedback against the specified assistant for the specified target. +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/qconnect/api_client.go b/service/qconnect/api_client.go index be67a5bff27..1a0dda1aff3 100644 --- a/service/qconnect/api_client.go +++ b/service/qconnect/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/qconnect/api_op_CreateQuickResponse.go b/service/qconnect/api_op_CreateQuickResponse.go index 3b73e7b0e35..d3bbe82b0e0 100644 --- a/service/qconnect/api_op_CreateQuickResponse.go +++ b/service/qconnect/api_op_CreateQuickResponse.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a Amazon Q quick response. +// Creates an Amazon Q quick response. func (c *Client) CreateQuickResponse(ctx context.Context, params *CreateQuickResponseInput, optFns ...func(*Options)) (*CreateQuickResponseOutput, error) { if params == nil { params = &CreateQuickResponseInput{} diff --git a/service/qconnect/api_op_PutFeedback.go b/service/qconnect/api_op_PutFeedback.go new file mode 100644 index 00000000000..69b01e9c325 --- /dev/null +++ b/service/qconnect/api_op_PutFeedback.go @@ -0,0 +1,175 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package qconnect + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/qconnect/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Provides feedback against the specified assistant for the specified target. +// This API only supports generative targets. +func (c *Client) PutFeedback(ctx context.Context, params *PutFeedbackInput, optFns ...func(*Options)) (*PutFeedbackOutput, error) { + if params == nil { + params = &PutFeedbackInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PutFeedback", params, optFns, c.addOperationPutFeedbackMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PutFeedbackOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PutFeedbackInput struct { + + // The identifier of the Amazon Q assistant. + // + // This member is required. + AssistantId *string + + // Information about the feedback provided. + // + // This member is required. + ContentFeedback types.ContentFeedbackData + + // The identifier of the feedback target. + // + // This member is required. + TargetId *string + + // The type of the feedback target. + // + // This member is required. + TargetType types.TargetType + + noSmithyDocumentSerde +} + +type PutFeedbackOutput struct { + + // The Amazon Resource Name (ARN) of the Amazon Q assistant. + // + // This member is required. + AssistantArn *string + + // The identifier of the Amazon Q assistant. + // + // This member is required. + AssistantId *string + + // Information about the feedback provided. + // + // This member is required. + ContentFeedback types.ContentFeedbackData + + // The identifier of the feedback target. + // + // This member is required. + TargetId *string + + // The type of the feedback target. + // + // This member is required. + TargetType types.TargetType + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPutFeedbackMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsRestjson1_serializeOpPutFeedback{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutFeedback{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "PutFeedback"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpPutFeedbackValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutFeedback(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opPutFeedback(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "PutFeedback", + } +} diff --git a/service/qconnect/api_op_SearchQuickResponses.go b/service/qconnect/api_op_SearchQuickResponses.go index 8d7f1a7cbf3..31ab78879f9 100644 --- a/service/qconnect/api_op_SearchQuickResponses.go +++ b/service/qconnect/api_op_SearchQuickResponses.go @@ -12,7 +12,7 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Searches existing Amazon Q quick responses in a Amazon Q knowledge base. +// Searches existing Amazon Q quick responses in an Amazon Q knowledge base. func (c *Client) SearchQuickResponses(ctx context.Context, params *SearchQuickResponsesInput, optFns ...func(*Options)) (*SearchQuickResponsesOutput, error) { if params == nil { params = &SearchQuickResponsesInput{} diff --git a/service/qconnect/auth.go b/service/qconnect/auth.go index fe5481cf3b1..6c3112fcf6c 100644 --- a/service/qconnect/auth.go +++ b/service/qconnect/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/qconnect/deserializers.go b/service/qconnect/deserializers.go index 20eb6b941b1..3b5115c07bb 100644 --- a/service/qconnect/deserializers.go +++ b/service/qconnect/deserializers.go @@ -4152,6 +4152,195 @@ func awsRestjson1_deserializeOpDocumentNotifyRecommendationsReceivedOutput(v **N return nil } +type awsRestjson1_deserializeOpPutFeedback struct { +} + +func (*awsRestjson1_deserializeOpPutFeedback) ID() string { + return "OperationDeserializer" +} + +func (m *awsRestjson1_deserializeOpPutFeedback) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsRestjson1_deserializeOpErrorPutFeedback(response, &metadata) + } + output := &PutFeedbackOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsRestjson1_deserializeOpDocumentPutFeedbackOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body with invalid JSON, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + return out, metadata, err +} + +func awsRestjson1_deserializeOpErrorPutFeedback(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsRestjson1_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsRestjson1_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsRestjson1_deserializeOpDocumentPutFeedbackOutput(v **PutFeedbackOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *PutFeedbackOutput + if *v == nil { + sv = &PutFeedbackOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "assistantArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UuidOrArn to be of type string, got %T instead", value) + } + sv.AssistantArn = ptr.String(jtv) + } + + case "assistantId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.AssistantId = ptr.String(jtv) + } + + case "contentFeedback": + if err := awsRestjson1_deserializeDocumentContentFeedbackData(&sv.ContentFeedback, value); err != nil { + return err + } + + case "targetId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Uuid to be of type string, got %T instead", value) + } + sv.TargetId = ptr.String(jtv) + } + + case "targetType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TargetType to be of type string, got %T instead", value) + } + sv.TargetType = types.TargetType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + type awsRestjson1_deserializeOpQueryAssistant struct { } @@ -7210,6 +7399,46 @@ func awsRestjson1_deserializeDocumentContentDataDetails(v **types.ContentDataDet return nil } +func awsRestjson1_deserializeDocumentContentFeedbackData(v *types.ContentFeedbackData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.ContentFeedbackData +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "generativeContentFeedbackData": + var mv types.GenerativeContentFeedbackData + destAddr := &mv + if err := awsRestjson1_deserializeDocumentGenerativeContentFeedbackData(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.ContentFeedbackDataMemberGenerativeContentFeedbackData{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + func awsRestjson1_deserializeDocumentContentMetadata(v *map[string]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7790,6 +8019,46 @@ func awsRestjson1_deserializeDocumentExternalSourceConfiguration(v **types.Exter return nil } +func awsRestjson1_deserializeDocumentGenerativeContentFeedbackData(v **types.GenerativeContentFeedbackData, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.GenerativeContentFeedbackData + if *v == nil { + sv = &types.GenerativeContentFeedbackData{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "relevance": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected Relevance to be of type string, got %T instead", value) + } + sv.Relevance = types.Relevance(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentGenerativeDataDetails(v **types.GenerativeDataDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/qconnect/doc.go b/service/qconnect/doc.go index 2a64deadb28..c055d9b6f37 100644 --- a/service/qconnect/doc.go +++ b/service/qconnect/doc.go @@ -3,14 +3,19 @@ // Package qconnect provides the API client, operations, and parameter types for // Amazon Q Connect. // -// Amazon Q in Connect is a generative AI customer service assistant. It is an -// LLM-enhanced evolution of Amazon Connect Wisdom that delivers real-time -// recommendations to help contact center agents resolve customer issues quickly -// and accurately. Amazon Q automatically detects customer intent during calls and -// chats using conversational analytics and natural language understanding (NLU). -// It then provides agents with immediate, real-time generative responses and -// suggested actions, and links to relevant documents and articles. Agents can also -// query Amazon Q directly using natural language or keywords to answer customer +// Powered by Amazon Bedrock: Amazon Web Services implements automated abuse +// detection (https://docs.aws.amazon.com/bedrock/latest/userguide/abuse-detection.html) +// . Because Amazon Q in Connect is built on Amazon Bedrock, users can take full +// advantage of the controls implemented in Amazon Bedrock to enforce safety, +// security, and the responsible use of artificial intelligence (AI). Amazon Q in +// Connect is a generative AI customer service assistant. It is an LLM-enhanced +// evolution of Amazon Connect Wisdom that delivers real-time recommendations to +// help contact center agents resolve customer issues quickly and accurately. +// Amazon Q automatically detects customer intent during calls and chats using +// conversational analytics and natural language understanding (NLU). It then +// provides agents with immediate, real-time generative responses and suggested +// actions, and links to relevant documents and articles. Agents can also query +// Amazon Q directly using natural language or keywords to answer customer // requests. Use the Amazon Q in Connect APIs to create an assistant and a // knowledge base, for example, or manage content by uploading custom files. For // more information, see Use Amazon Q in Connect for generative AI powered agent diff --git a/service/qconnect/generated.json b/service/qconnect/generated.json index d656aed7777..8fce8e56dc2 100644 --- a/service/qconnect/generated.json +++ b/service/qconnect/generated.json @@ -38,6 +38,7 @@ "api_op_ListQuickResponses.go", "api_op_ListTagsForResource.go", "api_op_NotifyRecommendationsReceived.go", + "api_op_PutFeedback.go", "api_op_QueryAssistant.go", "api_op_RemoveKnowledgeBaseTemplateUri.go", "api_op_SearchContent.go", diff --git a/service/qconnect/go.mod b/service/qconnect/go.mod index c299cbb6e60..00f05171070 100644 --- a/service/qconnect/go.mod +++ b/service/qconnect/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qconnect go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qconnect/go.sum b/service/qconnect/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/qconnect/go.sum +++ b/service/qconnect/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qconnect/go_module_metadata.go b/service/qconnect/go_module_metadata.go index 18493cf29f9..b6a5c4e5411 100644 --- a/service/qconnect/go_module_metadata.go +++ b/service/qconnect/go_module_metadata.go @@ -3,4 +3,4 @@ package qconnect // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.2.0" diff --git a/service/qconnect/options.go b/service/qconnect/options.go index 15e94a27b4d..c6dfe4f788a 100644 --- a/service/qconnect/options.go +++ b/service/qconnect/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qconnect/serializers.go b/service/qconnect/serializers.go index d6b44187ae6..34681eb067d 100644 --- a/service/qconnect/serializers.go +++ b/service/qconnect/serializers.go @@ -2382,6 +2382,106 @@ func awsRestjson1_serializeOpDocumentNotifyRecommendationsReceivedInput(v *Notif return nil } +type awsRestjson1_serializeOpPutFeedback struct { +} + +func (*awsRestjson1_serializeOpPutFeedback) ID() string { + return "OperationSerializer" +} + +func (m *awsRestjson1_serializeOpPutFeedback) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PutFeedbackInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + opPath, opQuery := httpbinding.SplitURI("/assistants/{assistantId}/feedback") + request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath) + request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery) + request.Method = "PUT" + var restEncoder *httpbinding.Encoder + if request.URL.RawPath == "" { + restEncoder, err = httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + } else { + request.URL.RawPath = smithyhttp.JoinPath(request.URL.RawPath, opPath) + restEncoder, err = httpbinding.NewEncoderWithRawPath(request.URL.Path, request.URL.RawPath, request.URL.RawQuery, request.Header) + } + + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if err := awsRestjson1_serializeOpHttpBindingsPutFeedbackInput(input, restEncoder); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + restEncoder.SetHeader("Content-Type").String("application/json") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsRestjson1_serializeOpDocumentPutFeedbackInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = restEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} +func awsRestjson1_serializeOpHttpBindingsPutFeedbackInput(v *PutFeedbackInput, encoder *httpbinding.Encoder) error { + if v == nil { + return fmt.Errorf("unsupported serialization of nil %T", v) + } + + if v.AssistantId == nil || len(*v.AssistantId) == 0 { + return &smithy.SerializationError{Err: fmt.Errorf("input member assistantId must not be empty")} + } + if v.AssistantId != nil { + if err := encoder.SetURI("assistantId").String(*v.AssistantId); err != nil { + return err + } + } + + return nil +} + +func awsRestjson1_serializeOpDocumentPutFeedbackInput(v *PutFeedbackInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContentFeedback != nil { + ok := object.Key("contentFeedback") + if err := awsRestjson1_serializeDocumentContentFeedbackData(v.ContentFeedback, ok); err != nil { + return err + } + } + + if v.TargetId != nil { + ok := object.Key("targetId") + ok.String(*v.TargetId) + } + + if len(v.TargetType) > 0 { + ok := object.Key("targetType") + ok.String(string(v.TargetType)) + } + + return nil +} + type awsRestjson1_serializeOpQueryAssistant struct { } @@ -3681,6 +3781,24 @@ func awsRestjson1_serializeDocumentContactAttributes(v map[string]string, value return nil } +func awsRestjson1_serializeDocumentContentFeedbackData(v types.ContentFeedbackData, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.ContentFeedbackDataMemberGenerativeContentFeedbackData: + av := object.Key("generativeContentFeedbackData") + if err := awsRestjson1_serializeDocumentGenerativeContentFeedbackData(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + func awsRestjson1_serializeDocumentContentMetadata(v map[string]string, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3746,6 +3864,18 @@ func awsRestjson1_serializeDocumentFilterList(v []types.Filter, value smithyjson return nil } +func awsRestjson1_serializeDocumentGenerativeContentFeedbackData(v *types.GenerativeContentFeedbackData, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.Relevance) > 0 { + ok := object.Key("relevance") + ok.String(string(v.Relevance)) + } + + return nil +} + func awsRestjson1_serializeDocumentGroupingConfiguration(v *types.GroupingConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/qconnect/types/enums.go b/service/qconnect/types/enums.go index d2d7bd290e1..f76c6637d29 100644 --- a/service/qconnect/types/enums.go +++ b/service/qconnect/types/enums.go @@ -455,6 +455,24 @@ func (RecommendationType) Values() []RecommendationType { } } +type Relevance string + +// Enum values for Relevance +const ( + RelevanceHelpful Relevance = "HELPFUL" + RelevanceNotHelpful Relevance = "NOT_HELPFUL" +) + +// Values returns all known values for Relevance. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (Relevance) Values() []Relevance { + return []Relevance{ + "HELPFUL", + "NOT_HELPFUL", + } +} + type RelevanceLevel string // Enum values for RelevanceLevel @@ -490,3 +508,21 @@ func (SourceContentType) Values() []SourceContentType { "KNOWLEDGE_CONTENT", } } + +type TargetType string + +// Enum values for TargetType +const ( + TargetTypeRecommendation TargetType = "RECOMMENDATION" + TargetTypeResult TargetType = "RESULT" +) + +// Values returns all known values for TargetType. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (TargetType) Values() []TargetType { + return []TargetType{ + "RECOMMENDATION", + "RESULT", + } +} diff --git a/service/qconnect/types/types.go b/service/qconnect/types/types.go index 1b6ee013778..45222e0347c 100644 --- a/service/qconnect/types/types.go +++ b/service/qconnect/types/types.go @@ -172,7 +172,7 @@ type AssistantAssociationSummary struct { noSmithyDocumentSerde } -// The capability configuration for a Amazon Q assistant. +// The capability configuration for an Amazon Q assistant. type AssistantCapabilityConfiguration struct { // The type of Amazon Q assistant capability. @@ -417,6 +417,24 @@ type ContentDataDetails struct { noSmithyDocumentSerde } +// Information about the feedback. +// +// The following types satisfy this interface: +// +// ContentFeedbackDataMemberGenerativeContentFeedbackData +type ContentFeedbackData interface { + isContentFeedbackData() +} + +// Information about the feedback for a generative target type. +type ContentFeedbackDataMemberGenerativeContentFeedbackData struct { + Value GenerativeContentFeedbackData + + noSmithyDocumentSerde +} + +func (*ContentFeedbackDataMemberGenerativeContentFeedbackData) isContentFeedbackData() {} + // Reference information about the content. type ContentReference struct { @@ -647,6 +665,17 @@ type Filter struct { noSmithyDocumentSerde } +// The feedback information for a generative target type. +type GenerativeContentFeedbackData struct { + + // The relevance of the feedback. + // + // This member is required. + Relevance Relevance + + noSmithyDocumentSerde +} + // Details about generative data. type GenerativeDataDetails struct { @@ -1735,6 +1764,7 @@ type UnknownUnionMember struct { func (*UnknownUnionMember) isAssistantAssociationInputData() {} func (*UnknownUnionMember) isAssistantAssociationOutputData() {} func (*UnknownUnionMember) isConfiguration() {} +func (*UnknownUnionMember) isContentFeedbackData() {} func (*UnknownUnionMember) isDataDetails() {} func (*UnknownUnionMember) isDataReference() {} func (*UnknownUnionMember) isQueryCondition() {} diff --git a/service/qconnect/types/types_exported_test.go b/service/qconnect/types/types_exported_test.go index bf9008898bc..8b6a01e0b79 100644 --- a/service/qconnect/types/types_exported_test.go +++ b/service/qconnect/types/types_exported_test.go @@ -61,6 +61,24 @@ func ExampleConfiguration_outputUsage() { var _ *types.ConnectConfiguration +func ExampleContentFeedbackData_outputUsage() { + var union types.ContentFeedbackData + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ContentFeedbackDataMemberGenerativeContentFeedbackData: + _ = v.Value // Value is types.GenerativeContentFeedbackData + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.GenerativeContentFeedbackData + func ExampleDataDetails_outputUsage() { var union types.DataDetails // type switches can be used to check the union value diff --git a/service/qconnect/validators.go b/service/qconnect/validators.go index 5a17a6ca89a..1e7458ede7d 100644 --- a/service/qconnect/validators.go +++ b/service/qconnect/validators.go @@ -550,6 +550,26 @@ func (m *validateOpNotifyRecommendationsReceived) HandleInitialize(ctx context.C return next.HandleInitialize(ctx, in) } +type validateOpPutFeedback struct { +} + +func (*validateOpPutFeedback) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPutFeedback) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PutFeedbackInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPutFeedbackInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpQueryAssistant struct { } @@ -898,6 +918,10 @@ func addOpNotifyRecommendationsReceivedValidationMiddleware(stack *middleware.St return stack.Initialize.Add(&validateOpNotifyRecommendationsReceived{}, middleware.After) } +func addOpPutFeedbackValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPutFeedback{}, middleware.After) +} + func addOpQueryAssistantValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpQueryAssistant{}, middleware.After) } @@ -961,6 +985,25 @@ func validateAppIntegrationsConfiguration(v *types.AppIntegrationsConfiguration) } } +func validateContentFeedbackData(v types.ContentFeedbackData) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ContentFeedbackData"} + switch uv := v.(type) { + case *types.ContentFeedbackDataMemberGenerativeContentFeedbackData: + if err := validateGenerativeContentFeedbackData(&uv.Value); err != nil { + invalidParams.AddNested("[generativeContentFeedbackData]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateExternalSourceConfiguration(v *types.ExternalSourceConfiguration) error { if v == nil { return nil @@ -1017,6 +1060,21 @@ func validateFilterList(v []types.Filter) error { } } +func validateGenerativeContentFeedbackData(v *types.GenerativeContentFeedbackData) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GenerativeContentFeedbackData"} + if len(v.Relevance) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Relevance")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateQueryCondition(v types.QueryCondition) error { if v == nil { return nil @@ -1703,6 +1761,34 @@ func validateOpNotifyRecommendationsReceivedInput(v *NotifyRecommendationsReceiv } } +func validateOpPutFeedbackInput(v *PutFeedbackInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PutFeedbackInput"} + if v.AssistantId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssistantId")) + } + if v.TargetId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetId")) + } + if len(v.TargetType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("TargetType")) + } + if v.ContentFeedback == nil { + invalidParams.Add(smithy.NewErrParamRequired("ContentFeedback")) + } else if v.ContentFeedback != nil { + if err := validateContentFeedbackData(v.ContentFeedback); err != nil { + invalidParams.AddNested("ContentFeedback", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpQueryAssistantInput(v *QueryAssistantInput) error { if v == nil { return nil diff --git a/service/qldb/CHANGELOG.md b/service/qldb/CHANGELOG.md index 1109f3fe83d..e09f69ecf57 100644 --- a/service/qldb/CHANGELOG.md +++ b/service/qldb/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/qldb/api_client.go b/service/qldb/api_client.go index 4c0fba1659f..501a8dc9c3e 100644 --- a/service/qldb/api_client.go +++ b/service/qldb/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/qldb/auth.go b/service/qldb/auth.go index 7fdd333c35e..40bfc73fab7 100644 --- a/service/qldb/auth.go +++ b/service/qldb/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/qldb/go.mod b/service/qldb/go.mod index 91ab1720dea..34764914097 100644 --- a/service/qldb/go.mod +++ b/service/qldb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qldb go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qldb/go.sum b/service/qldb/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/qldb/go.sum +++ b/service/qldb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qldb/go_module_metadata.go b/service/qldb/go_module_metadata.go index 6f5f696c6fc..53f9330794d 100644 --- a/service/qldb/go_module_metadata.go +++ b/service/qldb/go_module_metadata.go @@ -3,4 +3,4 @@ package qldb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/qldb/options.go b/service/qldb/options.go index c99b81e7ca8..4d55212e48e 100644 --- a/service/qldb/options.go +++ b/service/qldb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/qldbsession/CHANGELOG.md b/service/qldbsession/CHANGELOG.md index 47067cf50d1..b37ec75180f 100644 --- a/service/qldbsession/CHANGELOG.md +++ b/service/qldbsession/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/qldbsession/api_client.go b/service/qldbsession/api_client.go index 346fc3fc85d..ec6a0b20c20 100644 --- a/service/qldbsession/api_client.go +++ b/service/qldbsession/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/qldbsession/auth.go b/service/qldbsession/auth.go index cda719c198d..562a2bbe0d1 100644 --- a/service/qldbsession/auth.go +++ b/service/qldbsession/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/qldbsession/go.mod b/service/qldbsession/go.mod index fdd57f50c9b..8c62733114b 100644 --- a/service/qldbsession/go.mod +++ b/service/qldbsession/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/qldbsession go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/qldbsession/go.sum b/service/qldbsession/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/qldbsession/go.sum +++ b/service/qldbsession/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/qldbsession/go_module_metadata.go b/service/qldbsession/go_module_metadata.go index 59bf7b850df..c4dfc416da9 100644 --- a/service/qldbsession/go_module_metadata.go +++ b/service/qldbsession/go_module_metadata.go @@ -3,4 +3,4 @@ package qldbsession // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/qldbsession/options.go b/service/qldbsession/options.go index 9e9e36e45a8..4e096d3c0ca 100644 --- a/service/qldbsession/options.go +++ b/service/qldbsession/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/quicksight/CHANGELOG.md b/service/quicksight/CHANGELOG.md index aa12762cdbe..9ee2f4c2aa4 100644 --- a/service/quicksight/CHANGELOG.md +++ b/service/quicksight/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.53.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.53.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.53.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/quicksight/api_client.go b/service/quicksight/api_client.go index 193e102fe40..7147e604f0c 100644 --- a/service/quicksight/api_client.go +++ b/service/quicksight/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/quicksight/auth.go b/service/quicksight/auth.go index 2bafa3e496e..6ba47d7b339 100644 --- a/service/quicksight/auth.go +++ b/service/quicksight/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/quicksight/go.mod b/service/quicksight/go.mod index 1cbd5bf0ded..7aede61452a 100644 --- a/service/quicksight/go.mod +++ b/service/quicksight/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/quicksight go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/quicksight/go.sum b/service/quicksight/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/quicksight/go.sum +++ b/service/quicksight/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/quicksight/go_module_metadata.go b/service/quicksight/go_module_metadata.go index a6c15d44705..1a70066978f 100644 --- a/service/quicksight/go_module_metadata.go +++ b/service/quicksight/go_module_metadata.go @@ -3,4 +3,4 @@ package quicksight // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.53.0" +const goModuleVersion = "1.53.2" diff --git a/service/quicksight/options.go b/service/quicksight/options.go index 75bae595244..e1a51552b3c 100644 --- a/service/quicksight/options.go +++ b/service/quicksight/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ram/CHANGELOG.md b/service/ram/CHANGELOG.md index e74e982f1c9..ab686a1934f 100644 --- a/service/ram/CHANGELOG.md +++ b/service/ram/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ram/api_client.go b/service/ram/api_client.go index 6f471e6f0bc..fefa5d394e2 100644 --- a/service/ram/api_client.go +++ b/service/ram/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ram/auth.go b/service/ram/auth.go index 28ba0de371f..5e11f29efcc 100644 --- a/service/ram/auth.go +++ b/service/ram/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ram/go.mod b/service/ram/go.mod index 09c3beb57de..08097261e11 100644 --- a/service/ram/go.mod +++ b/service/ram/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ram go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ram/go.sum b/service/ram/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ram/go.sum +++ b/service/ram/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ram/go_module_metadata.go b/service/ram/go_module_metadata.go index 93e6b6b663b..2f4b696e104 100644 --- a/service/ram/go_module_metadata.go +++ b/service/ram/go_module_metadata.go @@ -3,4 +3,4 @@ package ram // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/ram/options.go b/service/ram/options.go index a650a6e03fe..734335bbf51 100644 --- a/service/ram/options.go +++ b/service/ram/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rbin/CHANGELOG.md b/service/rbin/CHANGELOG.md index 9c0f31bb832..2766606490f 100644 --- a/service/rbin/CHANGELOG.md +++ b/service/rbin/CHANGELOG.md @@ -1,3 +1,14 @@ +# v1.14.0 (2023-12-01) + +* **Feature**: Added resource identifier in the output and updated error handling. +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.13.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.13.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/rbin/api_client.go b/service/rbin/api_client.go index 25ac4bd4eab..55d987ade37 100644 --- a/service/rbin/api_client.go +++ b/service/rbin/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/rbin/api_op_CreateRule.go b/service/rbin/api_op_CreateRule.go index 47c76eed801..b3cf57ad896 100644 --- a/service/rbin/api_op_CreateRule.go +++ b/service/rbin/api_op_CreateRule.go @@ -104,6 +104,9 @@ type CreateRuleOutput struct { // retain resources. RetentionPeriod *types.RetentionPeriod + // The Amazon Resource Name (ARN) of the retention rule. + RuleArn *string + // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status types.RuleStatus diff --git a/service/rbin/api_op_GetRule.go b/service/rbin/api_op_GetRule.go index e33d3a92beb..a112366b557 100644 --- a/service/rbin/api_op_GetRule.go +++ b/service/rbin/api_op_GetRule.go @@ -78,6 +78,9 @@ type GetRuleOutput struct { // retain resources. RetentionPeriod *types.RetentionPeriod + // The Amazon Resource Name (ARN) of the retention rule. + RuleArn *string + // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status types.RuleStatus diff --git a/service/rbin/api_op_LockRule.go b/service/rbin/api_op_LockRule.go index 5e4070d76bc..433668754ab 100644 --- a/service/rbin/api_op_LockRule.go +++ b/service/rbin/api_op_LockRule.go @@ -77,6 +77,9 @@ type LockRuleOutput struct { // retain resources. RetentionPeriod *types.RetentionPeriod + // The Amazon Resource Name (ARN) of the retention rule. + RuleArn *string + // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status types.RuleStatus diff --git a/service/rbin/api_op_UnlockRule.go b/service/rbin/api_op_UnlockRule.go index e3f752f43d3..3d03d240027 100644 --- a/service/rbin/api_op_UnlockRule.go +++ b/service/rbin/api_op_UnlockRule.go @@ -79,6 +79,9 @@ type UnlockRuleOutput struct { // retain resources. RetentionPeriod *types.RetentionPeriod + // The Amazon Resource Name (ARN) of the retention rule. + RuleArn *string + // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status types.RuleStatus diff --git a/service/rbin/api_op_UpdateRule.go b/service/rbin/api_op_UpdateRule.go index 3df2ffb5b21..8d0357ff5b1 100644 --- a/service/rbin/api_op_UpdateRule.go +++ b/service/rbin/api_op_UpdateRule.go @@ -103,6 +103,9 @@ type UpdateRuleOutput struct { // retain resources. RetentionPeriod *types.RetentionPeriod + // The Amazon Resource Name (ARN) of the retention rule. + RuleArn *string + // The state of the retention rule. Only retention rules that are in the available // state retain resources. Status types.RuleStatus diff --git a/service/rbin/auth.go b/service/rbin/auth.go index 33a9de75ce0..850abb99c4a 100644 --- a/service/rbin/auth.go +++ b/service/rbin/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/rbin/deserializers.go b/service/rbin/deserializers.go index a3ed6b7a868..bb3def69c87 100644 --- a/service/rbin/deserializers.go +++ b/service/rbin/deserializers.go @@ -209,6 +209,15 @@ func awsRestjson1_deserializeOpDocumentCreateRuleOutput(v **CreateRuleOutput, va return err } + case "RuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) + } + sv.RuleArn = ptr.String(jtv) + } + case "Status": if value != nil { jtv, ok := value.(string) @@ -530,6 +539,15 @@ func awsRestjson1_deserializeOpDocumentGetRuleOutput(v **GetRuleOutput, value in return err } + case "RuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) + } + sv.RuleArn = ptr.String(jtv) + } + case "Status": if value != nil { jtv, ok := value.(string) @@ -1053,6 +1071,15 @@ func awsRestjson1_deserializeOpDocumentLockRuleOutput(v **LockRuleOutput, value return err } + case "RuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) + } + sv.RuleArn = ptr.String(jtv) + } + case "Status": if value != nil { jtv, ok := value.(string) @@ -1372,6 +1399,15 @@ func awsRestjson1_deserializeOpDocumentUnlockRuleOutput(v **UnlockRuleOutput, va return err } + case "RuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) + } + sv.RuleArn = ptr.String(jtv) + } + case "Status": if value != nil { jtv, ok := value.(string) @@ -1586,6 +1622,9 @@ func awsRestjson1_deserializeOpErrorUpdateRule(response *smithyhttp.Response, me case strings.EqualFold("ResourceNotFoundException", errorCode): return awsRestjson1_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsRestjson1_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsRestjson1_deserializeErrorValidationException(response, errorBody) @@ -1683,6 +1722,15 @@ func awsRestjson1_deserializeOpDocumentUpdateRuleOutput(v **UpdateRuleOutput, va return err } + case "RuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) + } + sv.RuleArn = ptr.String(jtv) + } + case "Status": if value != nil { jtv, ok := value.(string) @@ -2245,6 +2293,15 @@ func awsRestjson1_deserializeDocumentRuleSummary(v **types.RuleSummary, value in return err } + case "RuleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected RuleArn to be of type string, got %T instead", value) + } + sv.RuleArn = ptr.String(jtv) + } + default: _, _ = key, value diff --git a/service/rbin/doc.go b/service/rbin/doc.go index b58baec4bd8..27b8999eaaf 100644 --- a/service/rbin/doc.go +++ b/service/rbin/doc.go @@ -14,6 +14,6 @@ // way you use any other resource of that type in your account. If the retention // period expires and the resource is not restored, the resource is permanently // deleted from the Recycle Bin and is no longer available for recovery. For more -// information about Recycle Bin, see Recycle Bin (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-recycle-bin.html) +// information about Recycle Bin, see Recycle Bin (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recycle-bin.html) // in the Amazon Elastic Compute Cloud User Guide. package rbin diff --git a/service/rbin/endpoints.go b/service/rbin/endpoints.go index 6b2a7cfc26f..98899eb1d78 100644 --- a/service/rbin/endpoints.go +++ b/service/rbin/endpoints.go @@ -366,7 +366,7 @@ func (r *resolver) ResolveEndpoint( } } if _UseFIPS == true { - if true == _PartitionResult.SupportsFIPS { + if _PartitionResult.SupportsFIPS == true { uriString := func() string { var out strings.Builder out.WriteString("https://rbin-fips.") diff --git a/service/rbin/go.mod b/service/rbin/go.mod index 015f9f8a9f9..310c615b076 100644 --- a/service/rbin/go.mod +++ b/service/rbin/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rbin go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rbin/go.sum b/service/rbin/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/rbin/go.sum +++ b/service/rbin/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rbin/go_module_metadata.go b/service/rbin/go_module_metadata.go index bbf52e68520..7d2ee346c21 100644 --- a/service/rbin/go_module_metadata.go +++ b/service/rbin/go_module_metadata.go @@ -3,4 +3,4 @@ package rbin // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.13.0" +const goModuleVersion = "1.14.0" diff --git a/service/rbin/options.go b/service/rbin/options.go index 8622b6c1c48..b57ab844be2 100644 --- a/service/rbin/options.go +++ b/service/rbin/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rbin/types/types.go b/service/rbin/types/types.go index 21cc7c20a4a..4dc9f792952 100644 --- a/service/rbin/types/types.go +++ b/service/rbin/types/types.go @@ -76,6 +76,9 @@ type RuleSummary struct { // retain resources. RetentionPeriod *RetentionPeriod + // The Amazon Resource Name (ARN) of the retention rule. + RuleArn *string + noSmithyDocumentSerde } diff --git a/service/rds/CHANGELOG.md b/service/rds/CHANGELOG.md index 92b4607be0d..9023cc390ba 100644 --- a/service/rds/CHANGELOG.md +++ b/service/rds/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.64.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.64.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.64.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/rds/api_client.go b/service/rds/api_client.go index aa637de8907..d941aeaba28 100644 --- a/service/rds/api_client.go +++ b/service/rds/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/rds/auth.go b/service/rds/auth.go index d6e0b49afa4..7e47a8e4f22 100644 --- a/service/rds/auth.go +++ b/service/rds/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/rds/go.mod b/service/rds/go.mod index 54e4676fbf3..5f589d9a310 100644 --- a/service/rds/go.mod +++ b/service/rds/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/rds go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rds/go.sum b/service/rds/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/rds/go.sum +++ b/service/rds/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/rds/go_module_metadata.go b/service/rds/go_module_metadata.go index d69b867ea94..d6022d31465 100644 --- a/service/rds/go_module_metadata.go +++ b/service/rds/go_module_metadata.go @@ -3,4 +3,4 @@ package rds // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.64.0" +const goModuleVersion = "1.64.2" diff --git a/service/rds/options.go b/service/rds/options.go index 497e9323126..efbcab1d673 100644 --- a/service/rds/options.go +++ b/service/rds/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rdsdata/CHANGELOG.md b/service/rdsdata/CHANGELOG.md index 86f78bb1881..7406c45feb0 100644 --- a/service/rdsdata/CHANGELOG.md +++ b/service/rdsdata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/rdsdata/api_client.go b/service/rdsdata/api_client.go index e39757e4530..148a41b8083 100644 --- a/service/rdsdata/api_client.go +++ b/service/rdsdata/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/rdsdata/auth.go b/service/rdsdata/auth.go index 118a81b9c79..5ea5c683414 100644 --- a/service/rdsdata/auth.go +++ b/service/rdsdata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/rdsdata/go.mod b/service/rdsdata/go.mod index 0eda6010f88..c6b2dc0ddc4 100644 --- a/service/rdsdata/go.mod +++ b/service/rdsdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rdsdata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rdsdata/go.sum b/service/rdsdata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/rdsdata/go.sum +++ b/service/rdsdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rdsdata/go_module_metadata.go b/service/rdsdata/go_module_metadata.go index 1125b74e5e3..280011ee565 100644 --- a/service/rdsdata/go_module_metadata.go +++ b/service/rdsdata/go_module_metadata.go @@ -3,4 +3,4 @@ package rdsdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/rdsdata/options.go b/service/rdsdata/options.go index 3539c14e1b2..899c68fc6a7 100644 --- a/service/rdsdata/options.go +++ b/service/rdsdata/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/redshift/CHANGELOG.md b/service/redshift/CHANGELOG.md index a515cb00573..af04773b2fa 100644 --- a/service/redshift/CHANGELOG.md +++ b/service/redshift/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.39.3 (2023-12-04) + +* No change notes available for this release. + +# v1.39.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.39.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/redshift/api_client.go b/service/redshift/api_client.go index 60508def19a..ba26c75cd3d 100644 --- a/service/redshift/api_client.go +++ b/service/redshift/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/redshift/auth.go b/service/redshift/auth.go index 32753152d33..4341e17cde2 100644 --- a/service/redshift/auth.go +++ b/service/redshift/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/redshift/go.mod b/service/redshift/go.mod index fe2fbe0b611..1a50a629bb2 100644 --- a/service/redshift/go.mod +++ b/service/redshift/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshift go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/redshift/go.sum b/service/redshift/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/redshift/go.sum +++ b/service/redshift/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/redshift/go_module_metadata.go b/service/redshift/go_module_metadata.go index df3db71e6e2..6395d2645e4 100644 --- a/service/redshift/go_module_metadata.go +++ b/service/redshift/go_module_metadata.go @@ -3,4 +3,4 @@ package redshift // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.0" +const goModuleVersion = "1.39.3" diff --git a/service/redshift/internal/endpoints/endpoints.go b/service/redshift/internal/endpoints/endpoints.go index b781b638695..39dc830376a 100644 --- a/service/redshift/internal/endpoints/endpoints.go +++ b/service/redshift/internal/endpoints/endpoints.go @@ -364,12 +364,42 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIso, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "fips-us-iso-east-1", + }: endpoints.Endpoint{ + Hostname: "redshift-fips.us-iso-east-1.c2s.ic.gov", + CredentialScope: endpoints.CredentialScope{ + Region: "us-iso-east-1", + }, + Deprecated: aws.TrueTernary, + }, + endpoints.EndpointKey{ + Region: "fips-us-iso-west-1", + }: endpoints.Endpoint{ + Hostname: "redshift-fips.us-iso-west-1.c2s.ic.gov", + CredentialScope: endpoints.CredentialScope{ + Region: "us-iso-west-1", + }, + Deprecated: aws.TrueTernary, + }, endpoints.EndpointKey{ Region: "us-iso-east-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-iso-east-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-fips.us-iso-east-1.c2s.ic.gov", + }, endpoints.EndpointKey{ Region: "us-iso-west-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-iso-west-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-fips.us-iso-west-1.c2s.ic.gov", + }, }, }, { @@ -393,9 +423,24 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "fips-us-isob-east-1", + }: endpoints.Endpoint{ + Hostname: "redshift-fips.us-isob-east-1.sc2s.sgov.gov", + CredentialScope: endpoints.CredentialScope{ + Region: "us-isob-east-1", + }, + Deprecated: aws.TrueTernary, + }, endpoints.EndpointKey{ Region: "us-isob-east-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-isob-east-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-fips.us-isob-east-1.sc2s.sgov.gov", + }, }, }, { diff --git a/service/redshift/options.go b/service/redshift/options.go index 79697f717d1..b5a923af944 100644 --- a/service/redshift/options.go +++ b/service/redshift/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/redshiftdata/CHANGELOG.md b/service/redshiftdata/CHANGELOG.md index 1a3a5b83846..1148087bd52 100644 --- a/service/redshiftdata/CHANGELOG.md +++ b/service/redshiftdata/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/redshiftdata/api_client.go b/service/redshiftdata/api_client.go index 35f251341a1..d8ea5600d53 100644 --- a/service/redshiftdata/api_client.go +++ b/service/redshiftdata/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/redshiftdata/auth.go b/service/redshiftdata/auth.go index eae88678ad4..3a73545719f 100644 --- a/service/redshiftdata/auth.go +++ b/service/redshiftdata/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/redshiftdata/go.mod b/service/redshiftdata/go.mod index 6690190f5c2..0c49ee0e078 100644 --- a/service/redshiftdata/go.mod +++ b/service/redshiftdata/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshiftdata go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/redshiftdata/go.sum b/service/redshiftdata/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/redshiftdata/go.sum +++ b/service/redshiftdata/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshiftdata/go_module_metadata.go b/service/redshiftdata/go_module_metadata.go index a5ac807047a..4332c44e746 100644 --- a/service/redshiftdata/go_module_metadata.go +++ b/service/redshiftdata/go_module_metadata.go @@ -3,4 +3,4 @@ package redshiftdata // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/redshiftdata/options.go b/service/redshiftdata/options.go index 5408e7eb4a1..02b3ceaeb5c 100644 --- a/service/redshiftdata/options.go +++ b/service/redshiftdata/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/redshiftserverless/CHANGELOG.md b/service/redshiftserverless/CHANGELOG.md index 80388b1c192..8028e701e46 100644 --- a/service/redshiftserverless/CHANGELOG.md +++ b/service/redshiftserverless/CHANGELOG.md @@ -1,3 +1,14 @@ +# v1.15.1 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.0 (2023-11-30) + +* **Feature**: This release adds the following support for Amazon Redshift Serverless: 1) cross-account cross-VPCs, 2) copying snapshots across Regions, 3) scheduling snapshot creation, and 4) restoring tables from a recovery point. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/redshiftserverless/api_client.go b/service/redshiftserverless/api_client.go index 76ee7e9e6d1..1a63efc08b4 100644 --- a/service/redshiftserverless/api_client.go +++ b/service/redshiftserverless/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/redshiftserverless/api_op_CreateEndpointAccess.go b/service/redshiftserverless/api_op_CreateEndpointAccess.go index 0f6df981e28..4bc8639400d 100644 --- a/service/redshiftserverless/api_op_CreateEndpointAccess.go +++ b/service/redshiftserverless/api_op_CreateEndpointAccess.go @@ -48,6 +48,10 @@ type CreateEndpointAccessInput struct { // This member is required. WorkgroupName *string + // The owner Amazon Web Services account for the Amazon Redshift Serverless + // workgroup. + OwnerAccount *string + // The unique identifiers of the security group that defines the ports, protocols, // and sources for inbound traffic that you are authorizing into your endpoint. VpcSecurityGroupIds []string diff --git a/service/redshiftserverless/api_op_CreateScheduledAction.go b/service/redshiftserverless/api_op_CreateScheduledAction.go new file mode 100644 index 00000000000..d4cd3e26580 --- /dev/null +++ b/service/redshiftserverless/api_op_CreateScheduledAction.go @@ -0,0 +1,194 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Creates a scheduled action. A scheduled action contains a schedule and an +// Amazon Redshift API action. For example, you can create a schedule of when to +// run the CreateSnapshot API operation. +func (c *Client) CreateScheduledAction(ctx context.Context, params *CreateScheduledActionInput, optFns ...func(*Options)) (*CreateScheduledActionOutput, error) { + if params == nil { + params = &CreateScheduledActionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateScheduledAction", params, optFns, c.addOperationCreateScheduledActionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateScheduledActionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateScheduledActionInput struct { + + // The name of the namespace for which to create a scheduled action. + // + // This member is required. + NamespaceName *string + + // The ARN of the IAM role to assume to run the scheduled action. This IAM role + // must have permission to run the Amazon Redshift Serverless API operation in the + // scheduled action. This IAM role must allow the Amazon Redshift scheduler to + // schedule creating snapshots. (Principal scheduler.redshift.amazonaws.com) to + // assume permissions on your behalf. For more information about the IAM role to + // use with the Amazon Redshift scheduler, see Using Identity-Based Policies for + // Amazon Redshift (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html) + // in the Amazon Redshift Cluster Management Guide + // + // This member is required. + RoleArn *string + + // The schedule for a one-time (at format) or recurring (cron format) scheduled + // action. Schedule invocations must be separated by at least one hour. Format of + // at expressions is " at(yyyy-mm-ddThh:mm:ss) ". For example, " + // at(2016-03-04T17:27:00) ". Format of cron expressions is " cron(Minutes Hours + // Day-of-month Month Day-of-week Year) ". For example, " cron(0 10 ? * MON *) ". + // For more information, see Cron Expressions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions) + // in the Amazon CloudWatch Events User Guide. + // + // This member is required. + Schedule types.Schedule + + // The name of the scheduled action. + // + // This member is required. + ScheduledActionName *string + + // A JSON format string of the Amazon Redshift Serverless API operation with input + // parameters. The following is an example of a target action. "{"CreateSnapshot": + // {"NamespaceName": "sampleNamespace","SnapshotName": "sampleSnapshot", + // "retentionPeriod": "1"}}" + // + // This member is required. + TargetAction types.TargetAction + + // Indicates whether the schedule is enabled. If false, the scheduled action does + // not trigger. For more information about state of the scheduled action, see + // ScheduledAction (https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_ScheduledAction.html) + // . + Enabled *bool + + // The end time in UTC when the schedule is no longer active. After this time, the + // scheduled action does not trigger. + EndTime *time.Time + + // The description of the scheduled action. + ScheduledActionDescription *string + + // The start time in UTC when the schedule is active. Before this time, the + // scheduled action does not trigger. + StartTime *time.Time + + noSmithyDocumentSerde +} + +type CreateScheduledActionOutput struct { + + // The returned ScheduledAction object that describes the properties of a + // scheduled action. + ScheduledAction *types.ScheduledActionResponse + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateScheduledActionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateScheduledAction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateScheduledAction{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateScheduledAction"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateScheduledActionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateScheduledAction(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateScheduledAction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateScheduledAction", + } +} diff --git a/service/redshiftserverless/api_op_CreateSnapshotCopyConfiguration.go b/service/redshiftserverless/api_op_CreateSnapshotCopyConfiguration.go new file mode 100644 index 00000000000..f040718b2eb --- /dev/null +++ b/service/redshiftserverless/api_op_CreateSnapshotCopyConfiguration.go @@ -0,0 +1,153 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a snapshot copy configuration that lets you copy snapshots to another +// Amazon Web Services Region. +func (c *Client) CreateSnapshotCopyConfiguration(ctx context.Context, params *CreateSnapshotCopyConfigurationInput, optFns ...func(*Options)) (*CreateSnapshotCopyConfigurationOutput, error) { + if params == nil { + params = &CreateSnapshotCopyConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateSnapshotCopyConfiguration", params, optFns, c.addOperationCreateSnapshotCopyConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateSnapshotCopyConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateSnapshotCopyConfigurationInput struct { + + // The destination Amazon Web Services Region that you want to copy snapshots to. + // + // This member is required. + DestinationRegion *string + + // The name of the namespace to copy snapshots from. + // + // This member is required. + NamespaceName *string + + // The KMS key to use to encrypt your snapshots in the destination Amazon Web + // Services Region. + DestinationKmsKeyId *string + + // The retention period of the snapshots that you copy to the destination Amazon + // Web Services Region. + SnapshotRetentionPeriod *int32 + + noSmithyDocumentSerde +} + +type CreateSnapshotCopyConfigurationOutput struct { + + // The snapshot copy configuration object that is returned. + // + // This member is required. + SnapshotCopyConfiguration *types.SnapshotCopyConfiguration + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateSnapshotCopyConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateSnapshotCopyConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateSnapshotCopyConfiguration{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateSnapshotCopyConfiguration"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpCreateSnapshotCopyConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateSnapshotCopyConfiguration(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateSnapshotCopyConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateSnapshotCopyConfiguration", + } +} diff --git a/service/redshiftserverless/api_op_CreateWorkgroup.go b/service/redshiftserverless/api_op_CreateWorkgroup.go index 24724db8f1d..c41b7d77d90 100644 --- a/service/redshiftserverless/api_op_CreateWorkgroup.go +++ b/service/redshiftserverless/api_op_CreateWorkgroup.go @@ -45,7 +45,7 @@ type CreateWorkgroupInput struct { BaseCapacity *int32 // An array of parameters to set for advanced control over a database. The options - // are auto_mv , datestyle , enable_case_sensitivity_identifier , + // are auto_mv , datestyle , enable_case_sensitive_identifier , // enable_user_activity_logging , query_group , search_path , and query monitoring // metrics that let you define performance boundaries. For more information about // query monitoring rules and available metrics, see Query monitoring metrics for diff --git a/service/redshiftserverless/api_op_DeleteScheduledAction.go b/service/redshiftserverless/api_op_DeleteScheduledAction.go new file mode 100644 index 00000000000..edd99598988 --- /dev/null +++ b/service/redshiftserverless/api_op_DeleteScheduledAction.go @@ -0,0 +1,137 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a scheduled action. +func (c *Client) DeleteScheduledAction(ctx context.Context, params *DeleteScheduledActionInput, optFns ...func(*Options)) (*DeleteScheduledActionOutput, error) { + if params == nil { + params = &DeleteScheduledActionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteScheduledAction", params, optFns, c.addOperationDeleteScheduledActionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteScheduledActionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteScheduledActionInput struct { + + // The name of the scheduled action to delete. + // + // This member is required. + ScheduledActionName *string + + noSmithyDocumentSerde +} + +type DeleteScheduledActionOutput struct { + + // The deleted scheduled action object. + ScheduledAction *types.ScheduledActionResponse + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteScheduledActionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteScheduledAction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteScheduledAction{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteScheduledAction"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteScheduledActionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteScheduledAction(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteScheduledAction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteScheduledAction", + } +} diff --git a/service/redshiftserverless/api_op_DeleteSnapshotCopyConfiguration.go b/service/redshiftserverless/api_op_DeleteSnapshotCopyConfiguration.go new file mode 100644 index 00000000000..7abddc48ec5 --- /dev/null +++ b/service/redshiftserverless/api_op_DeleteSnapshotCopyConfiguration.go @@ -0,0 +1,139 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Deletes a snapshot copy configuration +func (c *Client) DeleteSnapshotCopyConfiguration(ctx context.Context, params *DeleteSnapshotCopyConfigurationInput, optFns ...func(*Options)) (*DeleteSnapshotCopyConfigurationOutput, error) { + if params == nil { + params = &DeleteSnapshotCopyConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteSnapshotCopyConfiguration", params, optFns, c.addOperationDeleteSnapshotCopyConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteSnapshotCopyConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteSnapshotCopyConfigurationInput struct { + + // The ID of the snapshot copy configuration to delete. + // + // This member is required. + SnapshotCopyConfigurationId *string + + noSmithyDocumentSerde +} + +type DeleteSnapshotCopyConfigurationOutput struct { + + // The deleted snapshot copy configuration object. + // + // This member is required. + SnapshotCopyConfiguration *types.SnapshotCopyConfiguration + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteSnapshotCopyConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpDeleteSnapshotCopyConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpDeleteSnapshotCopyConfiguration{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteSnapshotCopyConfiguration"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpDeleteSnapshotCopyConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteSnapshotCopyConfiguration(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteSnapshotCopyConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteSnapshotCopyConfiguration", + } +} diff --git a/service/redshiftserverless/api_op_GetScheduledAction.go b/service/redshiftserverless/api_op_GetScheduledAction.go new file mode 100644 index 00000000000..89cb4120ddb --- /dev/null +++ b/service/redshiftserverless/api_op_GetScheduledAction.go @@ -0,0 +1,137 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns information about a scheduled action. +func (c *Client) GetScheduledAction(ctx context.Context, params *GetScheduledActionInput, optFns ...func(*Options)) (*GetScheduledActionOutput, error) { + if params == nil { + params = &GetScheduledActionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetScheduledAction", params, optFns, c.addOperationGetScheduledActionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetScheduledActionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetScheduledActionInput struct { + + // The name of the scheduled action. + // + // This member is required. + ScheduledActionName *string + + noSmithyDocumentSerde +} + +type GetScheduledActionOutput struct { + + // The returned scheduled action object. + ScheduledAction *types.ScheduledActionResponse + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationGetScheduledActionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpGetScheduledAction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpGetScheduledAction{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "GetScheduledAction"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpGetScheduledActionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetScheduledAction(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opGetScheduledAction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "GetScheduledAction", + } +} diff --git a/service/redshiftserverless/api_op_ListEndpointAccess.go b/service/redshiftserverless/api_op_ListEndpointAccess.go index bf3d1f1dd34..4288f1e1b97 100644 --- a/service/redshiftserverless/api_op_ListEndpointAccess.go +++ b/service/redshiftserverless/api_op_ListEndpointAccess.go @@ -39,6 +39,10 @@ type ListEndpointAccessInput struct { // which returns results in the next page. NextToken *string + // The owner Amazon Web Services account for the Amazon Redshift Serverless + // workgroup. + OwnerAccount *string + // The unique identifier of the virtual private cloud with access to Amazon // Redshift Serverless. VpcId *string diff --git a/service/redshiftserverless/api_op_ListScheduledActions.go b/service/redshiftserverless/api_op_ListScheduledActions.go new file mode 100644 index 00000000000..a226d574462 --- /dev/null +++ b/service/redshiftserverless/api_op_ListScheduledActions.go @@ -0,0 +1,238 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of scheduled actions. You can use the flags to filter the list +// of returned scheduled actions. +func (c *Client) ListScheduledActions(ctx context.Context, params *ListScheduledActionsInput, optFns ...func(*Options)) (*ListScheduledActionsOutput, error) { + if params == nil { + params = &ListScheduledActionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListScheduledActions", params, optFns, c.addOperationListScheduledActionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListScheduledActionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListScheduledActionsInput struct { + + // An optional parameter that specifies the maximum number of results to return. + // Use nextToken to display the next page of results. + MaxResults *int32 + + // The name of namespace associated with the scheduled action to retrieve. + NamespaceName *string + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again using + // the returned token to retrieve the next page. + NextToken *string + + noSmithyDocumentSerde +} + +type ListScheduledActionsOutput struct { + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again using + // the returned token to retrieve the next page. + NextToken *string + + // All of the returned scheduled action objects. + ScheduledActions []string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListScheduledActionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListScheduledActions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListScheduledActions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListScheduledActions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListScheduledActions(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListScheduledActionsAPIClient is a client that implements the +// ListScheduledActions operation. +type ListScheduledActionsAPIClient interface { + ListScheduledActions(context.Context, *ListScheduledActionsInput, ...func(*Options)) (*ListScheduledActionsOutput, error) +} + +var _ ListScheduledActionsAPIClient = (*Client)(nil) + +// ListScheduledActionsPaginatorOptions is the paginator options for +// ListScheduledActions +type ListScheduledActionsPaginatorOptions struct { + // An optional parameter that specifies the maximum number of results to return. + // Use nextToken to display the next page of results. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListScheduledActionsPaginator is a paginator for ListScheduledActions +type ListScheduledActionsPaginator struct { + options ListScheduledActionsPaginatorOptions + client ListScheduledActionsAPIClient + params *ListScheduledActionsInput + nextToken *string + firstPage bool +} + +// NewListScheduledActionsPaginator returns a new ListScheduledActionsPaginator +func NewListScheduledActionsPaginator(client ListScheduledActionsAPIClient, params *ListScheduledActionsInput, optFns ...func(*ListScheduledActionsPaginatorOptions)) *ListScheduledActionsPaginator { + if params == nil { + params = &ListScheduledActionsInput{} + } + + options := ListScheduledActionsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListScheduledActionsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListScheduledActionsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListScheduledActions page. +func (p *ListScheduledActionsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListScheduledActionsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListScheduledActions(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListScheduledActions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListScheduledActions", + } +} diff --git a/service/redshiftserverless/api_op_ListSnapshotCopyConfigurations.go b/service/redshiftserverless/api_op_ListSnapshotCopyConfigurations.go new file mode 100644 index 00000000000..1577a9c03cb --- /dev/null +++ b/service/redshiftserverless/api_op_ListSnapshotCopyConfigurations.go @@ -0,0 +1,242 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Returns a list of snapshot copy configurations. +func (c *Client) ListSnapshotCopyConfigurations(ctx context.Context, params *ListSnapshotCopyConfigurationsInput, optFns ...func(*Options)) (*ListSnapshotCopyConfigurationsOutput, error) { + if params == nil { + params = &ListSnapshotCopyConfigurationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ListSnapshotCopyConfigurations", params, optFns, c.addOperationListSnapshotCopyConfigurationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ListSnapshotCopyConfigurationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ListSnapshotCopyConfigurationsInput struct { + + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to display the next page of results. + MaxResults *int32 + + // The namespace from which to list all snapshot copy configurations. + NamespaceName *string + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again using + // the returned token to retrieve the next page. + NextToken *string + + noSmithyDocumentSerde +} + +type ListSnapshotCopyConfigurationsOutput struct { + + // All of the returned snapshot copy configurations. + // + // This member is required. + SnapshotCopyConfigurations []types.SnapshotCopyConfiguration + + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again using + // the returned token to retrieve the next page. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationListSnapshotCopyConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpListSnapshotCopyConfigurations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpListSnapshotCopyConfigurations{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ListSnapshotCopyConfigurations"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListSnapshotCopyConfigurations(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +// ListSnapshotCopyConfigurationsAPIClient is a client that implements the +// ListSnapshotCopyConfigurations operation. +type ListSnapshotCopyConfigurationsAPIClient interface { + ListSnapshotCopyConfigurations(context.Context, *ListSnapshotCopyConfigurationsInput, ...func(*Options)) (*ListSnapshotCopyConfigurationsOutput, error) +} + +var _ ListSnapshotCopyConfigurationsAPIClient = (*Client)(nil) + +// ListSnapshotCopyConfigurationsPaginatorOptions is the paginator options for +// ListSnapshotCopyConfigurations +type ListSnapshotCopyConfigurationsPaginatorOptions struct { + // An optional parameter that specifies the maximum number of results to return. + // You can use nextToken to display the next page of results. + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// ListSnapshotCopyConfigurationsPaginator is a paginator for +// ListSnapshotCopyConfigurations +type ListSnapshotCopyConfigurationsPaginator struct { + options ListSnapshotCopyConfigurationsPaginatorOptions + client ListSnapshotCopyConfigurationsAPIClient + params *ListSnapshotCopyConfigurationsInput + nextToken *string + firstPage bool +} + +// NewListSnapshotCopyConfigurationsPaginator returns a new +// ListSnapshotCopyConfigurationsPaginator +func NewListSnapshotCopyConfigurationsPaginator(client ListSnapshotCopyConfigurationsAPIClient, params *ListSnapshotCopyConfigurationsInput, optFns ...func(*ListSnapshotCopyConfigurationsPaginatorOptions)) *ListSnapshotCopyConfigurationsPaginator { + if params == nil { + params = &ListSnapshotCopyConfigurationsInput{} + } + + options := ListSnapshotCopyConfigurationsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &ListSnapshotCopyConfigurationsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *ListSnapshotCopyConfigurationsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next ListSnapshotCopyConfigurations page. +func (p *ListSnapshotCopyConfigurationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListSnapshotCopyConfigurationsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + result, err := p.client.ListSnapshotCopyConfigurations(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +func newServiceMetadataMiddleware_opListSnapshotCopyConfigurations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ListSnapshotCopyConfigurations", + } +} diff --git a/service/redshiftserverless/api_op_ListWorkgroups.go b/service/redshiftserverless/api_op_ListWorkgroups.go index d533d24bfea..a7729b55621 100644 --- a/service/redshiftserverless/api_op_ListWorkgroups.go +++ b/service/redshiftserverless/api_op_ListWorkgroups.go @@ -39,6 +39,10 @@ type ListWorkgroupsInput struct { // results in the next page. NextToken *string + // The owner Amazon Web Services account for the Amazon Redshift Serverless + // workgroup. + OwnerAccount *string + noSmithyDocumentSerde } diff --git a/service/redshiftserverless/api_op_RestoreTableFromRecoveryPoint.go b/service/redshiftserverless/api_op_RestoreTableFromRecoveryPoint.go new file mode 100644 index 00000000000..3c673f6a0d6 --- /dev/null +++ b/service/redshiftserverless/api_op_RestoreTableFromRecoveryPoint.go @@ -0,0 +1,178 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Restores a table from a recovery point to your Amazon Redshift Serverless +// instance. You can't use this operation to restore tables with interleaved sort +// keys. +func (c *Client) RestoreTableFromRecoveryPoint(ctx context.Context, params *RestoreTableFromRecoveryPointInput, optFns ...func(*Options)) (*RestoreTableFromRecoveryPointOutput, error) { + if params == nil { + params = &RestoreTableFromRecoveryPointInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "RestoreTableFromRecoveryPoint", params, optFns, c.addOperationRestoreTableFromRecoveryPointMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*RestoreTableFromRecoveryPointOutput) + out.ResultMetadata = metadata + return out, nil +} + +type RestoreTableFromRecoveryPointInput struct { + + // Namespace of the recovery point to restore from. + // + // This member is required. + NamespaceName *string + + // The name of the table to create from the restore operation. + // + // This member is required. + NewTableName *string + + // The ID of the recovery point to restore the table from. + // + // This member is required. + RecoveryPointId *string + + // The name of the source database that contains the table being restored. + // + // This member is required. + SourceDatabaseName *string + + // The name of the source table being restored. + // + // This member is required. + SourceTableName *string + + // The workgroup to restore the table to. + // + // This member is required. + WorkgroupName *string + + // Indicates whether name identifiers for database, schema, and table are case + // sensitive. If true, the names are case sensitive. If false, the names are not + // case sensitive. The default is false. + ActivateCaseSensitiveIdentifier *bool + + // The name of the source schema that contains the table being restored. + SourceSchemaName *string + + // The name of the database to restore the table to. + TargetDatabaseName *string + + // The name of the schema to restore the table to. + TargetSchemaName *string + + noSmithyDocumentSerde +} + +type RestoreTableFromRecoveryPointOutput struct { + + // Contains information about a table restore request. + TableRestoreStatus *types.TableRestoreStatus + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationRestoreTableFromRecoveryPointMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpRestoreTableFromRecoveryPoint{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpRestoreTableFromRecoveryPoint{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "RestoreTableFromRecoveryPoint"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpRestoreTableFromRecoveryPointValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opRestoreTableFromRecoveryPoint(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opRestoreTableFromRecoveryPoint(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "RestoreTableFromRecoveryPoint", + } +} diff --git a/service/redshiftserverless/api_op_UpdateScheduledAction.go b/service/redshiftserverless/api_op_UpdateScheduledAction.go new file mode 100644 index 00000000000..fd1841f50c3 --- /dev/null +++ b/service/redshiftserverless/api_op_UpdateScheduledAction.go @@ -0,0 +1,175 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Updates a scheduled action. +func (c *Client) UpdateScheduledAction(ctx context.Context, params *UpdateScheduledActionInput, optFns ...func(*Options)) (*UpdateScheduledActionOutput, error) { + if params == nil { + params = &UpdateScheduledActionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateScheduledAction", params, optFns, c.addOperationUpdateScheduledActionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateScheduledActionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateScheduledActionInput struct { + + // The name of the scheduled action to update to. + // + // This member is required. + ScheduledActionName *string + + // Specifies whether to enable the scheduled action. + Enabled *bool + + // The end time in UTC of the scheduled action to update. + EndTime *time.Time + + // The ARN of the IAM role to assume to run the scheduled action. This IAM role + // must have permission to run the Amazon Redshift Serverless API operation in the + // scheduled action. This IAM role must allow the Amazon Redshift scheduler to + // schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to + // assume permissions on your behalf. For more information about the IAM role to + // use with the Amazon Redshift scheduler, see Using Identity-Based Policies for + // Amazon Redshift (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html) + // in the Amazon Redshift Cluster Management Guide + RoleArn *string + + // The schedule for a one-time (at format) or recurring (cron format) scheduled + // action. Schedule invocations must be separated by at least one hour. Format of + // at expressions is " at(yyyy-mm-ddThh:mm:ss) ". For example, " + // at(2016-03-04T17:27:00) ". Format of cron expressions is " cron(Minutes Hours + // Day-of-month Month Day-of-week Year) ". For example, " cron(0 10 ? * MON *) ". + // For more information, see Cron Expressions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions) + // in the Amazon CloudWatch Events User Guide. + Schedule types.Schedule + + // The descripion of the scheduled action to update to. + ScheduledActionDescription *string + + // The start time in UTC of the scheduled action to update to. + StartTime *time.Time + + // A JSON format string of the Amazon Redshift Serverless API operation with input + // parameters. The following is an example of a target action. "{"CreateSnapshot": + // {"NamespaceName": "sampleNamespace","SnapshotName": "sampleSnapshot", + // "retentionPeriod": "1"}}" + TargetAction types.TargetAction + + noSmithyDocumentSerde +} + +type UpdateScheduledActionOutput struct { + + // The ScheduledAction object that was updated. + ScheduledAction *types.ScheduledActionResponse + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateScheduledActionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateScheduledAction{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateScheduledAction{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateScheduledAction"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateScheduledActionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateScheduledAction(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateScheduledAction(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateScheduledAction", + } +} diff --git a/service/redshiftserverless/api_op_UpdateSnapshotCopyConfiguration.go b/service/redshiftserverless/api_op_UpdateSnapshotCopyConfiguration.go new file mode 100644 index 00000000000..f14810b001c --- /dev/null +++ b/service/redshiftserverless/api_op_UpdateSnapshotCopyConfiguration.go @@ -0,0 +1,143 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package redshiftserverless + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Updates a snapshot copy configuration. +func (c *Client) UpdateSnapshotCopyConfiguration(ctx context.Context, params *UpdateSnapshotCopyConfigurationInput, optFns ...func(*Options)) (*UpdateSnapshotCopyConfigurationOutput, error) { + if params == nil { + params = &UpdateSnapshotCopyConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "UpdateSnapshotCopyConfiguration", params, optFns, c.addOperationUpdateSnapshotCopyConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*UpdateSnapshotCopyConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type UpdateSnapshotCopyConfigurationInput struct { + + // The ID of the snapshot copy configuration to update. + // + // This member is required. + SnapshotCopyConfigurationId *string + + // The new retention period of how long to keep a snapshot in the destination + // Amazon Web Services Region. + SnapshotRetentionPeriod *int32 + + noSmithyDocumentSerde +} + +type UpdateSnapshotCopyConfigurationOutput struct { + + // The updated snapshot copy configuration object. + // + // This member is required. + SnapshotCopyConfiguration *types.SnapshotCopyConfiguration + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationUpdateSnapshotCopyConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsAwsjson11_serializeOpUpdateSnapshotCopyConfiguration{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpUpdateSnapshotCopyConfiguration{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateSnapshotCopyConfiguration"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addOpUpdateSnapshotCopyConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateSnapshotCopyConfiguration(options.Region), middleware.Before); err != nil { + return err + } + if err = awsmiddleware.AddRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opUpdateSnapshotCopyConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "UpdateSnapshotCopyConfiguration", + } +} diff --git a/service/redshiftserverless/api_op_UpdateWorkgroup.go b/service/redshiftserverless/api_op_UpdateWorkgroup.go index 94c47420628..c595ed088dd 100644 --- a/service/redshiftserverless/api_op_UpdateWorkgroup.go +++ b/service/redshiftserverless/api_op_UpdateWorkgroup.go @@ -42,7 +42,7 @@ type UpdateWorkgroupInput struct { BaseCapacity *int32 // An array of parameters to set for advanced control over a database. The options - // are auto_mv , datestyle , enable_case_sensitivity_identifier , + // are auto_mv , datestyle , enable_case_sensitive_identifier , // enable_user_activity_logging , query_group , search_path , and query monitoring // metrics that let you define performance boundaries. For more information about // query monitoring rules and available metrics, see Query monitoring metrics for diff --git a/service/redshiftserverless/auth.go b/service/redshiftserverless/auth.go index 0ca4864f99c..bc85523cad4 100644 --- a/service/redshiftserverless/auth.go +++ b/service/redshiftserverless/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/redshiftserverless/deserializers.go b/service/redshiftserverless/deserializers.go index 035344b7880..9e2c1a2d610 100644 --- a/service/redshiftserverless/deserializers.go +++ b/service/redshiftserverless/deserializers.go @@ -18,6 +18,7 @@ import ( "io" "math" "strings" + "time" ) type awsAwsjson11_deserializeOpConvertRecoveryPointToSnapshot struct { @@ -518,14 +519,14 @@ func awsAwsjson11_deserializeOpErrorCreateNamespace(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpCreateSnapshot struct { +type awsAwsjson11_deserializeOpCreateScheduledAction struct { } -func (*awsAwsjson11_deserializeOpCreateSnapshot) ID() string { +func (*awsAwsjson11_deserializeOpCreateScheduledAction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateScheduledAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -539,9 +540,9 @@ func (m *awsAwsjson11_deserializeOpCreateSnapshot) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateSnapshot(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateScheduledAction(response, &metadata) } - output := &CreateSnapshotOutput{} + output := &CreateScheduledActionOutput{} out.Result = output var buff [1024]byte @@ -561,7 +562,7 @@ func (m *awsAwsjson11_deserializeOpCreateSnapshot) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateScheduledActionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -575,7 +576,7 @@ func (m *awsAwsjson11_deserializeOpCreateSnapshot) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateScheduledAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -625,12 +626,6 @@ func awsAwsjson11_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - - case strings.EqualFold("TooManyTagsException", errorCode): - return awsAwsjson11_deserializeErrorTooManyTagsException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -644,14 +639,14 @@ func awsAwsjson11_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpCreateUsageLimit struct { +type awsAwsjson11_deserializeOpCreateSnapshot struct { } -func (*awsAwsjson11_deserializeOpCreateUsageLimit) ID() string { +func (*awsAwsjson11_deserializeOpCreateSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -665,9 +660,9 @@ func (m *awsAwsjson11_deserializeOpCreateUsageLimit) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateUsageLimit(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateSnapshot(response, &metadata) } - output := &CreateUsageLimitOutput{} + output := &CreateSnapshotOutput{} out.Result = output var buff [1024]byte @@ -687,7 +682,7 @@ func (m *awsAwsjson11_deserializeOpCreateUsageLimit) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateUsageLimitOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -701,7 +696,7 @@ func (m *awsAwsjson11_deserializeOpCreateUsageLimit) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -754,6 +749,9 @@ func awsAwsjson11_deserializeOpErrorCreateUsageLimit(response *smithyhttp.Respon case strings.EqualFold("ServiceQuotaExceededException", errorCode): return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("TooManyTagsException", errorCode): + return awsAwsjson11_deserializeErrorTooManyTagsException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -767,14 +765,14 @@ func awsAwsjson11_deserializeOpErrorCreateUsageLimit(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpCreateWorkgroup struct { +type awsAwsjson11_deserializeOpCreateSnapshotCopyConfiguration struct { } -func (*awsAwsjson11_deserializeOpCreateWorkgroup) ID() string { +func (*awsAwsjson11_deserializeOpCreateSnapshotCopyConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpCreateWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateSnapshotCopyConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -788,9 +786,9 @@ func (m *awsAwsjson11_deserializeOpCreateWorkgroup) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorCreateWorkgroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateSnapshotCopyConfiguration(response, &metadata) } - output := &CreateWorkgroupOutput{} + output := &CreateSnapshotCopyConfigurationOutput{} out.Result = output var buff [1024]byte @@ -810,7 +808,7 @@ func (m *awsAwsjson11_deserializeOpCreateWorkgroup) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentCreateWorkgroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateSnapshotCopyConfigurationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -824,7 +822,7 @@ func (m *awsAwsjson11_deserializeOpCreateWorkgroup) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorCreateWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateSnapshotCopyConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -865,20 +863,20 @@ func awsAwsjson11_deserializeOpErrorCreateWorkgroup(response *smithyhttp.Respons } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InsufficientCapacityException", errorCode): - return awsAwsjson11_deserializeErrorInsufficientCapacityException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("TooManyTagsException", errorCode): - return awsAwsjson11_deserializeErrorTooManyTagsException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -893,14 +891,14 @@ func awsAwsjson11_deserializeOpErrorCreateWorkgroup(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDeleteCustomDomainAssociation struct { +type awsAwsjson11_deserializeOpCreateUsageLimit struct { } -func (*awsAwsjson11_deserializeOpDeleteCustomDomainAssociation) ID() string { +func (*awsAwsjson11_deserializeOpCreateUsageLimit) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteCustomDomainAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -914,9 +912,9 @@ func (m *awsAwsjson11_deserializeOpDeleteCustomDomainAssociation) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteCustomDomainAssociation(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateUsageLimit(response, &metadata) } - output := &DeleteCustomDomainAssociationOutput{} + output := &CreateUsageLimitOutput{} out.Result = output var buff [1024]byte @@ -936,7 +934,7 @@ func (m *awsAwsjson11_deserializeOpDeleteCustomDomainAssociation) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteCustomDomainAssociationOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateUsageLimitOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -950,7 +948,7 @@ func (m *awsAwsjson11_deserializeOpDeleteCustomDomainAssociation) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteCustomDomainAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -991,9 +989,6 @@ func awsAwsjson11_deserializeOpErrorDeleteCustomDomainAssociation(response *smit } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) @@ -1003,8 +998,8 @@ func awsAwsjson11_deserializeOpErrorDeleteCustomDomainAssociation(response *smit case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -1019,14 +1014,14 @@ func awsAwsjson11_deserializeOpErrorDeleteCustomDomainAssociation(response *smit } } -type awsAwsjson11_deserializeOpDeleteEndpointAccess struct { +type awsAwsjson11_deserializeOpCreateWorkgroup struct { } -func (*awsAwsjson11_deserializeOpDeleteEndpointAccess) ID() string { +func (*awsAwsjson11_deserializeOpCreateWorkgroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpCreateWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1040,9 +1035,9 @@ func (m *awsAwsjson11_deserializeOpDeleteEndpointAccess) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteEndpointAccess(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorCreateWorkgroup(response, &metadata) } - output := &DeleteEndpointAccessOutput{} + output := &CreateWorkgroupOutput{} out.Result = output var buff [1024]byte @@ -1062,7 +1057,7 @@ func (m *awsAwsjson11_deserializeOpDeleteEndpointAccess) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteEndpointAccessOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentCreateWorkgroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1076,7 +1071,7 @@ func (m *awsAwsjson11_deserializeOpDeleteEndpointAccess) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorCreateWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1120,12 +1115,18 @@ func awsAwsjson11_deserializeOpErrorDeleteEndpointAccess(response *smithyhttp.Re case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InsufficientCapacityException", errorCode): + return awsAwsjson11_deserializeErrorInsufficientCapacityException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("TooManyTagsException", errorCode): + return awsAwsjson11_deserializeErrorTooManyTagsException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -1139,14 +1140,14 @@ func awsAwsjson11_deserializeOpErrorDeleteEndpointAccess(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDeleteNamespace struct { +type awsAwsjson11_deserializeOpDeleteCustomDomainAssociation struct { } -func (*awsAwsjson11_deserializeOpDeleteNamespace) ID() string { +func (*awsAwsjson11_deserializeOpDeleteCustomDomainAssociation) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteCustomDomainAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1160,9 +1161,9 @@ func (m *awsAwsjson11_deserializeOpDeleteNamespace) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteNamespace(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteCustomDomainAssociation(response, &metadata) } - output := &DeleteNamespaceOutput{} + output := &DeleteCustomDomainAssociationOutput{} out.Result = output var buff [1024]byte @@ -1182,7 +1183,7 @@ func (m *awsAwsjson11_deserializeOpDeleteNamespace) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteCustomDomainAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1196,7 +1197,7 @@ func (m *awsAwsjson11_deserializeOpDeleteNamespace) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteCustomDomainAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1237,6 +1238,9 @@ func awsAwsjson11_deserializeOpErrorDeleteNamespace(response *smithyhttp.Respons } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) @@ -1246,6 +1250,9 @@ func awsAwsjson11_deserializeOpErrorDeleteNamespace(response *smithyhttp.Respons case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -1259,14 +1266,14 @@ func awsAwsjson11_deserializeOpErrorDeleteNamespace(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpDeleteResourcePolicy struct { +type awsAwsjson11_deserializeOpDeleteEndpointAccess struct { } -func (*awsAwsjson11_deserializeOpDeleteResourcePolicy) ID() string { +func (*awsAwsjson11_deserializeOpDeleteEndpointAccess) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1280,9 +1287,9 @@ func (m *awsAwsjson11_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteResourcePolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteEndpointAccess(response, &metadata) } - output := &DeleteResourcePolicyOutput{} + output := &DeleteEndpointAccessOutput{} out.Result = output var buff [1024]byte @@ -1302,7 +1309,7 @@ func (m *awsAwsjson11_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteResourcePolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteEndpointAccessOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1316,7 +1323,7 @@ func (m *awsAwsjson11_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1357,6 +1364,9 @@ func awsAwsjson11_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Re } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -1376,14 +1386,14 @@ func awsAwsjson11_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpDeleteSnapshot struct { +type awsAwsjson11_deserializeOpDeleteNamespace struct { } -func (*awsAwsjson11_deserializeOpDeleteSnapshot) ID() string { +func (*awsAwsjson11_deserializeOpDeleteNamespace) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1397,9 +1407,9 @@ func (m *awsAwsjson11_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteSnapshot(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteNamespace(response, &metadata) } - output := &DeleteSnapshotOutput{} + output := &DeleteNamespaceOutput{} out.Result = output var buff [1024]byte @@ -1419,7 +1429,7 @@ func (m *awsAwsjson11_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteSnapshotOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1433,7 +1443,7 @@ func (m *awsAwsjson11_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1496,14 +1506,14 @@ func awsAwsjson11_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpDeleteUsageLimit struct { +type awsAwsjson11_deserializeOpDeleteResourcePolicy struct { } -func (*awsAwsjson11_deserializeOpDeleteUsageLimit) ID() string { +func (*awsAwsjson11_deserializeOpDeleteResourcePolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1517,9 +1527,9 @@ func (m *awsAwsjson11_deserializeOpDeleteUsageLimit) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteUsageLimit(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteResourcePolicy(response, &metadata) } - output := &DeleteUsageLimitOutput{} + output := &DeleteResourcePolicyOutput{} out.Result = output var buff [1024]byte @@ -1539,7 +1549,7 @@ func (m *awsAwsjson11_deserializeOpDeleteUsageLimit) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteUsageLimitOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteResourcePolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1553,7 +1563,7 @@ func (m *awsAwsjson11_deserializeOpDeleteUsageLimit) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1594,9 +1604,6 @@ func awsAwsjson11_deserializeOpErrorDeleteUsageLimit(response *smithyhttp.Respon } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -1616,14 +1623,14 @@ func awsAwsjson11_deserializeOpErrorDeleteUsageLimit(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpDeleteWorkgroup struct { +type awsAwsjson11_deserializeOpDeleteScheduledAction struct { } -func (*awsAwsjson11_deserializeOpDeleteWorkgroup) ID() string { +func (*awsAwsjson11_deserializeOpDeleteScheduledAction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpDeleteWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteScheduledAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1637,9 +1644,9 @@ func (m *awsAwsjson11_deserializeOpDeleteWorkgroup) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorDeleteWorkgroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteScheduledAction(response, &metadata) } - output := &DeleteWorkgroupOutput{} + output := &DeleteScheduledActionOutput{} out.Result = output var buff [1024]byte @@ -1659,7 +1666,7 @@ func (m *awsAwsjson11_deserializeOpDeleteWorkgroup) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentDeleteWorkgroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteScheduledActionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1673,7 +1680,7 @@ func (m *awsAwsjson11_deserializeOpDeleteWorkgroup) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorDeleteWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteScheduledAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1714,9 +1721,6 @@ func awsAwsjson11_deserializeOpErrorDeleteWorkgroup(response *smithyhttp.Respons } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -1736,14 +1740,14 @@ func awsAwsjson11_deserializeOpErrorDeleteWorkgroup(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpGetCredentials struct { +type awsAwsjson11_deserializeOpDeleteSnapshot struct { } -func (*awsAwsjson11_deserializeOpGetCredentials) ID() string { +func (*awsAwsjson11_deserializeOpDeleteSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetCredentials) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1757,9 +1761,9 @@ func (m *awsAwsjson11_deserializeOpGetCredentials) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetCredentials(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteSnapshot(response, &metadata) } - output := &GetCredentialsOutput{} + output := &DeleteSnapshotOutput{} out.Result = output var buff [1024]byte @@ -1779,7 +1783,7 @@ func (m *awsAwsjson11_deserializeOpGetCredentials) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetCredentialsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1793,7 +1797,7 @@ func (m *awsAwsjson11_deserializeOpGetCredentials) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetCredentials(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1834,6 +1838,9 @@ func awsAwsjson11_deserializeOpErrorGetCredentials(response *smithyhttp.Response } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -1853,14 +1860,14 @@ func awsAwsjson11_deserializeOpErrorGetCredentials(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpGetCustomDomainAssociation struct { +type awsAwsjson11_deserializeOpDeleteSnapshotCopyConfiguration struct { } -func (*awsAwsjson11_deserializeOpGetCustomDomainAssociation) ID() string { +func (*awsAwsjson11_deserializeOpDeleteSnapshotCopyConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetCustomDomainAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteSnapshotCopyConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -1874,9 +1881,9 @@ func (m *awsAwsjson11_deserializeOpGetCustomDomainAssociation) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetCustomDomainAssociation(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteSnapshotCopyConfiguration(response, &metadata) } - output := &GetCustomDomainAssociationOutput{} + output := &DeleteSnapshotCopyConfigurationOutput{} out.Result = output var buff [1024]byte @@ -1896,7 +1903,7 @@ func (m *awsAwsjson11_deserializeOpGetCustomDomainAssociation) HandleDeserialize return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetCustomDomainAssociationOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteSnapshotCopyConfigurationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -1910,7 +1917,7 @@ func (m *awsAwsjson11_deserializeOpGetCustomDomainAssociation) HandleDeserialize return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetCustomDomainAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteSnapshotCopyConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -1963,9 +1970,6 @@ func awsAwsjson11_deserializeOpErrorGetCustomDomainAssociation(response *smithyh case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -1979,14 +1983,14 @@ func awsAwsjson11_deserializeOpErrorGetCustomDomainAssociation(response *smithyh } } -type awsAwsjson11_deserializeOpGetEndpointAccess struct { +type awsAwsjson11_deserializeOpDeleteUsageLimit struct { } -func (*awsAwsjson11_deserializeOpGetEndpointAccess) ID() string { +func (*awsAwsjson11_deserializeOpDeleteUsageLimit) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2000,9 +2004,9 @@ func (m *awsAwsjson11_deserializeOpGetEndpointAccess) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetEndpointAccess(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteUsageLimit(response, &metadata) } - output := &GetEndpointAccessOutput{} + output := &DeleteUsageLimitOutput{} out.Result = output var buff [1024]byte @@ -2022,7 +2026,7 @@ func (m *awsAwsjson11_deserializeOpGetEndpointAccess) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetEndpointAccessOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteUsageLimitOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2036,7 +2040,7 @@ func (m *awsAwsjson11_deserializeOpGetEndpointAccess) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2099,14 +2103,14 @@ func awsAwsjson11_deserializeOpErrorGetEndpointAccess(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpGetNamespace struct { +type awsAwsjson11_deserializeOpDeleteWorkgroup struct { } -func (*awsAwsjson11_deserializeOpGetNamespace) ID() string { +func (*awsAwsjson11_deserializeOpDeleteWorkgroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpDeleteWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2120,9 +2124,9 @@ func (m *awsAwsjson11_deserializeOpGetNamespace) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetNamespace(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorDeleteWorkgroup(response, &metadata) } - output := &GetNamespaceOutput{} + output := &DeleteWorkgroupOutput{} out.Result = output var buff [1024]byte @@ -2142,7 +2146,7 @@ func (m *awsAwsjson11_deserializeOpGetNamespace) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetNamespaceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentDeleteWorkgroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2156,7 +2160,7 @@ func (m *awsAwsjson11_deserializeOpGetNamespace) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorDeleteWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2197,6 +2201,9 @@ func awsAwsjson11_deserializeOpErrorGetNamespace(response *smithyhttp.Response, } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -2216,14 +2223,14 @@ func awsAwsjson11_deserializeOpErrorGetNamespace(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpGetRecoveryPoint struct { +type awsAwsjson11_deserializeOpGetCredentials struct { } -func (*awsAwsjson11_deserializeOpGetRecoveryPoint) ID() string { +func (*awsAwsjson11_deserializeOpGetCredentials) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetRecoveryPoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetCredentials) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2237,9 +2244,9 @@ func (m *awsAwsjson11_deserializeOpGetRecoveryPoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetRecoveryPoint(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetCredentials(response, &metadata) } - output := &GetRecoveryPointOutput{} + output := &GetCredentialsOutput{} out.Result = output var buff [1024]byte @@ -2259,7 +2266,7 @@ func (m *awsAwsjson11_deserializeOpGetRecoveryPoint) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetRecoveryPointOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetCredentialsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2273,7 +2280,7 @@ func (m *awsAwsjson11_deserializeOpGetRecoveryPoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetRecoveryPoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetCredentials(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2314,9 +2321,6 @@ func awsAwsjson11_deserializeOpErrorGetRecoveryPoint(response *smithyhttp.Respon } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -2336,14 +2340,14 @@ func awsAwsjson11_deserializeOpErrorGetRecoveryPoint(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpGetResourcePolicy struct { +type awsAwsjson11_deserializeOpGetCustomDomainAssociation struct { } -func (*awsAwsjson11_deserializeOpGetResourcePolicy) ID() string { +func (*awsAwsjson11_deserializeOpGetCustomDomainAssociation) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetCustomDomainAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2357,9 +2361,9 @@ func (m *awsAwsjson11_deserializeOpGetResourcePolicy) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetResourcePolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetCustomDomainAssociation(response, &metadata) } - output := &GetResourcePolicyOutput{} + output := &GetCustomDomainAssociationOutput{} out.Result = output var buff [1024]byte @@ -2379,7 +2383,7 @@ func (m *awsAwsjson11_deserializeOpGetResourcePolicy) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetCustomDomainAssociationOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2393,7 +2397,7 @@ func (m *awsAwsjson11_deserializeOpGetResourcePolicy) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetCustomDomainAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2434,12 +2438,21 @@ func awsAwsjson11_deserializeOpErrorGetResourcePolicy(response *smithyhttp.Respo } switch { - case strings.EqualFold("InternalServerException", errorCode): + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -2453,14 +2466,14 @@ func awsAwsjson11_deserializeOpErrorGetResourcePolicy(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpGetSnapshot struct { +type awsAwsjson11_deserializeOpGetEndpointAccess struct { } -func (*awsAwsjson11_deserializeOpGetSnapshot) ID() string { +func (*awsAwsjson11_deserializeOpGetEndpointAccess) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2474,9 +2487,9 @@ func (m *awsAwsjson11_deserializeOpGetSnapshot) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetSnapshot(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetEndpointAccess(response, &metadata) } - output := &GetSnapshotOutput{} + output := &GetEndpointAccessOutput{} out.Result = output var buff [1024]byte @@ -2496,7 +2509,7 @@ func (m *awsAwsjson11_deserializeOpGetSnapshot) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetSnapshotOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetEndpointAccessOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2510,7 +2523,7 @@ func (m *awsAwsjson11_deserializeOpGetSnapshot) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2551,6 +2564,9 @@ func awsAwsjson11_deserializeOpErrorGetSnapshot(response *smithyhttp.Response, m } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -2570,14 +2586,14 @@ func awsAwsjson11_deserializeOpErrorGetSnapshot(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpGetTableRestoreStatus struct { +type awsAwsjson11_deserializeOpGetNamespace struct { } -func (*awsAwsjson11_deserializeOpGetTableRestoreStatus) ID() string { +func (*awsAwsjson11_deserializeOpGetNamespace) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetTableRestoreStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2591,9 +2607,9 @@ func (m *awsAwsjson11_deserializeOpGetTableRestoreStatus) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetTableRestoreStatus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetNamespace(response, &metadata) } - output := &GetTableRestoreStatusOutput{} + output := &GetNamespaceOutput{} out.Result = output var buff [1024]byte @@ -2613,7 +2629,7 @@ func (m *awsAwsjson11_deserializeOpGetTableRestoreStatus) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetTableRestoreStatusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetNamespaceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2627,7 +2643,7 @@ func (m *awsAwsjson11_deserializeOpGetTableRestoreStatus) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetTableRestoreStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2668,6 +2684,9 @@ func awsAwsjson11_deserializeOpErrorGetTableRestoreStatus(response *smithyhttp.R } switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -2684,14 +2703,14 @@ func awsAwsjson11_deserializeOpErrorGetTableRestoreStatus(response *smithyhttp.R } } -type awsAwsjson11_deserializeOpGetUsageLimit struct { +type awsAwsjson11_deserializeOpGetRecoveryPoint struct { } -func (*awsAwsjson11_deserializeOpGetUsageLimit) ID() string { +func (*awsAwsjson11_deserializeOpGetRecoveryPoint) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetRecoveryPoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2705,9 +2724,9 @@ func (m *awsAwsjson11_deserializeOpGetUsageLimit) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetUsageLimit(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetRecoveryPoint(response, &metadata) } - output := &GetUsageLimitOutput{} + output := &GetRecoveryPointOutput{} out.Result = output var buff [1024]byte @@ -2727,7 +2746,7 @@ func (m *awsAwsjson11_deserializeOpGetUsageLimit) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetUsageLimitOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetRecoveryPointOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2741,7 +2760,7 @@ func (m *awsAwsjson11_deserializeOpGetUsageLimit) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetRecoveryPoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2804,14 +2823,14 @@ func awsAwsjson11_deserializeOpErrorGetUsageLimit(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpGetWorkgroup struct { +type awsAwsjson11_deserializeOpGetResourcePolicy struct { } -func (*awsAwsjson11_deserializeOpGetWorkgroup) ID() string { +func (*awsAwsjson11_deserializeOpGetResourcePolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpGetWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2825,9 +2844,9 @@ func (m *awsAwsjson11_deserializeOpGetWorkgroup) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorGetWorkgroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetResourcePolicy(response, &metadata) } - output := &GetWorkgroupOutput{} + output := &GetResourcePolicyOutput{} out.Result = output var buff [1024]byte @@ -2847,7 +2866,7 @@ func (m *awsAwsjson11_deserializeOpGetWorkgroup) HandleDeserialize(ctx context.C return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentGetWorkgroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2861,7 +2880,7 @@ func (m *awsAwsjson11_deserializeOpGetWorkgroup) HandleDeserialize(ctx context.C return out, metadata, err } -func awsAwsjson11_deserializeOpErrorGetWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -2921,14 +2940,14 @@ func awsAwsjson11_deserializeOpErrorGetWorkgroup(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListCustomDomainAssociations struct { +type awsAwsjson11_deserializeOpGetScheduledAction struct { } -func (*awsAwsjson11_deserializeOpListCustomDomainAssociations) ID() string { +func (*awsAwsjson11_deserializeOpGetScheduledAction) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListCustomDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetScheduledAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -2942,9 +2961,9 @@ func (m *awsAwsjson11_deserializeOpListCustomDomainAssociations) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListCustomDomainAssociations(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetScheduledAction(response, &metadata) } - output := &ListCustomDomainAssociationsOutput{} + output := &GetScheduledActionOutput{} out.Result = output var buff [1024]byte @@ -2964,7 +2983,7 @@ func (m *awsAwsjson11_deserializeOpListCustomDomainAssociations) HandleDeseriali return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListCustomDomainAssociationsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetScheduledActionOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -2978,7 +2997,7 @@ func (m *awsAwsjson11_deserializeOpListCustomDomainAssociations) HandleDeseriali return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListCustomDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetScheduledAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3019,17 +3038,11 @@ func awsAwsjson11_deserializeOpErrorListCustomDomainAssociations(response *smith } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("InvalidPaginationException", errorCode): - return awsAwsjson11_deserializeErrorInvalidPaginationException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -3044,14 +3057,14 @@ func awsAwsjson11_deserializeOpErrorListCustomDomainAssociations(response *smith } } -type awsAwsjson11_deserializeOpListEndpointAccess struct { +type awsAwsjson11_deserializeOpGetSnapshot struct { } -func (*awsAwsjson11_deserializeOpListEndpointAccess) ID() string { +func (*awsAwsjson11_deserializeOpGetSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3065,9 +3078,9 @@ func (m *awsAwsjson11_deserializeOpListEndpointAccess) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListEndpointAccess(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetSnapshot(response, &metadata) } - output := &ListEndpointAccessOutput{} + output := &GetSnapshotOutput{} out.Result = output var buff [1024]byte @@ -3087,7 +3100,7 @@ func (m *awsAwsjson11_deserializeOpListEndpointAccess) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListEndpointAccessOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3101,7 +3114,7 @@ func (m *awsAwsjson11_deserializeOpListEndpointAccess) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3142,9 +3155,6 @@ func awsAwsjson11_deserializeOpErrorListEndpointAccess(response *smithyhttp.Resp } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -3164,14 +3174,14 @@ func awsAwsjson11_deserializeOpErrorListEndpointAccess(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpListNamespaces struct { +type awsAwsjson11_deserializeOpGetTableRestoreStatus struct { } -func (*awsAwsjson11_deserializeOpListNamespaces) ID() string { +func (*awsAwsjson11_deserializeOpGetTableRestoreStatus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListNamespaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetTableRestoreStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3185,9 +3195,9 @@ func (m *awsAwsjson11_deserializeOpListNamespaces) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListNamespaces(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetTableRestoreStatus(response, &metadata) } - output := &ListNamespacesOutput{} + output := &GetTableRestoreStatusOutput{} out.Result = output var buff [1024]byte @@ -3207,7 +3217,7 @@ func (m *awsAwsjson11_deserializeOpListNamespaces) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListNamespacesOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetTableRestoreStatusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3221,7 +3231,7 @@ func (m *awsAwsjson11_deserializeOpListNamespaces) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListNamespaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetTableRestoreStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3262,8 +3272,8 @@ func awsAwsjson11_deserializeOpErrorListNamespaces(response *smithyhttp.Response } switch { - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -3278,14 +3288,14 @@ func awsAwsjson11_deserializeOpErrorListNamespaces(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpListRecoveryPoints struct { +type awsAwsjson11_deserializeOpGetUsageLimit struct { } -func (*awsAwsjson11_deserializeOpListRecoveryPoints) ID() string { +func (*awsAwsjson11_deserializeOpGetUsageLimit) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListRecoveryPoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3299,9 +3309,9 @@ func (m *awsAwsjson11_deserializeOpListRecoveryPoints) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListRecoveryPoints(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetUsageLimit(response, &metadata) } - output := &ListRecoveryPointsOutput{} + output := &GetUsageLimitOutput{} out.Result = output var buff [1024]byte @@ -3321,7 +3331,7 @@ func (m *awsAwsjson11_deserializeOpListRecoveryPoints) HandleDeserialize(ctx con return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListRecoveryPointsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetUsageLimitOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3335,7 +3345,7 @@ func (m *awsAwsjson11_deserializeOpListRecoveryPoints) HandleDeserialize(ctx con return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListRecoveryPoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3376,9 +3386,15 @@ func awsAwsjson11_deserializeOpErrorListRecoveryPoints(response *smithyhttp.Resp } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -3392,14 +3408,14 @@ func awsAwsjson11_deserializeOpErrorListRecoveryPoints(response *smithyhttp.Resp } } -type awsAwsjson11_deserializeOpListSnapshots struct { +type awsAwsjson11_deserializeOpGetWorkgroup struct { } -func (*awsAwsjson11_deserializeOpListSnapshots) ID() string { +func (*awsAwsjson11_deserializeOpGetWorkgroup) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpGetWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3413,9 +3429,9 @@ func (m *awsAwsjson11_deserializeOpListSnapshots) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListSnapshots(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorGetWorkgroup(response, &metadata) } - output := &ListSnapshotsOutput{} + output := &GetWorkgroupOutput{} out.Result = output var buff [1024]byte @@ -3435,7 +3451,7 @@ func (m *awsAwsjson11_deserializeOpListSnapshots) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListSnapshotsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentGetWorkgroupOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3449,7 +3465,7 @@ func (m *awsAwsjson11_deserializeOpListSnapshots) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorGetWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3509,14 +3525,14 @@ func awsAwsjson11_deserializeOpErrorListSnapshots(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpListTableRestoreStatus struct { +type awsAwsjson11_deserializeOpListCustomDomainAssociations struct { } -func (*awsAwsjson11_deserializeOpListTableRestoreStatus) ID() string { +func (*awsAwsjson11_deserializeOpListCustomDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTableRestoreStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListCustomDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3530,9 +3546,9 @@ func (m *awsAwsjson11_deserializeOpListTableRestoreStatus) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTableRestoreStatus(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListCustomDomainAssociations(response, &metadata) } - output := &ListTableRestoreStatusOutput{} + output := &ListCustomDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -3552,7 +3568,7 @@ func (m *awsAwsjson11_deserializeOpListTableRestoreStatus) HandleDeserialize(ctx return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTableRestoreStatusOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListCustomDomainAssociationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3566,7 +3582,7 @@ func (m *awsAwsjson11_deserializeOpListTableRestoreStatus) HandleDeserialize(ctx return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTableRestoreStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListCustomDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3607,11 +3623,17 @@ func awsAwsjson11_deserializeOpErrorListTableRestoreStatus(response *smithyhttp. } switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("InvalidPaginationException", errorCode): return awsAwsjson11_deserializeErrorInvalidPaginationException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -3626,14 +3648,14 @@ func awsAwsjson11_deserializeOpErrorListTableRestoreStatus(response *smithyhttp. } } -type awsAwsjson11_deserializeOpListTagsForResource struct { +type awsAwsjson11_deserializeOpListEndpointAccess struct { } -func (*awsAwsjson11_deserializeOpListTagsForResource) ID() string { +func (*awsAwsjson11_deserializeOpListEndpointAccess) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3647,9 +3669,9 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListTagsForResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListEndpointAccess(response, &metadata) } - output := &ListTagsForResourceOutput{} + output := &ListEndpointAccessOutput{} out.Result = output var buff [1024]byte @@ -3669,7 +3691,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListEndpointAccessOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3683,7 +3705,7 @@ func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3724,15 +3746,15 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -3746,14 +3768,14 @@ func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpListUsageLimits struct { +type awsAwsjson11_deserializeOpListNamespaces struct { } -func (*awsAwsjson11_deserializeOpListUsageLimits) ID() string { +func (*awsAwsjson11_deserializeOpListNamespaces) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListUsageLimits) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListNamespaces) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3767,9 +3789,9 @@ func (m *awsAwsjson11_deserializeOpListUsageLimits) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListUsageLimits(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListNamespaces(response, &metadata) } - output := &ListUsageLimitsOutput{} + output := &ListNamespacesOutput{} out.Result = output var buff [1024]byte @@ -3789,7 +3811,7 @@ func (m *awsAwsjson11_deserializeOpListUsageLimits) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListUsageLimitsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListNamespacesOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3803,7 +3825,7 @@ func (m *awsAwsjson11_deserializeOpListUsageLimits) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListUsageLimits(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListNamespaces(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3844,18 +3866,9 @@ func awsAwsjson11_deserializeOpErrorListUsageLimits(response *smithyhttp.Respons } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("InvalidPaginationException", errorCode): - return awsAwsjson11_deserializeErrorInvalidPaginationException(response, errorBody) - - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -3869,14 +3882,14 @@ func awsAwsjson11_deserializeOpErrorListUsageLimits(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpListWorkgroups struct { +type awsAwsjson11_deserializeOpListRecoveryPoints struct { } -func (*awsAwsjson11_deserializeOpListWorkgroups) ID() string { +func (*awsAwsjson11_deserializeOpListRecoveryPoints) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpListWorkgroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListRecoveryPoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -3890,9 +3903,9 @@ func (m *awsAwsjson11_deserializeOpListWorkgroups) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorListWorkgroups(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListRecoveryPoints(response, &metadata) } - output := &ListWorkgroupsOutput{} + output := &ListRecoveryPointsOutput{} out.Result = output var buff [1024]byte @@ -3912,7 +3925,7 @@ func (m *awsAwsjson11_deserializeOpListWorkgroups) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentListWorkgroupsOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListRecoveryPointsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -3926,7 +3939,7 @@ func (m *awsAwsjson11_deserializeOpListWorkgroups) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorListWorkgroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListRecoveryPoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -3983,14 +3996,14 @@ func awsAwsjson11_deserializeOpErrorListWorkgroups(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpPutResourcePolicy struct { +type awsAwsjson11_deserializeOpListScheduledActions struct { } -func (*awsAwsjson11_deserializeOpPutResourcePolicy) ID() string { +func (*awsAwsjson11_deserializeOpListScheduledActions) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpPutResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListScheduledActions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4004,9 +4017,9 @@ func (m *awsAwsjson11_deserializeOpPutResourcePolicy) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorPutResourcePolicy(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListScheduledActions(response, &metadata) } - output := &PutResourcePolicyOutput{} + output := &ListScheduledActionsOutput{} out.Result = output var buff [1024]byte @@ -4026,7 +4039,7 @@ func (m *awsAwsjson11_deserializeOpPutResourcePolicy) HandleDeserialize(ctx cont return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentPutResourcePolicyOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListScheduledActionsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4040,7 +4053,7 @@ func (m *awsAwsjson11_deserializeOpPutResourcePolicy) HandleDeserialize(ctx cont return out, metadata, err } -func awsAwsjson11_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListScheduledActions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4081,18 +4094,15 @@ func awsAwsjson11_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Respo } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("InvalidPaginationException", errorCode): + return awsAwsjson11_deserializeErrorInvalidPaginationException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -4106,14 +4116,14 @@ func awsAwsjson11_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Respo } } -type awsAwsjson11_deserializeOpRestoreFromRecoveryPoint struct { +type awsAwsjson11_deserializeOpListSnapshotCopyConfigurations struct { } -func (*awsAwsjson11_deserializeOpRestoreFromRecoveryPoint) ID() string { +func (*awsAwsjson11_deserializeOpListSnapshotCopyConfigurations) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRestoreFromRecoveryPoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListSnapshotCopyConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4127,9 +4137,9 @@ func (m *awsAwsjson11_deserializeOpRestoreFromRecoveryPoint) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRestoreFromRecoveryPoint(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListSnapshotCopyConfigurations(response, &metadata) } - output := &RestoreFromRecoveryPointOutput{} + output := &ListSnapshotCopyConfigurationsOutput{} out.Result = output var buff [1024]byte @@ -4149,7 +4159,7 @@ func (m *awsAwsjson11_deserializeOpRestoreFromRecoveryPoint) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRestoreFromRecoveryPointOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListSnapshotCopyConfigurationsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4163,7 +4173,7 @@ func (m *awsAwsjson11_deserializeOpRestoreFromRecoveryPoint) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRestoreFromRecoveryPoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListSnapshotCopyConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4210,6 +4220,9 @@ func awsAwsjson11_deserializeOpErrorRestoreFromRecoveryPoint(response *smithyhtt case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("InvalidPaginationException", errorCode): + return awsAwsjson11_deserializeErrorInvalidPaginationException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -4226,14 +4239,14 @@ func awsAwsjson11_deserializeOpErrorRestoreFromRecoveryPoint(response *smithyhtt } } -type awsAwsjson11_deserializeOpRestoreFromSnapshot struct { +type awsAwsjson11_deserializeOpListSnapshots struct { } -func (*awsAwsjson11_deserializeOpRestoreFromSnapshot) ID() string { +func (*awsAwsjson11_deserializeOpListSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRestoreFromSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4247,9 +4260,9 @@ func (m *awsAwsjson11_deserializeOpRestoreFromSnapshot) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRestoreFromSnapshot(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListSnapshots(response, &metadata) } - output := &RestoreFromSnapshotOutput{} + output := &ListSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -4269,7 +4282,7 @@ func (m *awsAwsjson11_deserializeOpRestoreFromSnapshot) HandleDeserialize(ctx co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRestoreFromSnapshotOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListSnapshotsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4283,7 +4296,7 @@ func (m *awsAwsjson11_deserializeOpRestoreFromSnapshot) HandleDeserialize(ctx co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRestoreFromSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4324,18 +4337,12 @@ func awsAwsjson11_deserializeOpErrorRestoreFromSnapshot(response *smithyhttp.Res } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ServiceQuotaExceededException", errorCode): - return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -4349,14 +4356,14 @@ func awsAwsjson11_deserializeOpErrorRestoreFromSnapshot(response *smithyhttp.Res } } -type awsAwsjson11_deserializeOpRestoreTableFromSnapshot struct { +type awsAwsjson11_deserializeOpListTableRestoreStatus struct { } -func (*awsAwsjson11_deserializeOpRestoreTableFromSnapshot) ID() string { +func (*awsAwsjson11_deserializeOpListTableRestoreStatus) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpRestoreTableFromSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTableRestoreStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4370,9 +4377,9 @@ func (m *awsAwsjson11_deserializeOpRestoreTableFromSnapshot) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorRestoreTableFromSnapshot(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTableRestoreStatus(response, &metadata) } - output := &RestoreTableFromSnapshotOutput{} + output := &ListTableRestoreStatusOutput{} out.Result = output var buff [1024]byte @@ -4392,7 +4399,7 @@ func (m *awsAwsjson11_deserializeOpRestoreTableFromSnapshot) HandleDeserialize(c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentRestoreTableFromSnapshotOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTableRestoreStatusOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4406,7 +4413,7 @@ func (m *awsAwsjson11_deserializeOpRestoreTableFromSnapshot) HandleDeserialize(c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorRestoreTableFromSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTableRestoreStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4447,11 +4454,8 @@ func awsAwsjson11_deserializeOpErrorRestoreTableFromSnapshot(response *smithyhtt } switch { - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - - case strings.EqualFold("InternalServerException", errorCode): - return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("InvalidPaginationException", errorCode): + return awsAwsjson11_deserializeErrorInvalidPaginationException(response, errorBody) case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) @@ -4469,14 +4473,14 @@ func awsAwsjson11_deserializeOpErrorRestoreTableFromSnapshot(response *smithyhtt } } -type awsAwsjson11_deserializeOpTagResource struct { +type awsAwsjson11_deserializeOpListTagsForResource struct { } -func (*awsAwsjson11_deserializeOpTagResource) ID() string { +func (*awsAwsjson11_deserializeOpListTagsForResource) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListTagsForResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4490,9 +4494,9 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorTagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListTagsForResource(response, &metadata) } - output := &TagResourceOutput{} + output := &ListTagsForResourceOutput{} out.Result = output var buff [1024]byte @@ -4512,7 +4516,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListTagsForResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4526,7 +4530,7 @@ func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListTagsForResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4576,9 +4580,6 @@ func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, m case strings.EqualFold("ThrottlingException", errorCode): return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("TooManyTagsException", errorCode): - return awsAwsjson11_deserializeErrorTooManyTagsException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -4592,14 +4593,14 @@ func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, m } } -type awsAwsjson11_deserializeOpUntagResource struct { +type awsAwsjson11_deserializeOpListUsageLimits struct { } -func (*awsAwsjson11_deserializeOpUntagResource) ID() string { +func (*awsAwsjson11_deserializeOpListUsageLimits) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListUsageLimits) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4613,9 +4614,9 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListUsageLimits(response, &metadata) } - output := &UntagResourceOutput{} + output := &ListUsageLimitsOutput{} out.Result = output var buff [1024]byte @@ -4635,7 +4636,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListUsageLimitsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4649,7 +4650,7 @@ func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context. return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListUsageLimits(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4690,15 +4691,18 @@ func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, } switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + case strings.EqualFold("InvalidPaginationException", errorCode): + return awsAwsjson11_deserializeErrorInvalidPaginationException(response, errorBody) + case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -4712,14 +4716,14 @@ func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, } } -type awsAwsjson11_deserializeOpUpdateCustomDomainAssociation struct { +type awsAwsjson11_deserializeOpListWorkgroups struct { } -func (*awsAwsjson11_deserializeOpUpdateCustomDomainAssociation) ID() string { +func (*awsAwsjson11_deserializeOpListWorkgroups) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateCustomDomainAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpListWorkgroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4733,9 +4737,9 @@ func (m *awsAwsjson11_deserializeOpUpdateCustomDomainAssociation) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCustomDomainAssociation(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorListWorkgroups(response, &metadata) } - output := &UpdateCustomDomainAssociationOutput{} + output := &ListWorkgroupsOutput{} out.Result = output var buff [1024]byte @@ -4755,7 +4759,7 @@ func (m *awsAwsjson11_deserializeOpUpdateCustomDomainAssociation) HandleDeserial return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateCustomDomainAssociationOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentListWorkgroupsOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4769,7 +4773,7 @@ func (m *awsAwsjson11_deserializeOpUpdateCustomDomainAssociation) HandleDeserial return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateCustomDomainAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorListWorkgroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4810,21 +4814,9 @@ func awsAwsjson11_deserializeOpErrorUpdateCustomDomainAssociation(response *smit } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - - case strings.EqualFold("ConflictException", errorCode): - return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) - case strings.EqualFold("ResourceNotFoundException", errorCode): - return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) - - case strings.EqualFold("ThrottlingException", errorCode): - return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) - case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -4838,14 +4830,14 @@ func awsAwsjson11_deserializeOpErrorUpdateCustomDomainAssociation(response *smit } } -type awsAwsjson11_deserializeOpUpdateEndpointAccess struct { +type awsAwsjson11_deserializeOpPutResourcePolicy struct { } -func (*awsAwsjson11_deserializeOpUpdateEndpointAccess) ID() string { +func (*awsAwsjson11_deserializeOpPutResourcePolicy) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpPutResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4859,9 +4851,9 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpointAccess) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpointAccess(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorPutResourcePolicy(response, &metadata) } - output := &UpdateEndpointAccessOutput{} + output := &PutResourcePolicyOutput{} out.Result = output var buff [1024]byte @@ -4881,7 +4873,7 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpointAccess) HandleDeserialize(ctx c return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateEndpointAccessOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentPutResourcePolicyOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -4895,7 +4887,7 @@ func (m *awsAwsjson11_deserializeOpUpdateEndpointAccess) HandleDeserialize(ctx c return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorPutResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -4936,9 +4928,6 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpointAccess(response *smithyhttp.Re } switch { - case strings.EqualFold("AccessDeniedException", errorCode): - return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) - case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) @@ -4948,6 +4937,9 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpointAccess(response *smithyhttp.Re case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -4961,14 +4953,14 @@ func awsAwsjson11_deserializeOpErrorUpdateEndpointAccess(response *smithyhttp.Re } } -type awsAwsjson11_deserializeOpUpdateNamespace struct { +type awsAwsjson11_deserializeOpRestoreFromRecoveryPoint struct { } -func (*awsAwsjson11_deserializeOpUpdateNamespace) ID() string { +func (*awsAwsjson11_deserializeOpRestoreFromRecoveryPoint) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRestoreFromRecoveryPoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -4982,9 +4974,9 @@ func (m *awsAwsjson11_deserializeOpUpdateNamespace) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNamespace(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRestoreFromRecoveryPoint(response, &metadata) } - output := &UpdateNamespaceOutput{} + output := &RestoreFromRecoveryPointOutput{} out.Result = output var buff [1024]byte @@ -5004,7 +4996,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNamespace) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateNamespaceOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRestoreFromRecoveryPointOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5018,7 +5010,7 @@ func (m *awsAwsjson11_deserializeOpUpdateNamespace) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRestoreFromRecoveryPoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5081,14 +5073,14 @@ func awsAwsjson11_deserializeOpErrorUpdateNamespace(response *smithyhttp.Respons } } -type awsAwsjson11_deserializeOpUpdateSnapshot struct { +type awsAwsjson11_deserializeOpRestoreFromSnapshot struct { } -func (*awsAwsjson11_deserializeOpUpdateSnapshot) ID() string { +func (*awsAwsjson11_deserializeOpRestoreFromSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRestoreFromSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5102,9 +5094,9 @@ func (m *awsAwsjson11_deserializeOpUpdateSnapshot) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSnapshot(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRestoreFromSnapshot(response, &metadata) } - output := &UpdateSnapshotOutput{} + output := &RestoreFromSnapshotOutput{} out.Result = output var buff [1024]byte @@ -5124,7 +5116,7 @@ func (m *awsAwsjson11_deserializeOpUpdateSnapshot) HandleDeserialize(ctx context return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateSnapshotOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRestoreFromSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5138,7 +5130,7 @@ func (m *awsAwsjson11_deserializeOpUpdateSnapshot) HandleDeserialize(ctx context return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRestoreFromSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5188,6 +5180,9 @@ func awsAwsjson11_deserializeOpErrorUpdateSnapshot(response *smithyhttp.Response case strings.EqualFold("ResourceNotFoundException", errorCode): return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + case strings.EqualFold("ServiceQuotaExceededException", errorCode): + return awsAwsjson11_deserializeErrorServiceQuotaExceededException(response, errorBody) + case strings.EqualFold("ValidationException", errorCode): return awsAwsjson11_deserializeErrorValidationException(response, errorBody) @@ -5201,14 +5196,14 @@ func awsAwsjson11_deserializeOpErrorUpdateSnapshot(response *smithyhttp.Response } } -type awsAwsjson11_deserializeOpUpdateUsageLimit struct { +type awsAwsjson11_deserializeOpRestoreTableFromRecoveryPoint struct { } -func (*awsAwsjson11_deserializeOpUpdateUsageLimit) ID() string { +func (*awsAwsjson11_deserializeOpRestoreTableFromRecoveryPoint) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRestoreTableFromRecoveryPoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5222,9 +5217,9 @@ func (m *awsAwsjson11_deserializeOpUpdateUsageLimit) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateUsageLimit(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRestoreTableFromRecoveryPoint(response, &metadata) } - output := &UpdateUsageLimitOutput{} + output := &RestoreTableFromRecoveryPointOutput{} out.Result = output var buff [1024]byte @@ -5244,7 +5239,7 @@ func (m *awsAwsjson11_deserializeOpUpdateUsageLimit) HandleDeserialize(ctx conte return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateUsageLimitOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRestoreTableFromRecoveryPointOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5258,7 +5253,7 @@ func (m *awsAwsjson11_deserializeOpUpdateUsageLimit) HandleDeserialize(ctx conte return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRestoreTableFromRecoveryPoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5321,14 +5316,14 @@ func awsAwsjson11_deserializeOpErrorUpdateUsageLimit(response *smithyhttp.Respon } } -type awsAwsjson11_deserializeOpUpdateWorkgroup struct { +type awsAwsjson11_deserializeOpRestoreTableFromSnapshot struct { } -func (*awsAwsjson11_deserializeOpUpdateWorkgroup) ID() string { +func (*awsAwsjson11_deserializeOpRestoreTableFromSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsAwsjson11_deserializeOpUpdateWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsAwsjson11_deserializeOpRestoreTableFromSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -5342,9 +5337,9 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkgroup) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsjson11_deserializeOpErrorUpdateWorkgroup(response, &metadata) + return out, metadata, awsAwsjson11_deserializeOpErrorRestoreTableFromSnapshot(response, &metadata) } - output := &UpdateWorkgroupOutput{} + output := &RestoreTableFromSnapshotOutput{} out.Result = output var buff [1024]byte @@ -5364,7 +5359,7 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkgroup) HandleDeserialize(ctx contex return out, metadata, err } - err = awsAwsjson11_deserializeOpDocumentUpdateWorkgroupOutput(&output, shape) + err = awsAwsjson11_deserializeOpDocumentRestoreTableFromSnapshotOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5378,7 +5373,7 @@ func (m *awsAwsjson11_deserializeOpUpdateWorkgroup) HandleDeserialize(ctx contex return out, metadata, err } -func awsAwsjson11_deserializeOpErrorUpdateWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsAwsjson11_deserializeOpErrorRestoreTableFromSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -5422,9 +5417,6 @@ func awsAwsjson11_deserializeOpErrorUpdateWorkgroup(response *smithyhttp.Respons case strings.EqualFold("ConflictException", errorCode): return awsAwsjson11_deserializeErrorConflictException(response, errorBody) - case strings.EqualFold("InsufficientCapacityException", errorCode): - return awsAwsjson11_deserializeErrorInsufficientCapacityException(response, errorBody) - case strings.EqualFold("InternalServerException", errorCode): return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) @@ -5444,11 +5436,36 @@ func awsAwsjson11_deserializeOpErrorUpdateWorkgroup(response *smithyhttp.Respons } } -func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +type awsAwsjson11_deserializeOpTagResource struct { +} + +func (*awsAwsjson11_deserializeOpTagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpTagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorTagResource(response, &metadata) + } + output := &TagResourceOutput{} + out.Result = output + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) + body := io.TeeReader(response.Body, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() var shape interface{} @@ -5459,12 +5476,10 @@ func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Res Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - output := &types.AccessDeniedException{} - err := awsAwsjson11_deserializeDocumentAccessDeniedException(&output, shape) - + err = awsAwsjson11_deserializeOpDocumentTagResourceOutput(&output, shape) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -5472,22 +5487,35 @@ func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Res Err: fmt.Errorf("failed to decode response body, %w", err), Snapshot: snapshot.Bytes(), } - return err + return out, metadata, err } - errorBody.Seek(0, io.SeekStart) - return output + return out, metadata, err } -func awsAwsjson11_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { +func awsAwsjson11_deserializeOpErrorTagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + var buff [1024]byte ringBuffer := smithyio.NewRingBuffer(buff[:]) body := io.TeeReader(errorBody, ringBuffer) decoder := json.NewDecoder(body) decoder.UseNumber() - var shape interface{} - if err := decoder.Decode(&shape); err != nil && err != io.EOF { + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ @@ -5497,11 +5525,1193 @@ func awsAwsjson11_deserializeErrorConflictException(response *smithyhttp.Respons return err } - output := &types.ConflictException{} - err := awsAwsjson11_deserializeDocumentConflictException(&output, shape) - - if err != nil { - var snapshot bytes.Buffer + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("TooManyTagsException", errorCode): + return awsAwsjson11_deserializeErrorTooManyTagsException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUntagResource struct { +} + +func (*awsAwsjson11_deserializeOpUntagResource) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUntagResource) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUntagResource(response, &metadata) + } + output := &UntagResourceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUntagResourceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUntagResource(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateCustomDomainAssociation struct { +} + +func (*awsAwsjson11_deserializeOpUpdateCustomDomainAssociation) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateCustomDomainAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateCustomDomainAssociation(response, &metadata) + } + output := &UpdateCustomDomainAssociationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateCustomDomainAssociationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateCustomDomainAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ThrottlingException", errorCode): + return awsAwsjson11_deserializeErrorThrottlingException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateEndpointAccess struct { +} + +func (*awsAwsjson11_deserializeOpUpdateEndpointAccess) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateEndpointAccess) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateEndpointAccess(response, &metadata) + } + output := &UpdateEndpointAccessOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateEndpointAccessOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateEndpointAccess(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateNamespace struct { +} + +func (*awsAwsjson11_deserializeOpUpdateNamespace) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateNamespace) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateNamespace(response, &metadata) + } + output := &UpdateNamespaceOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateNamespaceOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateNamespace(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateScheduledAction struct { +} + +func (*awsAwsjson11_deserializeOpUpdateScheduledAction) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateScheduledAction) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateScheduledAction(response, &metadata) + } + output := &UpdateScheduledActionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateScheduledActionOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateScheduledAction(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateSnapshot struct { +} + +func (*awsAwsjson11_deserializeOpUpdateSnapshot) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSnapshot(response, &metadata) + } + output := &UpdateSnapshotOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateSnapshotOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateSnapshotCopyConfiguration struct { +} + +func (*awsAwsjson11_deserializeOpUpdateSnapshotCopyConfiguration) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateSnapshotCopyConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateSnapshotCopyConfiguration(response, &metadata) + } + output := &UpdateSnapshotCopyConfigurationOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateSnapshotCopyConfigurationOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateSnapshotCopyConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("AccessDeniedException", errorCode): + return awsAwsjson11_deserializeErrorAccessDeniedException(response, errorBody) + + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateUsageLimit struct { +} + +func (*awsAwsjson11_deserializeOpUpdateUsageLimit) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateUsageLimit) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateUsageLimit(response, &metadata) + } + output := &UpdateUsageLimitOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateUsageLimitOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateUsageLimit(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsAwsjson11_deserializeOpUpdateWorkgroup struct { +} + +func (*awsAwsjson11_deserializeOpUpdateWorkgroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsAwsjson11_deserializeOpUpdateWorkgroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsAwsjson11_deserializeOpErrorUpdateWorkgroup(response, &metadata) + } + output := &UpdateWorkgroupOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(response.Body, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + err = awsAwsjson11_deserializeOpDocumentUpdateWorkgroupOutput(&output, shape) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsAwsjson11_deserializeOpErrorUpdateWorkgroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + headerCode := response.Header.Get("X-Amzn-ErrorType") + if len(headerCode) != 0 { + errorCode = restjson.SanitizeErrorCode(headerCode) + } + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + jsonCode, message, err := restjson.GetErrorInfo(decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + if len(headerCode) == 0 && len(jsonCode) != 0 { + errorCode = restjson.SanitizeErrorCode(jsonCode) + } + if len(message) != 0 { + errorMessage = message + } + + switch { + case strings.EqualFold("ConflictException", errorCode): + return awsAwsjson11_deserializeErrorConflictException(response, errorBody) + + case strings.EqualFold("InsufficientCapacityException", errorCode): + return awsAwsjson11_deserializeErrorInsufficientCapacityException(response, errorBody) + + case strings.EqualFold("InternalServerException", errorCode): + return awsAwsjson11_deserializeErrorInternalServerException(response, errorBody) + + case strings.EqualFold("ResourceNotFoundException", errorCode): + return awsAwsjson11_deserializeErrorResourceNotFoundException(response, errorBody) + + case strings.EqualFold("ValidationException", errorCode): + return awsAwsjson11_deserializeErrorValidationException(response, errorBody) + + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +func awsAwsjson11_deserializeErrorAccessDeniedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.AccessDeniedException{} + err := awsAwsjson11_deserializeDocumentAccessDeniedException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + errorBody.Seek(0, io.SeekStart) + return output +} + +func awsAwsjson11_deserializeErrorConflictException(response *smithyhttp.Response, errorBody *bytes.Reader) error { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + + body := io.TeeReader(errorBody, ringBuffer) + decoder := json.NewDecoder(body) + decoder.UseNumber() + var shape interface{} + if err := decoder.Decode(&shape); err != nil && err != io.EOF { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return err + } + + output := &types.ConflictException{} + err := awsAwsjson11_deserializeDocumentConflictException(&output, shape) + + if err != nil { + var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) err = &smithy.DeserializationError{ Err: fmt.Errorf("failed to decode response body, %w", err), @@ -6107,6 +7317,73 @@ func awsAwsjson11_deserializeDocumentConflictException(v **types.ConflictExcepti return nil } +func awsAwsjson11_deserializeDocumentCreateSnapshotScheduleActionParameters(v **types.CreateSnapshotScheduleActionParameters, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CreateSnapshotScheduleActionParameters + if *v == nil { + sv = &types.CreateSnapshotScheduleActionParameters{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "namespaceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) + } + sv.NamespaceName = ptr.String(jtv) + } + + case "retentionPeriod": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.RetentionPeriod = ptr.Int32(int32(i64)) + } + + case "snapshotNamePrefix": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SnapshotNamePrefix to be of type string, got %T instead", value) + } + sv.SnapshotNamePrefix = ptr.String(jtv) + } + + case "tags": + if err := awsAwsjson11_deserializeDocumentTagList(&sv.Tags, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEndpoint(v **types.Endpoint, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -6774,12 +8051,55 @@ func awsAwsjson11_deserializeDocumentNetworkInterfaceList(v *[]types.NetworkInte } for _, value := range shape { - var col types.NetworkInterface - destAddr := &col - if err := awsAwsjson11_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { - return err + var col types.NetworkInterface + destAddr := &col + if err := awsAwsjson11_deserializeDocumentNetworkInterface(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentNextInvocationsList(v *[]time.Time, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []time.Time + if *v == nil { + cv = []time.Time{} + } else { + cv = *v + } + + for _, value := range shape { + var col time.Time + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + col = smithytime.ParseEpochSeconds(f64) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } } - col = *destAddr cv = append(cv, col) } @@ -7033,6 +8353,235 @@ func awsAwsjson11_deserializeDocumentResourcePolicy(v **types.ResourcePolicy, va return nil } +func awsAwsjson11_deserializeDocumentSchedule(v *types.Schedule, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.Schedule +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "at": + var mv time.Time + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + mv = smithytime.ParseEpochSeconds(f64) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + uv = &types.ScheduleMemberAt{Value: mv} + break loop + + case "cron": + var mv string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + mv = jtv + } + uv = &types.ScheduleMemberCron{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsAwsjson11_deserializeDocumentScheduledActionResponse(v **types.ScheduledActionResponse, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ScheduledActionResponse + if *v == nil { + sv = &types.ScheduledActionResponse{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "endTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.EndTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "namespaceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) + } + sv.NamespaceName = ptr.String(jtv) + } + + case "nextInvocations": + if err := awsAwsjson11_deserializeDocumentNextInvocationsList(&sv.NextInvocations, value); err != nil { + return err + } + + case "roleArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected IamRoleArn to be of type string, got %T instead", value) + } + sv.RoleArn = ptr.String(jtv) + } + + case "schedule": + if err := awsAwsjson11_deserializeDocumentSchedule(&sv.Schedule, value); err != nil { + return err + } + + case "scheduledActionDescription": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ScheduledActionDescription = ptr.String(jtv) + } + + case "scheduledActionName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ScheduledActionName to be of type string, got %T instead", value) + } + sv.ScheduledActionName = ptr.String(jtv) + } + + case "scheduledActionUuid": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ScheduledActionUuid = ptr.String(jtv) + } + + case "startTime": + if value != nil { + switch jtv := value.(type) { + case json.Number: + f64, err := jtv.Float64() + if err != nil { + return err + } + sv.StartTime = ptr.Time(smithytime.ParseEpochSeconds(f64)) + + default: + return fmt.Errorf("expected Timestamp to be a JSON Number, got %T instead", value) + + } + } + + case "state": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected State to be of type string, got %T instead", value) + } + sv.State = types.State(jtv) + } + + case "targetAction": + if err := awsAwsjson11_deserializeDocumentTargetAction(&sv.TargetAction, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentScheduledActionsList(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected ScheduledActionName to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentSecurityGroupIdList(v *[]string, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7439,10 +8988,99 @@ func awsAwsjson11_deserializeDocumentSnapshot(v **types.Snapshot, value interfac } sv.TotalBackupSizeInMegaBytes = ptr.Float64(f64) - default: - return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + default: + return fmt.Errorf("expected Double to be a JSON Number, got %T instead", value) + + } + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSnapshotCopyConfiguration(v **types.SnapshotCopyConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SnapshotCopyConfiguration + if *v == nil { + sv = &types.SnapshotCopyConfiguration{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "destinationKmsKeyId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected KmsKeyId to be of type string, got %T instead", value) + } + sv.DestinationKmsKeyId = ptr.String(jtv) + } + + case "destinationRegion": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.DestinationRegion = ptr.String(jtv) + } + + case "namespaceName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NamespaceName to be of type string, got %T instead", value) + } + sv.NamespaceName = ptr.String(jtv) + } + + case "snapshotCopyConfigurationArn": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SnapshotCopyConfigurationArn = ptr.String(jtv) + } + + case "snapshotCopyConfigurationId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.SnapshotCopyConfigurationId = ptr.String(jtv) + } + case "snapshotRetentionPeriod": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Integer to be json.Number, got %T instead", value) } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.SnapshotRetentionPeriod = ptr.Int32(int32(i64)) } default: @@ -7454,6 +9092,40 @@ func awsAwsjson11_deserializeDocumentSnapshot(v **types.Snapshot, value interfac return nil } +func awsAwsjson11_deserializeDocumentSnapshotCopyConfigurations(v *[]types.SnapshotCopyConfiguration, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.SnapshotCopyConfiguration + if *v == nil { + cv = []types.SnapshotCopyConfiguration{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.SnapshotCopyConfiguration + destAddr := &col + if err := awsAwsjson11_deserializeDocumentSnapshotCopyConfiguration(&destAddr, value); err != nil { + return err + } + col = *destAddr + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentSnapshotList(v *[]types.Snapshot, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -7586,6 +9258,15 @@ func awsAwsjson11_deserializeDocumentTableRestoreStatus(v **types.TableRestoreSt sv.ProgressInMegaBytes = ptr.Int64(i64) } + case "recoveryPointId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.RecoveryPointId = ptr.String(jtv) + } + case "requestTime": if value != nil { switch jtv := value.(type) { @@ -7822,6 +9503,46 @@ func awsAwsjson11_deserializeDocumentTagList(v *[]types.Tag, value interface{}) return nil } +func awsAwsjson11_deserializeDocumentTargetAction(v *types.TargetAction, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.TargetAction +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "createSnapshot": + var mv types.CreateSnapshotScheduleActionParameters + destAddr := &mv + if err := awsAwsjson11_deserializeDocumentCreateSnapshotScheduleActionParameters(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.TargetActionMemberCreateSnapshot{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + func awsAwsjson11_deserializeDocumentThrottlingException(v **types.ThrottlingException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8180,6 +9901,42 @@ func awsAwsjson11_deserializeDocumentVpcEndpointList(v *[]types.VpcEndpoint, val return nil } +func awsAwsjson11_deserializeDocumentVpcIds(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentVpcSecurityGroupMembership(v **types.VpcSecurityGroupMembership, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8316,6 +10073,11 @@ func awsAwsjson11_deserializeDocumentWorkgroup(v **types.Workgroup, value interf sv.CreationDate = ptr.Time(t) } + case "crossAccountVpcs": + if err := awsAwsjson11_deserializeDocumentVpcIds(&sv.CrossAccountVpcs, value); err != nil { + return err + } + case "customDomainCertificateArn": if value != nil { jtv, ok := value.(string) @@ -8691,6 +10453,78 @@ func awsAwsjson11_deserializeOpDocumentCreateNamespaceOutput(v **CreateNamespace return nil } +func awsAwsjson11_deserializeOpDocumentCreateScheduledActionOutput(v **CreateScheduledActionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateScheduledActionOutput + if *v == nil { + sv = &CreateScheduledActionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "scheduledAction": + if err := awsAwsjson11_deserializeDocumentScheduledActionResponse(&sv.ScheduledAction, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentCreateSnapshotCopyConfigurationOutput(v **CreateSnapshotCopyConfigurationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateSnapshotCopyConfigurationOutput + if *v == nil { + sv = &CreateSnapshotCopyConfigurationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "snapshotCopyConfiguration": + if err := awsAwsjson11_deserializeDocumentSnapshotCopyConfiguration(&sv.SnapshotCopyConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -8742,18 +10576,85 @@ func awsAwsjson11_deserializeOpDocumentCreateUsageLimitOutput(v **CreateUsageLim var sv *CreateUsageLimitOutput if *v == nil { - sv = &CreateUsageLimitOutput{} + sv = &CreateUsageLimitOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "usageLimit": + if err := awsAwsjson11_deserializeDocumentUsageLimit(&sv.UsageLimit, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentCreateWorkgroupOutput(v **CreateWorkgroupOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *CreateWorkgroupOutput + if *v == nil { + sv = &CreateWorkgroupOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "workgroup": + if err := awsAwsjson11_deserializeDocumentWorkgroup(&sv.Workgroup, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentDeleteCustomDomainAssociationOutput(v **DeleteCustomDomainAssociationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *DeleteCustomDomainAssociationOutput + if *v == nil { + sv = &DeleteCustomDomainAssociationOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "usageLimit": - if err := awsAwsjson11_deserializeDocumentUsageLimit(&sv.UsageLimit, value); err != nil { - return err - } - default: _, _ = key, value @@ -8763,7 +10664,7 @@ func awsAwsjson11_deserializeOpDocumentCreateUsageLimitOutput(v **CreateUsageLim return nil } -func awsAwsjson11_deserializeOpDocumentCreateWorkgroupOutput(v **CreateWorkgroupOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentDeleteEndpointAccessOutput(v **DeleteEndpointAccessOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8776,17 +10677,17 @@ func awsAwsjson11_deserializeOpDocumentCreateWorkgroupOutput(v **CreateWorkgroup return fmt.Errorf("unexpected JSON type %v", value) } - var sv *CreateWorkgroupOutput + var sv *DeleteEndpointAccessOutput if *v == nil { - sv = &CreateWorkgroupOutput{} + sv = &DeleteEndpointAccessOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "workgroup": - if err := awsAwsjson11_deserializeDocumentWorkgroup(&sv.Workgroup, value); err != nil { + case "endpoint": + if err := awsAwsjson11_deserializeDocumentEndpointAccess(&sv.Endpoint, value); err != nil { return err } @@ -8799,7 +10700,7 @@ func awsAwsjson11_deserializeOpDocumentCreateWorkgroupOutput(v **CreateWorkgroup return nil } -func awsAwsjson11_deserializeOpDocumentDeleteCustomDomainAssociationOutput(v **DeleteCustomDomainAssociationOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespaceOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8812,15 +10713,20 @@ func awsAwsjson11_deserializeOpDocumentDeleteCustomDomainAssociationOutput(v **D return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteCustomDomainAssociationOutput + var sv *DeleteNamespaceOutput if *v == nil { - sv = &DeleteCustomDomainAssociationOutput{} + sv = &DeleteNamespaceOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "namespace": + if err := awsAwsjson11_deserializeDocumentNamespace(&sv.Namespace, value); err != nil { + return err + } + default: _, _ = key, value @@ -8830,7 +10736,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteCustomDomainAssociationOutput(v **D return nil } -func awsAwsjson11_deserializeOpDocumentDeleteEndpointAccessOutput(v **DeleteEndpointAccessOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentDeleteResourcePolicyOutput(v **DeleteResourcePolicyOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8843,20 +10749,15 @@ func awsAwsjson11_deserializeOpDocumentDeleteEndpointAccessOutput(v **DeleteEndp return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteEndpointAccessOutput + var sv *DeleteResourcePolicyOutput if *v == nil { - sv = &DeleteEndpointAccessOutput{} + sv = &DeleteResourcePolicyOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "endpoint": - if err := awsAwsjson11_deserializeDocumentEndpointAccess(&sv.Endpoint, value); err != nil { - return err - } - default: _, _ = key, value @@ -8866,7 +10767,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteEndpointAccessOutput(v **DeleteEndp return nil } -func awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespaceOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentDeleteScheduledActionOutput(v **DeleteScheduledActionOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8879,17 +10780,17 @@ func awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteNamespaceOutput + var sv *DeleteScheduledActionOutput if *v == nil { - sv = &DeleteNamespaceOutput{} + sv = &DeleteScheduledActionOutput{} } else { sv = *v } for key, value := range shape { switch key { - case "namespace": - if err := awsAwsjson11_deserializeDocumentNamespace(&sv.Namespace, value); err != nil { + case "scheduledAction": + if err := awsAwsjson11_deserializeDocumentScheduledActionResponse(&sv.ScheduledAction, value); err != nil { return err } @@ -8902,7 +10803,7 @@ func awsAwsjson11_deserializeOpDocumentDeleteNamespaceOutput(v **DeleteNamespace return nil } -func awsAwsjson11_deserializeOpDocumentDeleteResourcePolicyOutput(v **DeleteResourcePolicyOutput, value interface{}) error { +func awsAwsjson11_deserializeOpDocumentDeleteSnapshotCopyConfigurationOutput(v **DeleteSnapshotCopyConfigurationOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } @@ -8915,15 +10816,20 @@ func awsAwsjson11_deserializeOpDocumentDeleteResourcePolicyOutput(v **DeleteReso return fmt.Errorf("unexpected JSON type %v", value) } - var sv *DeleteResourcePolicyOutput + var sv *DeleteSnapshotCopyConfigurationOutput if *v == nil { - sv = &DeleteResourcePolicyOutput{} + sv = &DeleteSnapshotCopyConfigurationOutput{} } else { sv = *v } for key, value := range shape { switch key { + case "snapshotCopyConfiguration": + if err := awsAwsjson11_deserializeDocumentSnapshotCopyConfiguration(&sv.SnapshotCopyConfiguration, value); err != nil { + return err + } + default: _, _ = key, value @@ -9337,6 +11243,42 @@ func awsAwsjson11_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePo return nil } +func awsAwsjson11_deserializeOpDocumentGetScheduledActionOutput(v **GetScheduledActionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *GetScheduledActionOutput + if *v == nil { + sv = &GetScheduledActionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "scheduledAction": + if err := awsAwsjson11_deserializeDocumentScheduledActionResponse(&sv.ScheduledAction, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentGetSnapshotOutput(v **GetSnapshotOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -9661,6 +11603,96 @@ func awsAwsjson11_deserializeOpDocumentListRecoveryPointsOutput(v **ListRecovery return nil } +func awsAwsjson11_deserializeOpDocumentListScheduledActionsOutput(v **ListScheduledActionsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListScheduledActionsOutput + if *v == nil { + sv = &ListScheduledActionsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "scheduledActions": + if err := awsAwsjson11_deserializeDocumentScheduledActionsList(&sv.ScheduledActions, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentListSnapshotCopyConfigurationsOutput(v **ListSnapshotCopyConfigurationsOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *ListSnapshotCopyConfigurationsOutput + if *v == nil { + sv = &ListSnapshotCopyConfigurationsOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "nextToken": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PaginationToken to be of type string, got %T instead", value) + } + sv.NextToken = ptr.String(jtv) + } + + case "snapshotCopyConfigurations": + if err := awsAwsjson11_deserializeDocumentSnapshotCopyConfigurations(&sv.SnapshotCopyConfigurations, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentListSnapshotsOutput(v **ListSnapshotsOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -10012,6 +12044,42 @@ func awsAwsjson11_deserializeOpDocumentRestoreFromSnapshotOutput(v **RestoreFrom return nil } +func awsAwsjson11_deserializeOpDocumentRestoreTableFromRecoveryPointOutput(v **RestoreTableFromRecoveryPointOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *RestoreTableFromRecoveryPointOutput + if *v == nil { + sv = &RestoreTableFromRecoveryPointOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "tableRestoreStatus": + if err := awsAwsjson11_deserializeDocumentTableRestoreStatus(&sv.TableRestoreStatus, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentRestoreTableFromSnapshotOutput(v **RestoreTableFromSnapshotOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -10253,6 +12321,78 @@ func awsAwsjson11_deserializeOpDocumentUpdateNamespaceOutput(v **UpdateNamespace return nil } +func awsAwsjson11_deserializeOpDocumentUpdateScheduledActionOutput(v **UpdateScheduledActionOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateScheduledActionOutput + if *v == nil { + sv = &UpdateScheduledActionOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "scheduledAction": + if err := awsAwsjson11_deserializeDocumentScheduledActionResponse(&sv.ScheduledAction, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeOpDocumentUpdateSnapshotCopyConfigurationOutput(v **UpdateSnapshotCopyConfigurationOutput, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *UpdateSnapshotCopyConfigurationOutput + if *v == nil { + sv = &UpdateSnapshotCopyConfigurationOutput{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "snapshotCopyConfiguration": + if err := awsAwsjson11_deserializeDocumentSnapshotCopyConfiguration(&sv.SnapshotCopyConfiguration, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeOpDocumentUpdateSnapshotOutput(v **UpdateSnapshotOutput, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/redshiftserverless/generated.json b/service/redshiftserverless/generated.json index 42ca7c3aa98..83d5ed88291 100644 --- a/service/redshiftserverless/generated.json +++ b/service/redshiftserverless/generated.json @@ -13,14 +13,18 @@ "api_op_CreateCustomDomainAssociation.go", "api_op_CreateEndpointAccess.go", "api_op_CreateNamespace.go", + "api_op_CreateScheduledAction.go", "api_op_CreateSnapshot.go", + "api_op_CreateSnapshotCopyConfiguration.go", "api_op_CreateUsageLimit.go", "api_op_CreateWorkgroup.go", "api_op_DeleteCustomDomainAssociation.go", "api_op_DeleteEndpointAccess.go", "api_op_DeleteNamespace.go", "api_op_DeleteResourcePolicy.go", + "api_op_DeleteScheduledAction.go", "api_op_DeleteSnapshot.go", + "api_op_DeleteSnapshotCopyConfiguration.go", "api_op_DeleteUsageLimit.go", "api_op_DeleteWorkgroup.go", "api_op_GetCredentials.go", @@ -29,6 +33,7 @@ "api_op_GetNamespace.go", "api_op_GetRecoveryPoint.go", "api_op_GetResourcePolicy.go", + "api_op_GetScheduledAction.go", "api_op_GetSnapshot.go", "api_op_GetTableRestoreStatus.go", "api_op_GetUsageLimit.go", @@ -37,6 +42,8 @@ "api_op_ListEndpointAccess.go", "api_op_ListNamespaces.go", "api_op_ListRecoveryPoints.go", + "api_op_ListScheduledActions.go", + "api_op_ListSnapshotCopyConfigurations.go", "api_op_ListSnapshots.go", "api_op_ListTableRestoreStatus.go", "api_op_ListTagsForResource.go", @@ -45,13 +52,16 @@ "api_op_PutResourcePolicy.go", "api_op_RestoreFromRecoveryPoint.go", "api_op_RestoreFromSnapshot.go", + "api_op_RestoreTableFromRecoveryPoint.go", "api_op_RestoreTableFromSnapshot.go", "api_op_TagResource.go", "api_op_UntagResource.go", "api_op_UpdateCustomDomainAssociation.go", "api_op_UpdateEndpointAccess.go", "api_op_UpdateNamespace.go", + "api_op_UpdateScheduledAction.go", "api_op_UpdateSnapshot.go", + "api_op_UpdateSnapshotCopyConfiguration.go", "api_op_UpdateUsageLimit.go", "api_op_UpdateWorkgroup.go", "auth.go", @@ -69,6 +79,7 @@ "types/enums.go", "types/errors.go", "types/types.go", + "types/types_exported_test.go", "validators.go" ], "go": "1.15", diff --git a/service/redshiftserverless/go.mod b/service/redshiftserverless/go.mod index 0250fc289fb..db95375c04b 100644 --- a/service/redshiftserverless/go.mod +++ b/service/redshiftserverless/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/redshiftserverless go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/redshiftserverless/go.sum b/service/redshiftserverless/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/redshiftserverless/go.sum +++ b/service/redshiftserverless/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/redshiftserverless/go_module_metadata.go b/service/redshiftserverless/go_module_metadata.go index 39e46bc0dbd..093c7cebd26 100644 --- a/service/redshiftserverless/go_module_metadata.go +++ b/service/redshiftserverless/go_module_metadata.go @@ -3,4 +3,4 @@ package redshiftserverless // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.15.1" diff --git a/service/redshiftserverless/internal/endpoints/endpoints.go b/service/redshiftserverless/internal/endpoints/endpoints.go index 620bb72267a..fb6c3bd6fcc 100644 --- a/service/redshiftserverless/internal/endpoints/endpoints.go +++ b/service/redshiftserverless/internal/endpoints/endpoints.go @@ -220,6 +220,11 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.AwsCn, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "cn-north-1", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-iso", diff --git a/service/redshiftserverless/options.go b/service/redshiftserverless/options.go index 26b01044e24..c9e21327870 100644 --- a/service/redshiftserverless/options.go +++ b/service/redshiftserverless/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/redshiftserverless/serializers.go b/service/redshiftserverless/serializers.go index e2d66c84967..f853a079e7a 100644 --- a/service/redshiftserverless/serializers.go +++ b/service/redshiftserverless/serializers.go @@ -236,6 +236,61 @@ func (m *awsAwsjson11_serializeOpCreateNamespace) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpCreateScheduledAction struct { +} + +func (*awsAwsjson11_serializeOpCreateScheduledAction) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateScheduledAction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateScheduledActionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.CreateScheduledAction") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateScheduledActionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpCreateSnapshot struct { } @@ -291,6 +346,61 @@ func (m *awsAwsjson11_serializeOpCreateSnapshot) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpCreateSnapshotCopyConfiguration struct { +} + +func (*awsAwsjson11_serializeOpCreateSnapshotCopyConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpCreateSnapshotCopyConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateSnapshotCopyConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.CreateSnapshotCopyConfiguration") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentCreateSnapshotCopyConfigurationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpCreateUsageLimit struct { } @@ -621,6 +731,61 @@ func (m *awsAwsjson11_serializeOpDeleteResourcePolicy) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeleteScheduledAction struct { +} + +func (*awsAwsjson11_serializeOpDeleteScheduledAction) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeleteScheduledAction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteScheduledActionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.DeleteScheduledAction") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeleteScheduledActionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDeleteSnapshot struct { } @@ -676,6 +841,61 @@ func (m *awsAwsjson11_serializeOpDeleteSnapshot) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpDeleteSnapshotCopyConfiguration struct { +} + +func (*awsAwsjson11_serializeOpDeleteSnapshotCopyConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpDeleteSnapshotCopyConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteSnapshotCopyConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.DeleteSnapshotCopyConfiguration") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentDeleteSnapshotCopyConfigurationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpDeleteUsageLimit struct { } @@ -1116,6 +1336,61 @@ func (m *awsAwsjson11_serializeOpGetResourcePolicy) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpGetScheduledAction struct { +} + +func (*awsAwsjson11_serializeOpGetScheduledAction) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpGetScheduledAction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*GetScheduledActionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.GetScheduledAction") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentGetScheduledActionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpGetSnapshot struct { } @@ -1556,14 +1831,14 @@ func (m *awsAwsjson11_serializeOpListRecoveryPoints) HandleSerialize(ctx context return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListSnapshots struct { +type awsAwsjson11_serializeOpListScheduledActions struct { } -func (*awsAwsjson11_serializeOpListSnapshots) ID() string { +func (*awsAwsjson11_serializeOpListScheduledActions) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListScheduledActions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1571,7 +1846,7 @@ func (m *awsAwsjson11_serializeOpListSnapshots) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListSnapshotsInput) + input, ok := in.Parameters.(*ListScheduledActionsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1592,10 +1867,10 @@ func (m *awsAwsjson11_serializeOpListSnapshots) HandleSerialize(ctx context.Cont return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.ListSnapshots") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.ListScheduledActions") jsonEncoder := smithyjson.NewEncoder() - if err := awsAwsjson11_serializeOpDocumentListSnapshotsInput(input, jsonEncoder.Value); err != nil { + if err := awsAwsjson11_serializeOpDocumentListScheduledActionsInput(input, jsonEncoder.Value); err != nil { return out, metadata, &smithy.SerializationError{Err: err} } @@ -1611,14 +1886,14 @@ func (m *awsAwsjson11_serializeOpListSnapshots) HandleSerialize(ctx context.Cont return next.HandleSerialize(ctx, in) } -type awsAwsjson11_serializeOpListTableRestoreStatus struct { +type awsAwsjson11_serializeOpListSnapshotCopyConfigurations struct { } -func (*awsAwsjson11_serializeOpListTableRestoreStatus) ID() string { +func (*awsAwsjson11_serializeOpListSnapshotCopyConfigurations) ID() string { return "OperationSerializer" } -func (m *awsAwsjson11_serializeOpListTableRestoreStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsAwsjson11_serializeOpListSnapshotCopyConfigurations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { request, ok := in.Request.(*smithyhttp.Request) @@ -1626,7 +1901,7 @@ func (m *awsAwsjson11_serializeOpListTableRestoreStatus) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*ListTableRestoreStatusInput) + input, ok := in.Parameters.(*ListSnapshotCopyConfigurationsInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -1647,7 +1922,117 @@ func (m *awsAwsjson11_serializeOpListTableRestoreStatus) HandleSerialize(ctx con return out, metadata, &smithy.SerializationError{Err: err} } httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") - httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.ListTableRestoreStatus") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.ListSnapshotCopyConfigurations") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListSnapshotCopyConfigurationsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpListSnapshots struct { +} + +func (*awsAwsjson11_serializeOpListSnapshots) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListSnapshots) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListSnapshotsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.ListSnapshots") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentListSnapshotsInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + +type awsAwsjson11_serializeOpListTableRestoreStatus struct { +} + +func (*awsAwsjson11_serializeOpListTableRestoreStatus) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpListTableRestoreStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ListTableRestoreStatusInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.ListTableRestoreStatus") jsonEncoder := smithyjson.NewEncoder() if err := awsAwsjson11_serializeOpDocumentListTableRestoreStatusInput(input, jsonEncoder.Value); err != nil { @@ -1996,6 +2381,61 @@ func (m *awsAwsjson11_serializeOpRestoreFromSnapshot) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpRestoreTableFromRecoveryPoint struct { +} + +func (*awsAwsjson11_serializeOpRestoreTableFromRecoveryPoint) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpRestoreTableFromRecoveryPoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*RestoreTableFromRecoveryPointInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.RestoreTableFromRecoveryPoint") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentRestoreTableFromRecoveryPointInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpRestoreTableFromSnapshot struct { } @@ -2326,6 +2766,61 @@ func (m *awsAwsjson11_serializeOpUpdateNamespace) HandleSerialize(ctx context.Co return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpUpdateScheduledAction struct { +} + +func (*awsAwsjson11_serializeOpUpdateScheduledAction) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateScheduledAction) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateScheduledActionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.UpdateScheduledAction") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateScheduledActionInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpUpdateSnapshot struct { } @@ -2381,6 +2876,61 @@ func (m *awsAwsjson11_serializeOpUpdateSnapshot) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } +type awsAwsjson11_serializeOpUpdateSnapshotCopyConfiguration struct { +} + +func (*awsAwsjson11_serializeOpUpdateSnapshotCopyConfiguration) ID() string { + return "OperationSerializer" +} + +func (m *awsAwsjson11_serializeOpUpdateSnapshotCopyConfiguration) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*UpdateSnapshotCopyConfigurationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1") + httpBindingEncoder.SetHeader("X-Amz-Target").String("RedshiftServerless.UpdateSnapshotCopyConfiguration") + + jsonEncoder := smithyjson.NewEncoder() + if err := awsAwsjson11_serializeOpDocumentUpdateSnapshotCopyConfigurationInput(input, jsonEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + return next.HandleSerialize(ctx, in) +} + type awsAwsjson11_serializeOpUpdateUsageLimit struct { } @@ -2520,6 +3070,35 @@ func awsAwsjson11_serializeDocumentConfigParameterList(v []types.ConfigParameter return nil } +func awsAwsjson11_serializeDocumentCreateSnapshotScheduleActionParameters(v *types.CreateSnapshotScheduleActionParameters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.NamespaceName != nil { + ok := object.Key("namespaceName") + ok.String(*v.NamespaceName) + } + + if v.RetentionPeriod != nil { + ok := object.Key("retentionPeriod") + ok.Integer(*v.RetentionPeriod) + } + + if v.SnapshotNamePrefix != nil { + ok := object.Key("snapshotNamePrefix") + ok.String(*v.SnapshotNamePrefix) + } + + if v.Tags != nil { + ok := object.Key("tags") + if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentIamRoleArnList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -2542,6 +3121,26 @@ func awsAwsjson11_serializeDocumentLogExportList(v []types.LogExport, value smit return nil } +func awsAwsjson11_serializeDocumentSchedule(v types.Schedule, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.ScheduleMemberAt: + av := object.Key("at") + av.Double(smithytime.FormatEpochSeconds(uv.Value)) + + case *types.ScheduleMemberCron: + av := object.Key("cron") + av.String(uv.Value) + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + func awsAwsjson11_serializeDocumentSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -2605,6 +3204,24 @@ func awsAwsjson11_serializeDocumentTagList(v []types.Tag, value smithyjson.Value return nil } +func awsAwsjson11_serializeDocumentTargetAction(v types.TargetAction, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.TargetActionMemberCreateSnapshot: + av := object.Key("createSnapshot") + if err := awsAwsjson11_serializeDocumentCreateSnapshotScheduleActionParameters(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + func awsAwsjson11_serializeDocumentVpcSecurityGroupIdList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -2676,6 +3293,11 @@ func awsAwsjson11_serializeOpDocumentCreateEndpointAccessInput(v *CreateEndpoint ok.String(*v.EndpointName) } + if v.OwnerAccount != nil { + ok := object.Key("ownerAccount") + ok.String(*v.OwnerAccount) + } + if v.SubnetIds != nil { ok := object.Key("subnetIds") if err := awsAwsjson11_serializeDocumentSubnetIdList(v.SubnetIds, ok); err != nil { @@ -2771,6 +3393,89 @@ func awsAwsjson11_serializeOpDocumentCreateNamespaceInput(v *CreateNamespaceInpu return nil } +func awsAwsjson11_serializeOpDocumentCreateScheduledActionInput(v *CreateScheduledActionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Enabled != nil { + ok := object.Key("enabled") + ok.Boolean(*v.Enabled) + } + + if v.EndTime != nil { + ok := object.Key("endTime") + ok.Double(smithytime.FormatEpochSeconds(*v.EndTime)) + } + + if v.NamespaceName != nil { + ok := object.Key("namespaceName") + ok.String(*v.NamespaceName) + } + + if v.RoleArn != nil { + ok := object.Key("roleArn") + ok.String(*v.RoleArn) + } + + if v.Schedule != nil { + ok := object.Key("schedule") + if err := awsAwsjson11_serializeDocumentSchedule(v.Schedule, ok); err != nil { + return err + } + } + + if v.ScheduledActionDescription != nil { + ok := object.Key("scheduledActionDescription") + ok.String(*v.ScheduledActionDescription) + } + + if v.ScheduledActionName != nil { + ok := object.Key("scheduledActionName") + ok.String(*v.ScheduledActionName) + } + + if v.StartTime != nil { + ok := object.Key("startTime") + ok.Double(smithytime.FormatEpochSeconds(*v.StartTime)) + } + + if v.TargetAction != nil { + ok := object.Key("targetAction") + if err := awsAwsjson11_serializeDocumentTargetAction(v.TargetAction, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentCreateSnapshotCopyConfigurationInput(v *CreateSnapshotCopyConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DestinationKmsKeyId != nil { + ok := object.Key("destinationKmsKeyId") + ok.String(*v.DestinationKmsKeyId) + } + + if v.DestinationRegion != nil { + ok := object.Key("destinationRegion") + ok.String(*v.DestinationRegion) + } + + if v.NamespaceName != nil { + ok := object.Key("namespaceName") + ok.String(*v.NamespaceName) + } + + if v.SnapshotRetentionPeriod != nil { + ok := object.Key("snapshotRetentionPeriod") + ok.Integer(*v.SnapshotRetentionPeriod) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentCreateSnapshotInput(v *CreateSnapshotInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2965,6 +3670,30 @@ func awsAwsjson11_serializeOpDocumentDeleteResourcePolicyInput(v *DeleteResource return nil } +func awsAwsjson11_serializeOpDocumentDeleteScheduledActionInput(v *DeleteScheduledActionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ScheduledActionName != nil { + ok := object.Key("scheduledActionName") + ok.String(*v.ScheduledActionName) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentDeleteSnapshotCopyConfigurationInput(v *DeleteSnapshotCopyConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SnapshotCopyConfigurationId != nil { + ok := object.Key("snapshotCopyConfigurationId") + ok.String(*v.SnapshotCopyConfigurationId) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentDeleteSnapshotInput(v *DeleteSnapshotInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3093,6 +3822,18 @@ func awsAwsjson11_serializeOpDocumentGetResourcePolicyInput(v *GetResourcePolicy return nil } +func awsAwsjson11_serializeOpDocumentGetScheduledActionInput(v *GetScheduledActionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ScheduledActionName != nil { + ok := object.Key("scheduledActionName") + ok.String(*v.ScheduledActionName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentGetSnapshotInput(v *GetSnapshotInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3192,6 +3933,11 @@ func awsAwsjson11_serializeOpDocumentListEndpointAccessInput(v *ListEndpointAcce ok.String(*v.NextToken) } + if v.OwnerAccount != nil { + ok := object.Key("ownerAccount") + ok.String(*v.OwnerAccount) + } + if v.VpcId != nil { ok := object.Key("vpcId") ok.String(*v.VpcId) @@ -3259,6 +4005,50 @@ func awsAwsjson11_serializeOpDocumentListRecoveryPointsInput(v *ListRecoveryPoin return nil } +func awsAwsjson11_serializeOpDocumentListScheduledActionsInput(v *ListScheduledActionsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxResults != nil { + ok := object.Key("maxResults") + ok.Integer(*v.MaxResults) + } + + if v.NamespaceName != nil { + ok := object.Key("namespaceName") + ok.String(*v.NamespaceName) + } + + if v.NextToken != nil { + ok := object.Key("nextToken") + ok.String(*v.NextToken) + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentListSnapshotCopyConfigurationsInput(v *ListSnapshotCopyConfigurationsInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.MaxResults != nil { + ok := object.Key("maxResults") + ok.Integer(*v.MaxResults) + } + + if v.NamespaceName != nil { + ok := object.Key("namespaceName") + ok.String(*v.NamespaceName) + } + + if v.NextToken != nil { + ok := object.Key("nextToken") + ok.String(*v.NextToken) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentListSnapshotsInput(v *ListSnapshotsInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3381,6 +4171,11 @@ func awsAwsjson11_serializeOpDocumentListWorkgroupsInput(v *ListWorkgroupsInput, ok.String(*v.NextToken) } + if v.OwnerAccount != nil { + ok := object.Key("ownerAccount") + ok.String(*v.OwnerAccount) + } + return nil } @@ -3465,6 +4260,63 @@ func awsAwsjson11_serializeOpDocumentRestoreFromSnapshotInput(v *RestoreFromSnap return nil } +func awsAwsjson11_serializeOpDocumentRestoreTableFromRecoveryPointInput(v *RestoreTableFromRecoveryPointInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ActivateCaseSensitiveIdentifier != nil { + ok := object.Key("activateCaseSensitiveIdentifier") + ok.Boolean(*v.ActivateCaseSensitiveIdentifier) + } + + if v.NamespaceName != nil { + ok := object.Key("namespaceName") + ok.String(*v.NamespaceName) + } + + if v.NewTableName != nil { + ok := object.Key("newTableName") + ok.String(*v.NewTableName) + } + + if v.RecoveryPointId != nil { + ok := object.Key("recoveryPointId") + ok.String(*v.RecoveryPointId) + } + + if v.SourceDatabaseName != nil { + ok := object.Key("sourceDatabaseName") + ok.String(*v.SourceDatabaseName) + } + + if v.SourceSchemaName != nil { + ok := object.Key("sourceSchemaName") + ok.String(*v.SourceSchemaName) + } + + if v.SourceTableName != nil { + ok := object.Key("sourceTableName") + ok.String(*v.SourceTableName) + } + + if v.TargetDatabaseName != nil { + ok := object.Key("targetDatabaseName") + ok.String(*v.TargetDatabaseName) + } + + if v.TargetSchemaName != nil { + ok := object.Key("targetSchemaName") + ok.String(*v.TargetSchemaName) + } + + if v.WorkgroupName != nil { + ok := object.Key("workgroupName") + ok.String(*v.WorkgroupName) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentRestoreTableFromSnapshotInput(v *RestoreTableFromSnapshotInput, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -3657,6 +4509,74 @@ func awsAwsjson11_serializeOpDocumentUpdateNamespaceInput(v *UpdateNamespaceInpu return nil } +func awsAwsjson11_serializeOpDocumentUpdateScheduledActionInput(v *UpdateScheduledActionInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Enabled != nil { + ok := object.Key("enabled") + ok.Boolean(*v.Enabled) + } + + if v.EndTime != nil { + ok := object.Key("endTime") + ok.Double(smithytime.FormatEpochSeconds(*v.EndTime)) + } + + if v.RoleArn != nil { + ok := object.Key("roleArn") + ok.String(*v.RoleArn) + } + + if v.Schedule != nil { + ok := object.Key("schedule") + if err := awsAwsjson11_serializeDocumentSchedule(v.Schedule, ok); err != nil { + return err + } + } + + if v.ScheduledActionDescription != nil { + ok := object.Key("scheduledActionDescription") + ok.String(*v.ScheduledActionDescription) + } + + if v.ScheduledActionName != nil { + ok := object.Key("scheduledActionName") + ok.String(*v.ScheduledActionName) + } + + if v.StartTime != nil { + ok := object.Key("startTime") + ok.Double(smithytime.FormatEpochSeconds(*v.StartTime)) + } + + if v.TargetAction != nil { + ok := object.Key("targetAction") + if err := awsAwsjson11_serializeDocumentTargetAction(v.TargetAction, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeOpDocumentUpdateSnapshotCopyConfigurationInput(v *UpdateSnapshotCopyConfigurationInput, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.SnapshotCopyConfigurationId != nil { + ok := object.Key("snapshotCopyConfigurationId") + ok.String(*v.SnapshotCopyConfigurationId) + } + + if v.SnapshotRetentionPeriod != nil { + ok := object.Key("snapshotRetentionPeriod") + ok.Integer(*v.SnapshotRetentionPeriod) + } + + return nil +} + func awsAwsjson11_serializeOpDocumentUpdateSnapshotInput(v *UpdateSnapshotInput, value smithyjson.Value) error { object := value.Object() defer object.Close() diff --git a/service/redshiftserverless/types/enums.go b/service/redshiftserverless/types/enums.go index 0eb1b497e16..67ff9aeda43 100644 --- a/service/redshiftserverless/types/enums.go +++ b/service/redshiftserverless/types/enums.go @@ -68,6 +68,24 @@ func (SnapshotStatus) Values() []SnapshotStatus { } } +type State string + +// Enum values for State +const ( + StateActive State = "ACTIVE" + StateDisabled State = "DISABLED" +) + +// Values returns all known values for State. Note that this can be expanded in +// the future, and so it is only as up to date as the client. The ordering of this +// slice is not guaranteed to be stable across updates. +func (State) Values() []State { + return []State{ + "ACTIVE", + "DISABLED", + } +} + type UsageLimitBreachAction string // Enum values for UsageLimitBreachAction diff --git a/service/redshiftserverless/types/types.go b/service/redshiftserverless/types/types.go index c9ab443f102..acf3cee37e1 100644 --- a/service/redshiftserverless/types/types.go +++ b/service/redshiftserverless/types/types.go @@ -30,8 +30,8 @@ type Association struct { type ConfigParameter struct { // The key of the parameter. The options are auto_mv , datestyle , - // enable_case_sensitivity_identifier , enable_user_activity_logging , query_group - // , search_path , and query monitoring metrics that let you define performance + // enable_case_sensitive_identifier , enable_user_activity_logging , query_group , + // search_path , and query monitoring metrics that let you define performance // boundaries. For more information about query monitoring rules and available // metrics, see Query monitoring metrics for Amazon Redshift Serverless (https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless) // . @@ -43,6 +43,35 @@ type ConfigParameter struct { noSmithyDocumentSerde } +// The parameters that you can use to configure a scheduled action (https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateScheduledAction.html) +// to create a snapshot. For more information about creating a scheduled action, +// see CreateScheduledAction (https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateScheduledAction.html) +// . +type CreateSnapshotScheduleActionParameters struct { + + // The name of the namespace for which you want to configure a scheduled action to + // create a snapshot. + // + // This member is required. + NamespaceName *string + + // A string prefix that is attached to the name of the snapshot created by the + // scheduled action. The final name of the snapshot is the string prefix appended + // by the date and time of when the snapshot was created. + // + // This member is required. + SnapshotNamePrefix *string + + // The retention period of the snapshot created by the scheduled action. + RetentionPeriod *int32 + + // An array of Tag objects (https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_Tag.html) + // to associate with the snapshot. + Tags []Tag + + noSmithyDocumentSerde +} + // The VPC endpoint object. type Endpoint struct { @@ -208,6 +237,97 @@ type ResourcePolicy struct { noSmithyDocumentSerde } +// The schedule of when Amazon Redshift Serverless should run the scheduled action. +// +// The following types satisfy this interface: +// +// ScheduleMemberAt +// ScheduleMemberCron +type Schedule interface { + isSchedule() +} + +// The timestamp of when Amazon Redshift Serverless should run the scheduled +// action. Format of at expressions is " at(yyyy-mm-ddThh:mm:ss) ". For example, " +// at(2016-03-04T17:27:00) ". +type ScheduleMemberAt struct { + Value time.Time + + noSmithyDocumentSerde +} + +func (*ScheduleMemberAt) isSchedule() {} + +// The cron expression to use to schedule a recurring scheduled action. Schedule +// invocations must be separated by at least one hour. Format of cron expressions +// is " cron(Minutes Hours Day-of-month Month Day-of-week Year) ". For example, " +// cron(0 10 ? * MON *) ". For more information, see Cron Expressions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions) +// in the Amazon CloudWatch Events User Guide. +type ScheduleMemberCron struct { + Value string + + noSmithyDocumentSerde +} + +func (*ScheduleMemberCron) isSchedule() {} + +// The returned scheduled action object. +type ScheduledActionResponse struct { + + // The end time of + EndTime *time.Time + + // The end time in UTC when the schedule is no longer active. After this time, the + // scheduled action does not trigger. + NamespaceName *string + + // An array of timestamps of when the next scheduled actions will trigger. + NextInvocations []time.Time + + // The ARN of the IAM role to assume to run the scheduled action. This IAM role + // must have permission to run the Amazon Redshift Serverless API operation in the + // scheduled action. This IAM role must allow the Amazon Redshift scheduler to + // schedule creating snapshots. (Principal scheduler.redshift.amazonaws.com) to + // assume permissions on your behalf. For more information about the IAM role to + // use with the Amazon Redshift scheduler, see Using Identity-Based Policies for + // Amazon Redshift (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html) + // in the Amazon Redshift Cluster Management Guide + RoleArn *string + + // The schedule for a one-time (at format) or recurring (cron format) scheduled + // action. Schedule invocations must be separated by at least one hour. Format of + // at expressions is " at(yyyy-mm-ddThh:mm:ss) ". For example, " + // at(2016-03-04T17:27:00) ". Format of cron expressions is " cron(Minutes Hours + // Day-of-month Month Day-of-week Year) ". For example, " cron(0 10 ? * MON *) ". + // For more information, see Cron Expressions (https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions) + // in the Amazon CloudWatch Events User Guide. + Schedule Schedule + + // The description of the scheduled action. + ScheduledActionDescription *string + + // The name of the scheduled action. + ScheduledActionName *string + + // The uuid of the scheduled action. + ScheduledActionUuid *string + + // The start time in UTC when the schedule is active. Before this time, the + // scheduled action does not trigger. + StartTime *time.Time + + // The state of the scheduled action. + State State + + // A JSON format string of the Amazon Redshift Serverless API operation with input + // parameters. The following is an example of a target action. "{"CreateSnapshot": + // {"NamespaceName": "sampleNamespace","SnapshotName": "sampleSnapshot", + // "retentionPeriod": "1"}}" + TargetAction TargetAction + + noSmithyDocumentSerde +} + // A snapshot object that contains databases. type Snapshot struct { @@ -284,11 +404,39 @@ type Snapshot struct { noSmithyDocumentSerde } +// The object that you configure to copy snapshots from one namespace to a +// namespace in another Amazon Web Services Region. +type SnapshotCopyConfiguration struct { + + // The ID of the KMS key to use to encrypt your snapshots in the destination + // Amazon Web Services Region. + DestinationKmsKeyId *string + + // The destination Amazon Web Services Region to copy snapshots to. + DestinationRegion *string + + // The name of the namespace to copy snapshots from in the source Amazon Web + // Services Region. + NamespaceName *string + + // The ARN of the snapshot copy configuration object. + SnapshotCopyConfigurationArn *string + + // The ID of the snapshot copy configuration object. + SnapshotCopyConfigurationId *string + + // The retention period of snapshots that are copied to the destination Amazon Web + // Services Region. + SnapshotRetentionPeriod *int32 + + noSmithyDocumentSerde +} + // Contains information about a table restore request. type TableRestoreStatus struct { - // A description of the status of the table restore request. Status values include - // SUCCEEDED , FAILED , CANCELED , PENDING , IN_PROGRESS . + // A message that explains the returned status. For example, if the status of the + // operation is FAILED , the message explains why the operation failed. Message *string // The namespace of the table being restored from. @@ -300,6 +448,9 @@ type TableRestoreStatus struct { // The amount of data restored to the new table so far, in megabytes (MB). ProgressInMegaBytes *int64 + // The ID of the recovery point being restored from. + RecoveryPointId *string + // The time that the table restore request was made, in Universal Coordinated Time // (UTC). RequestTime *time.Time @@ -317,7 +468,7 @@ type TableRestoreStatus struct { SourceTableName *string // A value that describes the current state of the table restore request. Possible - // values include SUCCEEDED , FAILED , CANCELED , PENDING , IN_PROGRESS . + // values are SUCCEEDED , FAILED , CANCELED , PENDING , and IN_PROGRESS . Status *string // The ID of the RestoreTableFromSnapshot request. @@ -354,6 +505,30 @@ type Tag struct { noSmithyDocumentSerde } +// A JSON format string of the Amazon Redshift Serverless API operation with input +// parameters. The following is an example of a target action. "{"CreateSnapshot": +// {"NamespaceName": "sampleNamespace","SnapshotName": "sampleSnapshot", +// "retentionPeriod": "1"}}" +// +// The following types satisfy this interface: +// +// TargetActionMemberCreateSnapshot +type TargetAction interface { + isTargetAction() +} + +// The parameters that you can use to configure a scheduled action (https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateScheduledAction.html) +// to create a snapshot. For more information about creating a scheduled action, +// see CreateScheduledAction (https://docs.aws.amazon.com/redshift-serverless/latest/APIReference/API_CreateScheduledAction.html) +// . +type TargetActionMemberCreateSnapshot struct { + Value CreateSnapshotScheduleActionParameters + + noSmithyDocumentSerde +} + +func (*TargetActionMemberCreateSnapshot) isTargetAction() {} + // The usage limit object. type UsageLimit struct { @@ -422,17 +597,22 @@ type Workgroup struct { BaseCapacity *int32 // An array of parameters to set for advanced control over a database. The options - // are auto_mv , datestyle , enable_case_sensitivity_identifier , - // enable_user_activity_logging , query_group , , search_path , and query - // monitoring metrics that let you define performance boundaries. For more - // information about query monitoring rules and available metrics, see Query - // monitoring metrics for Amazon Redshift Serverless (https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless) + // are auto_mv , datestyle , enable_case_sensitive_identifier , + // enable_user_activity_logging , query_group , search_path , and query monitoring + // metrics that let you define performance boundaries. For more information about + // query monitoring rules and available metrics, see Query monitoring metrics for + // Amazon Redshift Serverless (https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless) // . ConfigParameters []ConfigParameter // The creation date of the workgroup. CreationDate *time.Time + // A list of VPCs. Each entry is the unique identifier of a virtual private cloud + // with access to Amazon Redshift Serverless. If all of the VPCs for the grantee + // are allowed, it shows an asterisk. + CrossAccountVpcs []string + // The custom domain name’s certificate Amazon resource name (ARN). CustomDomainCertificateArn *string @@ -498,3 +678,15 @@ type Workgroup struct { } type noSmithyDocumentSerde = smithydocument.NoSerde + +// UnknownUnionMember is returned when a union member is returned over the wire, +// but has an unknown tag. +type UnknownUnionMember struct { + Tag string + Value []byte + + noSmithyDocumentSerde +} + +func (*UnknownUnionMember) isSchedule() {} +func (*UnknownUnionMember) isTargetAction() {} diff --git a/service/redshiftserverless/types/types_exported_test.go b/service/redshiftserverless/types/types_exported_test.go new file mode 100644 index 00000000000..f30085e591e --- /dev/null +++ b/service/redshiftserverless/types/types_exported_test.go @@ -0,0 +1,49 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types_test + +import ( + "fmt" + "github.com/aws/aws-sdk-go-v2/service/redshiftserverless/types" + "time" +) + +func ExampleSchedule_outputUsage() { + var union types.Schedule + // type switches can be used to check the union value + switch v := union.(type) { + case *types.ScheduleMemberAt: + _ = v.Value // Value is time.Time + + case *types.ScheduleMemberCron: + _ = v.Value // Value is string + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *string +var _ *time.Time + +func ExampleTargetAction_outputUsage() { + var union types.TargetAction + // type switches can be used to check the union value + switch v := union.(type) { + case *types.TargetActionMemberCreateSnapshot: + _ = v.Value // Value is types.CreateSnapshotScheduleActionParameters + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.CreateSnapshotScheduleActionParameters diff --git a/service/redshiftserverless/validators.go b/service/redshiftserverless/validators.go index cbfac379f03..987630e4047 100644 --- a/service/redshiftserverless/validators.go +++ b/service/redshiftserverless/validators.go @@ -90,6 +90,46 @@ func (m *validateOpCreateNamespace) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpCreateScheduledAction struct { +} + +func (*validateOpCreateScheduledAction) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateScheduledAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateScheduledActionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateScheduledActionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpCreateSnapshotCopyConfiguration struct { +} + +func (*validateOpCreateSnapshotCopyConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateSnapshotCopyConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateSnapshotCopyConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateSnapshotCopyConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateSnapshot struct { } @@ -230,6 +270,46 @@ func (m *validateOpDeleteResourcePolicy) HandleInitialize(ctx context.Context, i return next.HandleInitialize(ctx, in) } +type validateOpDeleteScheduledAction struct { +} + +func (*validateOpDeleteScheduledAction) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteScheduledAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteScheduledActionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteScheduledActionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpDeleteSnapshotCopyConfiguration struct { +} + +func (*validateOpDeleteSnapshotCopyConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteSnapshotCopyConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteSnapshotCopyConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteSnapshotCopyConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteSnapshot struct { } @@ -390,6 +470,26 @@ func (m *validateOpGetResourcePolicy) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpGetScheduledAction struct { +} + +func (*validateOpGetScheduledAction) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetScheduledAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetScheduledActionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetScheduledActionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetTableRestoreStatus struct { } @@ -530,6 +630,26 @@ func (m *validateOpRestoreFromSnapshot) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpRestoreTableFromRecoveryPoint struct { +} + +func (*validateOpRestoreTableFromRecoveryPoint) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpRestoreTableFromRecoveryPoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*RestoreTableFromRecoveryPointInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpRestoreTableFromRecoveryPointInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpRestoreTableFromSnapshot struct { } @@ -650,6 +770,46 @@ func (m *validateOpUpdateNamespace) HandleInitialize(ctx context.Context, in mid return next.HandleInitialize(ctx, in) } +type validateOpUpdateScheduledAction struct { +} + +func (*validateOpUpdateScheduledAction) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateScheduledAction) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateScheduledActionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateScheduledActionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpUpdateSnapshotCopyConfiguration struct { +} + +func (*validateOpUpdateSnapshotCopyConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpUpdateSnapshotCopyConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*UpdateSnapshotCopyConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpUpdateSnapshotCopyConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpUpdateSnapshot struct { } @@ -726,6 +886,14 @@ func addOpCreateNamespaceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateNamespace{}, middleware.After) } +func addOpCreateScheduledActionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateScheduledAction{}, middleware.After) +} + +func addOpCreateSnapshotCopyConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateSnapshotCopyConfiguration{}, middleware.After) +} + func addOpCreateSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateSnapshot{}, middleware.After) } @@ -754,6 +922,14 @@ func addOpDeleteResourcePolicyValidationMiddleware(stack *middleware.Stack) erro return stack.Initialize.Add(&validateOpDeleteResourcePolicy{}, middleware.After) } +func addOpDeleteScheduledActionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteScheduledAction{}, middleware.After) +} + +func addOpDeleteSnapshotCopyConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteSnapshotCopyConfiguration{}, middleware.After) +} + func addOpDeleteSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteSnapshot{}, middleware.After) } @@ -786,6 +962,10 @@ func addOpGetResourcePolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetResourcePolicy{}, middleware.After) } +func addOpGetScheduledActionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetScheduledAction{}, middleware.After) +} + func addOpGetTableRestoreStatusValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetTableRestoreStatus{}, middleware.After) } @@ -814,6 +994,10 @@ func addOpRestoreFromSnapshotValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpRestoreFromSnapshot{}, middleware.After) } +func addOpRestoreTableFromRecoveryPointValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpRestoreTableFromRecoveryPoint{}, middleware.After) +} + func addOpRestoreTableFromSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpRestoreTableFromSnapshot{}, middleware.After) } @@ -838,6 +1022,14 @@ func addOpUpdateNamespaceValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateNamespace{}, middleware.After) } +func addOpUpdateScheduledActionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateScheduledAction{}, middleware.After) +} + +func addOpUpdateSnapshotCopyConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpUpdateSnapshotCopyConfiguration{}, middleware.After) +} + func addOpUpdateSnapshotValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateSnapshot{}, middleware.After) } @@ -850,6 +1042,29 @@ func addOpUpdateWorkgroupValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpUpdateWorkgroup{}, middleware.After) } +func validateCreateSnapshotScheduleActionParameters(v *types.CreateSnapshotScheduleActionParameters) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSnapshotScheduleActionParameters"} + if v.NamespaceName == nil { + invalidParams.Add(smithy.NewErrParamRequired("NamespaceName")) + } + if v.SnapshotNamePrefix == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotNamePrefix")) + } + if v.Tags != nil { + if err := validateTagList(v.Tags); err != nil { + invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateTag(v *types.Tag) error { if v == nil { return nil @@ -885,6 +1100,25 @@ func validateTagList(v []types.Tag) error { } } +func validateTargetAction(v types.TargetAction) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "TargetAction"} + switch uv := v.(type) { + case *types.TargetActionMemberCreateSnapshot: + if err := validateCreateSnapshotScheduleActionParameters(&uv.Value); err != nil { + invalidParams.AddNested("[createSnapshot]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpConvertRecoveryPointToSnapshotInput(v *ConvertRecoveryPointToSnapshotInput) error { if v == nil { return nil @@ -970,6 +1204,55 @@ func validateOpCreateNamespaceInput(v *CreateNamespaceInput) error { } } +func validateOpCreateScheduledActionInput(v *CreateScheduledActionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateScheduledActionInput"} + if v.ScheduledActionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ScheduledActionName")) + } + if v.TargetAction == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetAction")) + } else if v.TargetAction != nil { + if err := validateTargetAction(v.TargetAction); err != nil { + invalidParams.AddNested("TargetAction", err.(smithy.InvalidParamsError)) + } + } + if v.Schedule == nil { + invalidParams.Add(smithy.NewErrParamRequired("Schedule")) + } + if v.RoleArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) + } + if v.NamespaceName == nil { + invalidParams.Add(smithy.NewErrParamRequired("NamespaceName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpCreateSnapshotCopyConfigurationInput(v *CreateSnapshotCopyConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateSnapshotCopyConfigurationInput"} + if v.NamespaceName == nil { + invalidParams.Add(smithy.NewErrParamRequired("NamespaceName")) + } + if v.DestinationRegion == nil { + invalidParams.Add(smithy.NewErrParamRequired("DestinationRegion")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateSnapshotInput(v *CreateSnapshotInput) error { if v == nil { return nil @@ -1100,6 +1383,36 @@ func validateOpDeleteResourcePolicyInput(v *DeleteResourcePolicyInput) error { } } +func validateOpDeleteScheduledActionInput(v *DeleteScheduledActionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteScheduledActionInput"} + if v.ScheduledActionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ScheduledActionName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpDeleteSnapshotCopyConfigurationInput(v *DeleteSnapshotCopyConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteSnapshotCopyConfigurationInput"} + if v.SnapshotCopyConfigurationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotCopyConfigurationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteSnapshotInput(v *DeleteSnapshotInput) error { if v == nil { return nil @@ -1223,6 +1536,21 @@ func validateOpGetResourcePolicyInput(v *GetResourcePolicyInput) error { } } +func validateOpGetScheduledActionInput(v *GetScheduledActionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetScheduledActionInput"} + if v.ScheduledActionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ScheduledActionName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetTableRestoreStatusInput(v *GetTableRestoreStatusInput) error { if v == nil { return nil @@ -1340,6 +1668,36 @@ func validateOpRestoreFromSnapshotInput(v *RestoreFromSnapshotInput) error { } } +func validateOpRestoreTableFromRecoveryPointInput(v *RestoreTableFromRecoveryPointInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RestoreTableFromRecoveryPointInput"} + if v.NamespaceName == nil { + invalidParams.Add(smithy.NewErrParamRequired("NamespaceName")) + } + if v.WorkgroupName == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkgroupName")) + } + if v.RecoveryPointId == nil { + invalidParams.Add(smithy.NewErrParamRequired("RecoveryPointId")) + } + if v.SourceDatabaseName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SourceDatabaseName")) + } + if v.SourceTableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("SourceTableName")) + } + if v.NewTableName == nil { + invalidParams.Add(smithy.NewErrParamRequired("NewTableName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpRestoreTableFromSnapshotInput(v *RestoreTableFromSnapshotInput) error { if v == nil { return nil @@ -1461,6 +1819,41 @@ func validateOpUpdateNamespaceInput(v *UpdateNamespaceInput) error { } } +func validateOpUpdateScheduledActionInput(v *UpdateScheduledActionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateScheduledActionInput"} + if v.ScheduledActionName == nil { + invalidParams.Add(smithy.NewErrParamRequired("ScheduledActionName")) + } + if v.TargetAction != nil { + if err := validateTargetAction(v.TargetAction); err != nil { + invalidParams.AddNested("TargetAction", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpUpdateSnapshotCopyConfigurationInput(v *UpdateSnapshotCopyConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "UpdateSnapshotCopyConfigurationInput"} + if v.SnapshotCopyConfigurationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SnapshotCopyConfigurationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpUpdateSnapshotInput(v *UpdateSnapshotInput) error { if v == nil { return nil diff --git a/service/rekognition/CHANGELOG.md b/service/rekognition/CHANGELOG.md index cedc3a02f34..f7e257ce61a 100644 --- a/service/rekognition/CHANGELOG.md +++ b/service/rekognition/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/rekognition/api_client.go b/service/rekognition/api_client.go index dea5e282ffe..4839c187ef6 100644 --- a/service/rekognition/api_client.go +++ b/service/rekognition/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/rekognition/auth.go b/service/rekognition/auth.go index 56e45425121..d0053abd6b0 100644 --- a/service/rekognition/auth.go +++ b/service/rekognition/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/rekognition/go.mod b/service/rekognition/go.mod index 89d5840d331..15de96a5c75 100644 --- a/service/rekognition/go.mod +++ b/service/rekognition/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rekognition go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/rekognition/go.sum b/service/rekognition/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/rekognition/go.sum +++ b/service/rekognition/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/rekognition/go_module_metadata.go b/service/rekognition/go_module_metadata.go index c002a08c5f8..f0323d2abee 100644 --- a/service/rekognition/go_module_metadata.go +++ b/service/rekognition/go_module_metadata.go @@ -3,4 +3,4 @@ package rekognition // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/rekognition/options.go b/service/rekognition/options.go index 237785b5016..01edbea3e9b 100644 --- a/service/rekognition/options.go +++ b/service/rekognition/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/repostspace/CHANGELOG.md b/service/repostspace/CHANGELOG.md index 7b3f0e21dbf..1eb2b09fa40 100644 --- a/service/repostspace/CHANGELOG.md +++ b/service/repostspace/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/repostspace/api_client.go b/service/repostspace/api_client.go index 3f97d05080d..a6ad998d078 100644 --- a/service/repostspace/api_client.go +++ b/service/repostspace/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/repostspace/auth.go b/service/repostspace/auth.go index 4501c12ff83..48e54660b49 100644 --- a/service/repostspace/auth.go +++ b/service/repostspace/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/repostspace/go.mod b/service/repostspace/go.mod index 3adaf27dfb4..9e34a7e43cf 100644 --- a/service/repostspace/go.mod +++ b/service/repostspace/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/repostspace go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/repostspace/go.sum b/service/repostspace/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/repostspace/go.sum +++ b/service/repostspace/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/repostspace/go_module_metadata.go b/service/repostspace/go_module_metadata.go index 3dde25ab1ed..084451febda 100644 --- a/service/repostspace/go_module_metadata.go +++ b/service/repostspace/go_module_metadata.go @@ -3,4 +3,4 @@ package repostspace // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/repostspace/options.go b/service/repostspace/options.go index 204a6f04486..65b185d6bd5 100644 --- a/service/repostspace/options.go +++ b/service/repostspace/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resiliencehub/CHANGELOG.md b/service/resiliencehub/CHANGELOG.md index 63026ed1b7e..3854d85f3fb 100644 --- a/service/resiliencehub/CHANGELOG.md +++ b/service/resiliencehub/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/resiliencehub/api_client.go b/service/resiliencehub/api_client.go index 1797772a2bb..9c332d75faa 100644 --- a/service/resiliencehub/api_client.go +++ b/service/resiliencehub/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/resiliencehub/auth.go b/service/resiliencehub/auth.go index 2063f665a60..1622bc2786d 100644 --- a/service/resiliencehub/auth.go +++ b/service/resiliencehub/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/resiliencehub/go.mod b/service/resiliencehub/go.mod index 27cc5d8ef51..b266b1a5b80 100644 --- a/service/resiliencehub/go.mod +++ b/service/resiliencehub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resiliencehub go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resiliencehub/go.sum b/service/resiliencehub/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/resiliencehub/go.sum +++ b/service/resiliencehub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resiliencehub/go_module_metadata.go b/service/resiliencehub/go_module_metadata.go index 231c50afda6..47efd95ecfc 100644 --- a/service/resiliencehub/go_module_metadata.go +++ b/service/resiliencehub/go_module_metadata.go @@ -3,4 +3,4 @@ package resiliencehub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/resiliencehub/options.go b/service/resiliencehub/options.go index 0330fbf7120..2644cd5d02e 100644 --- a/service/resiliencehub/options.go +++ b/service/resiliencehub/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resourceexplorer2/CHANGELOG.md b/service/resourceexplorer2/CHANGELOG.md index a7d9bd406b3..a43aabde928 100644 --- a/service/resourceexplorer2/CHANGELOG.md +++ b/service/resourceexplorer2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.8.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.8.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/resourceexplorer2/api_client.go b/service/resourceexplorer2/api_client.go index 2f109de1590..1012119b9ea 100644 --- a/service/resourceexplorer2/api_client.go +++ b/service/resourceexplorer2/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/resourceexplorer2/auth.go b/service/resourceexplorer2/auth.go index 8df78caf324..a77b11e7628 100644 --- a/service/resourceexplorer2/auth.go +++ b/service/resourceexplorer2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/resourceexplorer2/go.mod b/service/resourceexplorer2/go.mod index 1953484143b..a819f8e7cf0 100644 --- a/service/resourceexplorer2/go.mod +++ b/service/resourceexplorer2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourceexplorer2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourceexplorer2/go.sum b/service/resourceexplorer2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/resourceexplorer2/go.sum +++ b/service/resourceexplorer2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourceexplorer2/go_module_metadata.go b/service/resourceexplorer2/go_module_metadata.go index 85289fc7b90..d8cdcc34906 100644 --- a/service/resourceexplorer2/go_module_metadata.go +++ b/service/resourceexplorer2/go_module_metadata.go @@ -3,4 +3,4 @@ package resourceexplorer2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.0" +const goModuleVersion = "1.8.2" diff --git a/service/resourceexplorer2/options.go b/service/resourceexplorer2/options.go index 900d27587d9..e3964198555 100644 --- a/service/resourceexplorer2/options.go +++ b/service/resourceexplorer2/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resourcegroups/CHANGELOG.md b/service/resourcegroups/CHANGELOG.md index 186999f60b7..54c5d839eba 100644 --- a/service/resourcegroups/CHANGELOG.md +++ b/service/resourcegroups/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/resourcegroups/api_client.go b/service/resourcegroups/api_client.go index 60196702eed..842c3fb376d 100644 --- a/service/resourcegroups/api_client.go +++ b/service/resourcegroups/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/resourcegroups/auth.go b/service/resourcegroups/auth.go index 0dcd364c616..51995538d38 100644 --- a/service/resourcegroups/auth.go +++ b/service/resourcegroups/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/resourcegroups/go.mod b/service/resourcegroups/go.mod index c3c7703e896..e8862312a8f 100644 --- a/service/resourcegroups/go.mod +++ b/service/resourcegroups/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroups go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourcegroups/go.sum b/service/resourcegroups/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/resourcegroups/go.sum +++ b/service/resourcegroups/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroups/go_module_metadata.go b/service/resourcegroups/go_module_metadata.go index 3f76605df51..755bc19c822 100644 --- a/service/resourcegroups/go_module_metadata.go +++ b/service/resourcegroups/go_module_metadata.go @@ -3,4 +3,4 @@ package resourcegroups // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/resourcegroups/options.go b/service/resourcegroups/options.go index 368d5c79899..1d876494ca4 100644 --- a/service/resourcegroups/options.go +++ b/service/resourcegroups/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/resourcegroupstaggingapi/CHANGELOG.md b/service/resourcegroupstaggingapi/CHANGELOG.md index 6fa160d6ae2..88ced1eeb11 100644 --- a/service/resourcegroupstaggingapi/CHANGELOG.md +++ b/service/resourcegroupstaggingapi/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/resourcegroupstaggingapi/api_client.go b/service/resourcegroupstaggingapi/api_client.go index c8af4693376..3aab73eb5f1 100644 --- a/service/resourcegroupstaggingapi/api_client.go +++ b/service/resourcegroupstaggingapi/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/resourcegroupstaggingapi/auth.go b/service/resourcegroupstaggingapi/auth.go index 87760206ecb..6dad465b4ad 100644 --- a/service/resourcegroupstaggingapi/auth.go +++ b/service/resourcegroupstaggingapi/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/resourcegroupstaggingapi/go.mod b/service/resourcegroupstaggingapi/go.mod index 086efe68ecc..6fab3696d0d 100644 --- a/service/resourcegroupstaggingapi/go.mod +++ b/service/resourcegroupstaggingapi/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/resourcegroupstaggingapi/go.sum b/service/resourcegroupstaggingapi/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/resourcegroupstaggingapi/go.sum +++ b/service/resourcegroupstaggingapi/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/resourcegroupstaggingapi/go_module_metadata.go b/service/resourcegroupstaggingapi/go_module_metadata.go index b75851b3fe9..0dd42f19e6a 100644 --- a/service/resourcegroupstaggingapi/go_module_metadata.go +++ b/service/resourcegroupstaggingapi/go_module_metadata.go @@ -3,4 +3,4 @@ package resourcegroupstaggingapi // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/resourcegroupstaggingapi/options.go b/service/resourcegroupstaggingapi/options.go index b9cb38f2998..0ba2eec2145 100644 --- a/service/resourcegroupstaggingapi/options.go +++ b/service/resourcegroupstaggingapi/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/robomaker/CHANGELOG.md b/service/robomaker/CHANGELOG.md index c1cf75ac709..9fc17ae46b1 100644 --- a/service/robomaker/CHANGELOG.md +++ b/service/robomaker/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/robomaker/api_client.go b/service/robomaker/api_client.go index 21a27180afb..f272845ba72 100644 --- a/service/robomaker/api_client.go +++ b/service/robomaker/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/robomaker/auth.go b/service/robomaker/auth.go index 5b1df418ec3..5a851db87df 100644 --- a/service/robomaker/auth.go +++ b/service/robomaker/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/robomaker/go.mod b/service/robomaker/go.mod index ae3c2e41357..b78e95013b5 100644 --- a/service/robomaker/go.mod +++ b/service/robomaker/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/robomaker go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/robomaker/go.sum b/service/robomaker/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/robomaker/go.sum +++ b/service/robomaker/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/robomaker/go_module_metadata.go b/service/robomaker/go_module_metadata.go index 96a1dc9b12f..f0ec3d8983d 100644 --- a/service/robomaker/go_module_metadata.go +++ b/service/robomaker/go_module_metadata.go @@ -3,4 +3,4 @@ package robomaker // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/robomaker/options.go b/service/robomaker/options.go index 6db241d7b6a..e29c16b7965 100644 --- a/service/robomaker/options.go +++ b/service/robomaker/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rolesanywhere/CHANGELOG.md b/service/rolesanywhere/CHANGELOG.md index 7d2950ce3b7..1c8dbcd7a63 100644 --- a/service/rolesanywhere/CHANGELOG.md +++ b/service/rolesanywhere/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/rolesanywhere/api_client.go b/service/rolesanywhere/api_client.go index 1988e315df1..3d9ee76e7c6 100644 --- a/service/rolesanywhere/api_client.go +++ b/service/rolesanywhere/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/rolesanywhere/auth.go b/service/rolesanywhere/auth.go index bd129b31a11..d5930931a95 100644 --- a/service/rolesanywhere/auth.go +++ b/service/rolesanywhere/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/rolesanywhere/go.mod b/service/rolesanywhere/go.mod index 229765d3138..e2db45177d8 100644 --- a/service/rolesanywhere/go.mod +++ b/service/rolesanywhere/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rolesanywhere go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rolesanywhere/go.sum b/service/rolesanywhere/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/rolesanywhere/go.sum +++ b/service/rolesanywhere/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rolesanywhere/go_module_metadata.go b/service/rolesanywhere/go_module_metadata.go index 8fcaa67e4bb..8905268c1e3 100644 --- a/service/rolesanywhere/go_module_metadata.go +++ b/service/rolesanywhere/go_module_metadata.go @@ -3,4 +3,4 @@ package rolesanywhere // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/rolesanywhere/options.go b/service/rolesanywhere/options.go index 26e04597ce0..8e9c1fe0a72 100644 --- a/service/rolesanywhere/options.go +++ b/service/rolesanywhere/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53/CHANGELOG.md b/service/route53/CHANGELOG.md index a4ea6f15660..c6930b38ada 100644 --- a/service/route53/CHANGELOG.md +++ b/service/route53/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/route53/api_client.go b/service/route53/api_client.go index b7efba98648..eae1d8a3bf0 100644 --- a/service/route53/api_client.go +++ b/service/route53/api_client.go @@ -141,7 +141,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -150,7 +150,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/route53/auth.go b/service/route53/auth.go index 60eff738879..0371817aac6 100644 --- a/service/route53/auth.go +++ b/service/route53/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/route53/go.mod b/service/route53/go.mod index ddfaa5fffbe..f27ed21c6f8 100644 --- a/service/route53/go.mod +++ b/service/route53/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53/go.sum b/service/route53/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/route53/go.sum +++ b/service/route53/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53/go_module_metadata.go b/service/route53/go_module_metadata.go index 1597a96eb1d..107389baa15 100644 --- a/service/route53/go_module_metadata.go +++ b/service/route53/go_module_metadata.go @@ -3,4 +3,4 @@ package route53 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/route53/options.go b/service/route53/options.go index 2f23ccaaf19..40915658e1b 100644 --- a/service/route53/options.go +++ b/service/route53/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53domains/CHANGELOG.md b/service/route53domains/CHANGELOG.md index 709fa4f5cb6..d78327adcc4 100644 --- a/service/route53domains/CHANGELOG.md +++ b/service/route53domains/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/route53domains/api_client.go b/service/route53domains/api_client.go index d9f25f0ae10..fb39d8222c0 100644 --- a/service/route53domains/api_client.go +++ b/service/route53domains/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/route53domains/auth.go b/service/route53domains/auth.go index d6b86341fce..8d3ebfbc439 100644 --- a/service/route53domains/auth.go +++ b/service/route53domains/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/route53domains/go.mod b/service/route53domains/go.mod index d507ce4a214..dee5f3fcdd9 100644 --- a/service/route53domains/go.mod +++ b/service/route53domains/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53domains go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53domains/go.sum b/service/route53domains/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/route53domains/go.sum +++ b/service/route53domains/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53domains/go_module_metadata.go b/service/route53domains/go_module_metadata.go index 7bb34996f73..ea44230ec1f 100644 --- a/service/route53domains/go_module_metadata.go +++ b/service/route53domains/go_module_metadata.go @@ -3,4 +3,4 @@ package route53domains // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/route53domains/options.go b/service/route53domains/options.go index eb4d187864e..add9bf73e78 100644 --- a/service/route53domains/options.go +++ b/service/route53domains/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53recoverycluster/CHANGELOG.md b/service/route53recoverycluster/CHANGELOG.md index b2fb816d3dd..ca6d007367a 100644 --- a/service/route53recoverycluster/CHANGELOG.md +++ b/service/route53recoverycluster/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/route53recoverycluster/api_client.go b/service/route53recoverycluster/api_client.go index 38629184d45..55c3896b8f4 100644 --- a/service/route53recoverycluster/api_client.go +++ b/service/route53recoverycluster/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/route53recoverycluster/auth.go b/service/route53recoverycluster/auth.go index 7e5ad163256..853727c55e8 100644 --- a/service/route53recoverycluster/auth.go +++ b/service/route53recoverycluster/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/route53recoverycluster/go.mod b/service/route53recoverycluster/go.mod index 751403f7fb3..278b85bc4e3 100644 --- a/service/route53recoverycluster/go.mod +++ b/service/route53recoverycluster/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoverycluster go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53recoverycluster/go.sum b/service/route53recoverycluster/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/route53recoverycluster/go.sum +++ b/service/route53recoverycluster/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoverycluster/go_module_metadata.go b/service/route53recoverycluster/go_module_metadata.go index bbb3f99399c..367e02977e1 100644 --- a/service/route53recoverycluster/go_module_metadata.go +++ b/service/route53recoverycluster/go_module_metadata.go @@ -3,4 +3,4 @@ package route53recoverycluster // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/route53recoverycluster/options.go b/service/route53recoverycluster/options.go index a09e6a85137..1e26e668a17 100644 --- a/service/route53recoverycluster/options.go +++ b/service/route53recoverycluster/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53recoverycontrolconfig/CHANGELOG.md b/service/route53recoverycontrolconfig/CHANGELOG.md index cfc570d1ecc..4b8256093e3 100644 --- a/service/route53recoverycontrolconfig/CHANGELOG.md +++ b/service/route53recoverycontrolconfig/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/route53recoverycontrolconfig/api_client.go b/service/route53recoverycontrolconfig/api_client.go index 2efbaa1224d..ee8d557f8bf 100644 --- a/service/route53recoverycontrolconfig/api_client.go +++ b/service/route53recoverycontrolconfig/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/route53recoverycontrolconfig/auth.go b/service/route53recoverycontrolconfig/auth.go index 6feb311b49f..f05bb701324 100644 --- a/service/route53recoverycontrolconfig/auth.go +++ b/service/route53recoverycontrolconfig/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/route53recoverycontrolconfig/go.mod b/service/route53recoverycontrolconfig/go.mod index 7b591b1a91b..779db16b721 100644 --- a/service/route53recoverycontrolconfig/go.mod +++ b/service/route53recoverycontrolconfig/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoverycontrolconfig go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/route53recoverycontrolconfig/go.sum b/service/route53recoverycontrolconfig/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/route53recoverycontrolconfig/go.sum +++ b/service/route53recoverycontrolconfig/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/route53recoverycontrolconfig/go_module_metadata.go b/service/route53recoverycontrolconfig/go_module_metadata.go index bbdb3d5485c..b86e21fdf69 100644 --- a/service/route53recoverycontrolconfig/go_module_metadata.go +++ b/service/route53recoverycontrolconfig/go_module_metadata.go @@ -3,4 +3,4 @@ package route53recoverycontrolconfig // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/route53recoverycontrolconfig/options.go b/service/route53recoverycontrolconfig/options.go index d33758c80d7..61d05316858 100644 --- a/service/route53recoverycontrolconfig/options.go +++ b/service/route53recoverycontrolconfig/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53recoveryreadiness/CHANGELOG.md b/service/route53recoveryreadiness/CHANGELOG.md index f69e2de7a46..6ec7a7ad2c1 100644 --- a/service/route53recoveryreadiness/CHANGELOG.md +++ b/service/route53recoveryreadiness/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.15.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/route53recoveryreadiness/api_client.go b/service/route53recoveryreadiness/api_client.go index aa8e72a839e..e93feb44c6a 100644 --- a/service/route53recoveryreadiness/api_client.go +++ b/service/route53recoveryreadiness/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/route53recoveryreadiness/auth.go b/service/route53recoveryreadiness/auth.go index a4840f9d3c1..7e5de898964 100644 --- a/service/route53recoveryreadiness/auth.go +++ b/service/route53recoveryreadiness/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/route53recoveryreadiness/go.mod b/service/route53recoveryreadiness/go.mod index 007025c6dea..54141f423a8 100644 --- a/service/route53recoveryreadiness/go.mod +++ b/service/route53recoveryreadiness/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53recoveryreadiness/go.sum b/service/route53recoveryreadiness/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/route53recoveryreadiness/go.sum +++ b/service/route53recoveryreadiness/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53recoveryreadiness/go_module_metadata.go b/service/route53recoveryreadiness/go_module_metadata.go index 78fdec6e75b..5ada1f84b32 100644 --- a/service/route53recoveryreadiness/go_module_metadata.go +++ b/service/route53recoveryreadiness/go_module_metadata.go @@ -3,4 +3,4 @@ package route53recoveryreadiness // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.0" +const goModuleVersion = "1.15.2" diff --git a/service/route53recoveryreadiness/options.go b/service/route53recoveryreadiness/options.go index 3b729fa9048..732cdc8fbae 100644 --- a/service/route53recoveryreadiness/options.go +++ b/service/route53recoveryreadiness/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/route53resolver/CHANGELOG.md b/service/route53resolver/CHANGELOG.md index 01e79808ee9..6b3b00b800a 100644 --- a/service/route53resolver/CHANGELOG.md +++ b/service/route53resolver/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/route53resolver/api_client.go b/service/route53resolver/api_client.go index 09dc0cac8e7..e77f86d73d6 100644 --- a/service/route53resolver/api_client.go +++ b/service/route53resolver/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/route53resolver/auth.go b/service/route53resolver/auth.go index 7992f56dd1e..51b03d21b60 100644 --- a/service/route53resolver/auth.go +++ b/service/route53resolver/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/route53resolver/go.mod b/service/route53resolver/go.mod index 7b5a767cc6a..58032170500 100644 --- a/service/route53resolver/go.mod +++ b/service/route53resolver/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/route53resolver go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/route53resolver/go.sum b/service/route53resolver/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/route53resolver/go.sum +++ b/service/route53resolver/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/route53resolver/go_module_metadata.go b/service/route53resolver/go_module_metadata.go index 9050adf4e21..8dafba302ef 100644 --- a/service/route53resolver/go_module_metadata.go +++ b/service/route53resolver/go_module_metadata.go @@ -3,4 +3,4 @@ package route53resolver // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/route53resolver/options.go b/service/route53resolver/options.go index c47dc082c5f..997265caa99 100644 --- a/service/route53resolver/options.go +++ b/service/route53resolver/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/rum/CHANGELOG.md b/service/rum/CHANGELOG.md index 68e407f2b79..1396e072862 100644 --- a/service/rum/CHANGELOG.md +++ b/service/rum/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.15.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/rum/api_client.go b/service/rum/api_client.go index 9763c188298..383251a7ffe 100644 --- a/service/rum/api_client.go +++ b/service/rum/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/rum/auth.go b/service/rum/auth.go index 917b98ec63a..c825e57572f 100644 --- a/service/rum/auth.go +++ b/service/rum/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/rum/go.mod b/service/rum/go.mod index 168b4063984..42a63ece341 100644 --- a/service/rum/go.mod +++ b/service/rum/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/rum go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/rum/go.sum b/service/rum/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/rum/go.sum +++ b/service/rum/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/rum/go_module_metadata.go b/service/rum/go_module_metadata.go index 1a7be9e1150..96a6b356206 100644 --- a/service/rum/go_module_metadata.go +++ b/service/rum/go_module_metadata.go @@ -3,4 +3,4 @@ package rum // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.0" +const goModuleVersion = "1.15.2" diff --git a/service/rum/options.go b/service/rum/options.go index e7d5a4ea48c..b9c154dac11 100644 --- a/service/rum/options.go +++ b/service/rum/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/s3/CHANGELOG.md b/service/s3/CHANGELOG.md index b71c7bf946a..5fb9b512137 100644 --- a/service/s3/CHANGELOG.md +++ b/service/s3/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.47.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.47.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.47.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/s3/api_client.go b/service/s3/api_client.go index 2e0aad5edcb..6649d914fdf 100644 --- a/service/s3/api_client.go +++ b/service/s3/api_client.go @@ -163,7 +163,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -172,7 +172,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/s3/auth.go b/service/s3/auth.go index 90d96f8a759..558dd1a2972 100644 --- a/service/s3/auth.go +++ b/service/s3/auth.go @@ -146,7 +146,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -226,7 +226,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -275,7 +275,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/s3/endpoint_auth_resolver.go b/service/s3/endpoint_auth_resolver.go index 6c97ae7eaae..b2d55c24cb5 100644 --- a/service/s3/endpoint_auth_resolver.go +++ b/service/s3/endpoint_auth_resolver.go @@ -43,12 +43,12 @@ func (r *endpointAuthResolver) resolveAuthSchemes( ) { baseOpts, err := (&defaultAuthSchemeResolver{}).ResolveAuthSchemes(ctx, params) if err != nil { - return nil, fmt.Errorf("get base options: %v", err) + return nil, fmt.Errorf("get base options: %w", err) } endpt, err := r.EndpointResolver.ResolveEndpoint(ctx, *params.endpointParams) if err != nil { - return nil, fmt.Errorf("resolve endpoint: %v", err) + return nil, fmt.Errorf("resolve endpoint: %w", err) } endptOpts, ok := smithyauth.GetAuthOptions(&endpt.Properties) diff --git a/service/s3/go.mod b/service/s3/go.mod index 1f136994e0e..dab3220e4d0 100644 --- a/service/s3/go.mod +++ b/service/s3/go.mod @@ -3,16 +3,16 @@ module github.com/aws/aws-sdk-go-v2/service/s3 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.6 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.8 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3/go.sum b/service/s3/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/s3/go.sum +++ b/service/s3/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3/go_module_metadata.go b/service/s3/go_module_metadata.go index ee8c6c8c765..3da49065a1b 100644 --- a/service/s3/go_module_metadata.go +++ b/service/s3/go_module_metadata.go @@ -3,4 +3,4 @@ package s3 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.47.0" +const goModuleVersion = "1.47.2" diff --git a/service/s3/internal/configtesting/go.mod b/service/s3/internal/configtesting/go.mod index 138737777bf..4020d84975a 100644 --- a/service/s3/internal/configtesting/go.mod +++ b/service/s3/internal/configtesting/go.mod @@ -3,23 +3,23 @@ module github.com/aws/aws-sdk-go-v2/service/s3/internal/configtesting go 1.19 require ( - github.com/aws/aws-sdk-go-v2/config v1.25.9 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 + github.com/aws/aws-sdk-go-v2/config v1.25.11 + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 ) require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2 v1.23.5 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.18.0 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.0 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.26.0 // indirect - github.com/aws/smithy-go v1.18.0 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.18.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.26.2 // indirect + github.com/aws/smithy-go v1.18.1 // indirect ) replace github.com/aws/aws-sdk-go-v2 => ../../../../ diff --git a/service/s3/internal/configtesting/go.sum b/service/s3/internal/configtesting/go.sum index 4a236cdfa85..e5153680047 100644 --- a/service/s3/internal/configtesting/go.sum +++ b/service/s3/internal/configtesting/go.sum @@ -1,3 +1,3 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/s3/options.go b/service/s3/options.go index a63d04a134c..271aaecdc5f 100644 --- a/service/s3/options.go +++ b/service/s3/options.go @@ -303,7 +303,7 @@ func WithSigV4ASigningRegions(regions []string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/s3control/CHANGELOG.md b/service/s3control/CHANGELOG.md index 2b1f14de2f4..ab03cb24ebb 100644 --- a/service/s3control/CHANGELOG.md +++ b/service/s3control/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.41.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.41.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.41.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/s3control/api_client.go b/service/s3control/api_client.go index 5593a897299..de6dcaf1db1 100644 --- a/service/s3control/api_client.go +++ b/service/s3control/api_client.go @@ -145,7 +145,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -154,7 +154,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/s3control/auth.go b/service/s3control/auth.go index dbd13ee95a6..57a60ef9c6a 100644 --- a/service/s3control/auth.go +++ b/service/s3control/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/s3control/go.mod b/service/s3control/go.mod index 4a93e96850f..cf37196ca09 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/s3control go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3control/go.sum b/service/s3control/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3control/go_module_metadata.go b/service/s3control/go_module_metadata.go index 673125ece80..b81a7619c84 100644 --- a/service/s3control/go_module_metadata.go +++ b/service/s3control/go_module_metadata.go @@ -3,4 +3,4 @@ package s3control // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.41.0" +const goModuleVersion = "1.41.2" diff --git a/service/s3control/options.go b/service/s3control/options.go index 17672144305..782456d2a4a 100644 --- a/service/s3control/options.go +++ b/service/s3control/options.go @@ -227,7 +227,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/s3outposts/CHANGELOG.md b/service/s3outposts/CHANGELOG.md index 70dda266f89..b5c729ed3f1 100644 --- a/service/s3outposts/CHANGELOG.md +++ b/service/s3outposts/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/s3outposts/api_client.go b/service/s3outposts/api_client.go index 8f8f9e290a2..a65f7cfd1e0 100644 --- a/service/s3outposts/api_client.go +++ b/service/s3outposts/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/s3outposts/auth.go b/service/s3outposts/auth.go index 8228c13a42e..1cd1425280d 100644 --- a/service/s3outposts/auth.go +++ b/service/s3outposts/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/s3outposts/go.mod b/service/s3outposts/go.mod index 27051935841..832159ee9e9 100644 --- a/service/s3outposts/go.mod +++ b/service/s3outposts/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/s3outposts go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/s3outposts/go.sum b/service/s3outposts/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/s3outposts/go.sum +++ b/service/s3outposts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/s3outposts/go_module_metadata.go b/service/s3outposts/go_module_metadata.go index 1e09fc1328b..73d1bdb7560 100644 --- a/service/s3outposts/go_module_metadata.go +++ b/service/s3outposts/go_module_metadata.go @@ -3,4 +3,4 @@ package s3outposts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/s3outposts/options.go b/service/s3outposts/options.go index b3e94f4ccf8..c70413a79a5 100644 --- a/service/s3outposts/options.go +++ b/service/s3outposts/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemaker/CHANGELOG.md b/service/sagemaker/CHANGELOG.md index a3aa23c41cb..1732d7ecbe0 100644 --- a/service/sagemaker/CHANGELOG.md +++ b/service/sagemaker/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.120.1 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.120.0 (2023-11-30.2) + +* **Feature**: This release adds support for 1/ Code Editor, based on Code-OSS, Visual Studio Code Open Source, a new fully managed IDE option in SageMaker Studio 2/ JupyterLab, a new fully managed JupyterLab IDE experience in SageMaker Studio + +# v1.119.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.119.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sagemaker/api_client.go b/service/sagemaker/api_client.go index d1fd55f9012..5d0ca4850b0 100644 --- a/service/sagemaker/api_client.go +++ b/service/sagemaker/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sagemaker/api_op_CreateAppImageConfig.go b/service/sagemaker/api_op_CreateAppImageConfig.go index 25fe2f828e3..0623d759c25 100644 --- a/service/sagemaker/api_op_CreateAppImageConfig.go +++ b/service/sagemaker/api_op_CreateAppImageConfig.go @@ -37,6 +37,11 @@ type CreateAppImageConfigInput struct { // This member is required. AppImageConfigName *string + // The JupyterLabAppImageConfig . You can only specify one image kernel in the + // AppImageConfig API. This kernel is shown to users before the image starts. After + // the image runs, all kernels are visible in JupyterLab. + JupyterLabAppImageConfig *types.JupyterLabAppImageConfig + // The KernelGatewayImageConfig. You can only specify one image kernel in the // AppImageConfig API. This kernel will be shown to users before the image starts. // Once the image runs, all kernels are visible in JupyterLab. diff --git a/service/sagemaker/api_op_CreateSpace.go b/service/sagemaker/api_op_CreateSpace.go index 7f9a00b935e..da34d3c3d1b 100644 --- a/service/sagemaker/api_op_CreateSpace.go +++ b/service/sagemaker/api_op_CreateSpace.go @@ -40,9 +40,18 @@ type CreateSpaceInput struct { // This member is required. SpaceName *string + // A collection of ownership settings. + OwnershipSettings *types.OwnershipSettings + + // The name of the space that appears in the SageMaker Studio UI. + SpaceDisplayName *string + // A collection of space settings. SpaceSettings *types.SpaceSettings + // A collection of space sharing settings. + SpaceSharingSettings *types.SpaceSharingSettings + // Tags to associated with the space. Each tag consists of a key and an optional // value. Tag keys must be unique for each resource. Tags are searchable using the // Search API. diff --git a/service/sagemaker/api_op_DescribeAppImageConfig.go b/service/sagemaker/api_op_DescribeAppImageConfig.go index 2bfa694b635..c308999f3e5 100644 --- a/service/sagemaker/api_op_DescribeAppImageConfig.go +++ b/service/sagemaker/api_op_DescribeAppImageConfig.go @@ -50,6 +50,9 @@ type DescribeAppImageConfigOutput struct { // When the AppImageConfig was created. CreationTime *time.Time + // The configuration of the JupyterLab app. + JupyterLabAppImageConfig *types.JupyterLabAppImageConfig + // The configuration of a KernelGateway app. KernelGatewayImageConfig *types.KernelGatewayImageConfig diff --git a/service/sagemaker/api_op_DescribeSpace.go b/service/sagemaker/api_op_DescribeSpace.go index dc05bc0836c..900876b924e 100644 --- a/service/sagemaker/api_op_DescribeSpace.go +++ b/service/sagemaker/api_op_DescribeSpace.go @@ -61,15 +61,24 @@ type DescribeSpaceOutput struct { // The last modified time. LastModifiedTime *time.Time + // The collection of ownership settings for a space. + OwnershipSettings *types.OwnershipSettings + // The space's Amazon Resource Name (ARN). SpaceArn *string + // The name of the space that appears in the Amazon SageMaker Studio UI. + SpaceDisplayName *string + // The name of the space. SpaceName *string // A collection of space settings. SpaceSettings *types.SpaceSettings + // The collection of space sharing settings for a space. + SpaceSharingSettings *types.SpaceSharingSettings + // The status. Status types.SpaceStatus diff --git a/service/sagemaker/api_op_UpdateAppImageConfig.go b/service/sagemaker/api_op_UpdateAppImageConfig.go index 69af10954b0..39c35855076 100644 --- a/service/sagemaker/api_op_UpdateAppImageConfig.go +++ b/service/sagemaker/api_op_UpdateAppImageConfig.go @@ -35,6 +35,9 @@ type UpdateAppImageConfigInput struct { // This member is required. AppImageConfigName *string + // The JupyterLab app running on the image. + JupyterLabAppImageConfig *types.JupyterLabAppImageConfig + // The new KernelGateway app to run on the image. KernelGatewayImageConfig *types.KernelGatewayImageConfig diff --git a/service/sagemaker/api_op_UpdateSpace.go b/service/sagemaker/api_op_UpdateSpace.go index aad622ef7a5..52cbcde8461 100644 --- a/service/sagemaker/api_op_UpdateSpace.go +++ b/service/sagemaker/api_op_UpdateSpace.go @@ -40,6 +40,9 @@ type UpdateSpaceInput struct { // This member is required. SpaceName *string + // The name of the space that appears in the Amazon SageMaker Studio UI. + SpaceDisplayName *string + // A collection of space settings. SpaceSettings *types.SpaceSettings diff --git a/service/sagemaker/auth.go b/service/sagemaker/auth.go index f71f15fbfd3..6b3be09b716 100644 --- a/service/sagemaker/auth.go +++ b/service/sagemaker/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 69df863e98b..f450179b6f8 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -35294,6 +35294,11 @@ func awsAwsjson11_deserializeDocumentAppDetails(v **types.AppDetails, value inte sv.DomainId = ptr.String(jtv) } + case "ResourceSpec": + if err := awsAwsjson11_deserializeDocumentResourceSpec(&sv.ResourceSpec, value); err != nil { + return err + } + case "SpaceName": if value != nil { jtv, ok := value.(string) @@ -35386,6 +35391,11 @@ func awsAwsjson11_deserializeDocumentAppImageConfigDetails(v **types.AppImageCon } } + case "JupyterLabAppImageConfig": + if err := awsAwsjson11_deserializeDocumentJupyterLabAppImageConfig(&sv.JupyterLabAppImageConfig, value); err != nil { + return err + } + case "KernelGatewayImageConfig": if err := awsAwsjson11_deserializeDocumentKernelGatewayImageConfig(&sv.KernelGatewayImageConfig, value); err != nil { return err @@ -40812,6 +40822,47 @@ func awsAwsjson11_deserializeDocumentClusterSummary(v **types.ClusterSummary, va return nil } +func awsAwsjson11_deserializeDocumentCodeEditorAppSettings(v **types.CodeEditorAppSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CodeEditorAppSettings + if *v == nil { + sv = &types.CodeEditorAppSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DefaultResourceSpec": + if err := awsAwsjson11_deserializeDocumentResourceSpec(&sv.DefaultResourceSpec, value); err != nil { + return err + } + + case "LifecycleConfigArns": + if err := awsAwsjson11_deserializeDocumentLifecycleConfigArns(&sv.LifecycleConfigArns, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentCodeRepositories(v *[]types.CodeRepository, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -41612,6 +41663,52 @@ func awsAwsjson11_deserializeDocumentContainerArguments(v *[]string, value inter return nil } +func awsAwsjson11_deserializeDocumentContainerConfig(v **types.ContainerConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.ContainerConfig + if *v == nil { + sv = &types.ContainerConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ContainerArguments": + if err := awsAwsjson11_deserializeDocumentCustomImageContainerArguments(&sv.ContainerArguments, value); err != nil { + return err + } + + case "ContainerEntrypoint": + if err := awsAwsjson11_deserializeDocumentCustomImageContainerEntrypoint(&sv.ContainerEntrypoint, value); err != nil { + return err + } + + case "ContainerEnvironmentVariables": + if err := awsAwsjson11_deserializeDocumentCustomImageContainerEnvironmentVariables(&sv.ContainerEnvironmentVariables, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentContainerDefinition(v **types.ContainerDefinition, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -42308,6 +42405,150 @@ func awsAwsjson11_deserializeDocumentCustomerMetadataMap(v *map[string]string, v return nil } +func awsAwsjson11_deserializeDocumentCustomFileSystem(v *types.CustomFileSystem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.CustomFileSystem +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "EFSFileSystem": + var mv types.EFSFileSystem + destAddr := &mv + if err := awsAwsjson11_deserializeDocumentEFSFileSystem(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.CustomFileSystemMemberEFSFileSystem{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsAwsjson11_deserializeDocumentCustomFileSystemConfig(v *types.CustomFileSystemConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var uv types.CustomFileSystemConfig +loop: + for key, value := range shape { + if value == nil { + continue + } + switch key { + case "EFSFileSystemConfig": + var mv types.EFSFileSystemConfig + destAddr := &mv + if err := awsAwsjson11_deserializeDocumentEFSFileSystemConfig(&destAddr, value); err != nil { + return err + } + mv = *destAddr + uv = &types.CustomFileSystemConfigMemberEFSFileSystemConfig{Value: mv} + break loop + + default: + uv = &types.UnknownUnionMember{Tag: key} + break loop + + } + } + *v = uv + return nil +} + +func awsAwsjson11_deserializeDocumentCustomFileSystemConfigs(v *[]types.CustomFileSystemConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.CustomFileSystemConfig + if *v == nil { + cv = []types.CustomFileSystemConfig{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CustomFileSystemConfig + if err := awsAwsjson11_deserializeDocumentCustomFileSystemConfig(&col, value); err != nil { + return err + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentCustomFileSystems(v *[]types.CustomFileSystem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []types.CustomFileSystem + if *v == nil { + cv = []types.CustomFileSystem{} + } else { + cv = *v + } + + for _, value := range shape { + var col types.CustomFileSystem + if err := awsAwsjson11_deserializeDocumentCustomFileSystem(&col, value); err != nil { + return err + } + cv = append(cv, col) + + } + *v = cv + return nil +} + func awsAwsjson11_deserializeDocumentCustomImage(v **types.CustomImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -42370,6 +42611,114 @@ func awsAwsjson11_deserializeDocumentCustomImage(v **types.CustomImage, value in return nil } +func awsAwsjson11_deserializeDocumentCustomImageContainerArguments(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString64 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentCustomImageContainerEntrypoint(v *[]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.([]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var cv []string + if *v == nil { + cv = []string{} + } else { + cv = *v + } + + for _, value := range shape { + var col string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString256 to be of type string, got %T instead", value) + } + col = jtv + } + cv = append(cv, col) + + } + *v = cv + return nil +} + +func awsAwsjson11_deserializeDocumentCustomImageContainerEnvironmentVariables(v *map[string]string, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var mv map[string]string + if *v == nil { + mv = map[string]string{} + } else { + mv = *v + } + + for key, value := range shape { + var parsedVal string + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String256 to be of type string, got %T instead", value) + } + parsedVal = jtv + } + mv[key] = parsedVal + + } + *v = mv + return nil +} + func awsAwsjson11_deserializeDocumentCustomImages(v *[]types.CustomImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -42462,6 +42811,63 @@ func awsAwsjson11_deserializeDocumentCustomizedMetricSpecification(v **types.Cus return nil } +func awsAwsjson11_deserializeDocumentCustomPosixUserConfig(v **types.CustomPosixUserConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.CustomPosixUserConfig + if *v == nil { + sv = &types.CustomPosixUserConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "Gid": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Gid to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Gid = ptr.Int64(i64) + } + + case "Uid": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected Uid to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.Uid = ptr.Int64(i64) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentDataCaptureConfig(v **types.DataCaptureConfig, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -43316,6 +43722,63 @@ func awsAwsjson11_deserializeDocumentDebugRuleEvaluationStatuses(v *[]types.Debu return nil } +func awsAwsjson11_deserializeDocumentDefaultEbsStorageSettings(v **types.DefaultEbsStorageSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DefaultEbsStorageSettings + if *v == nil { + sv = &types.DefaultEbsStorageSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DefaultEbsVolumeSizeInGb": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected SpaceEbsVolumeSizeInGb to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.DefaultEbsVolumeSizeInGb = ptr.Int32(int32(i64)) + } + + case "MaximumEbsVolumeSizeInGb": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected SpaceEbsVolumeSizeInGb to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.MaximumEbsVolumeSizeInGb = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentDefaultSpaceSettings(v **types.DefaultSpaceSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -43371,6 +43834,42 @@ func awsAwsjson11_deserializeDocumentDefaultSpaceSettings(v **types.DefaultSpace return nil } +func awsAwsjson11_deserializeDocumentDefaultSpaceStorageSettings(v **types.DefaultSpaceStorageSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.DefaultSpaceStorageSettings + if *v == nil { + sv = &types.DefaultSpaceStorageSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DefaultEbsStorageSettings": + if err := awsAwsjson11_deserializeDocumentDefaultEbsStorageSettings(&sv.DefaultEbsStorageSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentDeployedImage(v **types.DeployedImage, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -44868,6 +45367,50 @@ func awsAwsjson11_deserializeDocumentDynamicScalingConfiguration(v **types.Dynam return nil } +func awsAwsjson11_deserializeDocumentEbsStorageSettings(v **types.EbsStorageSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EbsStorageSettings + if *v == nil { + sv = &types.EbsStorageSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EbsVolumeSizeInGb": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected SpaceEbsVolumeSizeInGb to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.EbsVolumeSizeInGb = ptr.Int32(int32(i64)) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEdge(v **types.Edge, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -45968,6 +46511,95 @@ func awsAwsjson11_deserializeDocumentEdges(v *[]types.Edge, value interface{}) e return nil } +func awsAwsjson11_deserializeDocumentEFSFileSystem(v **types.EFSFileSystem, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EFSFileSystem + if *v == nil { + sv = &types.EFSFileSystem{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FileSystemId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) + } + sv.FileSystemId = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentEFSFileSystemConfig(v **types.EFSFileSystemConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.EFSFileSystemConfig + if *v == nil { + sv = &types.EFSFileSystemConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "FileSystemId": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemId to be of type string, got %T instead", value) + } + sv.FileSystemId = ptr.String(jtv) + } + + case "FileSystemPath": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected FileSystemPath to be of type string, got %T instead", value) + } + sv.FileSystemPath = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentEMRStepMetadata(v **types.EMRStepMetadata, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -54036,6 +54668,93 @@ func awsAwsjson11_deserializeDocumentJsonContentTypes(v *[]string, value interfa return nil } +func awsAwsjson11_deserializeDocumentJupyterLabAppImageConfig(v **types.JupyterLabAppImageConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.JupyterLabAppImageConfig + if *v == nil { + sv = &types.JupyterLabAppImageConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ContainerConfig": + if err := awsAwsjson11_deserializeDocumentContainerConfig(&sv.ContainerConfig, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentJupyterLabAppSettings(v **types.JupyterLabAppSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.JupyterLabAppSettings + if *v == nil { + sv = &types.JupyterLabAppSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CodeRepositories": + if err := awsAwsjson11_deserializeDocumentCodeRepositories(&sv.CodeRepositories, value); err != nil { + return err + } + + case "CustomImages": + if err := awsAwsjson11_deserializeDocumentCustomImages(&sv.CustomImages, value); err != nil { + return err + } + + case "DefaultResourceSpec": + if err := awsAwsjson11_deserializeDocumentResourceSpec(&sv.DefaultResourceSpec, value); err != nil { + return err + } + + case "LifecycleConfigArns": + if err := awsAwsjson11_deserializeDocumentLifecycleConfigArns(&sv.LifecycleConfigArns, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentJupyterServerAppSettings(v **types.JupyterServerAppSettings, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -63161,6 +63880,86 @@ func awsAwsjson11_deserializeDocumentOutputParameterList(v *[]types.OutputParame return nil } +func awsAwsjson11_deserializeDocumentOwnershipSettings(v **types.OwnershipSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.OwnershipSettings + if *v == nil { + sv = &types.OwnershipSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "OwnerUserProfileName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UserProfileName to be of type string, got %T instead", value) + } + sv.OwnerUserProfileName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentOwnershipSettingsSummary(v **types.OwnershipSettingsSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.OwnershipSettingsSummary + if *v == nil { + sv = &types.OwnershipSettingsSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "OwnerUserProfileName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected UserProfileName to be of type string, got %T instead", value) + } + sv.OwnerUserProfileName = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentParallelismConfiguration(v **types.ParallelismConfiguration, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -71241,6 +72040,42 @@ func awsAwsjson11_deserializeDocumentSourceIpConfig(v **types.SourceIpConfig, va return nil } +func awsAwsjson11_deserializeDocumentSpaceCodeEditorAppSettings(v **types.SpaceCodeEditorAppSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SpaceCodeEditorAppSettings + if *v == nil { + sv = &types.SpaceCodeEditorAppSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "DefaultResourceSpec": + if err := awsAwsjson11_deserializeDocumentResourceSpec(&sv.DefaultResourceSpec, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentSpaceDetails(v **types.SpaceDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -71304,6 +72139,20 @@ func awsAwsjson11_deserializeDocumentSpaceDetails(v **types.SpaceDetails, value } } + case "OwnershipSettingsSummary": + if err := awsAwsjson11_deserializeDocumentOwnershipSettingsSummary(&sv.OwnershipSettingsSummary, value); err != nil { + return err + } + + case "SpaceDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString64 to be of type string, got %T instead", value) + } + sv.SpaceDisplayName = ptr.String(jtv) + } + case "SpaceName": if value != nil { jtv, ok := value.(string) @@ -71313,6 +72162,16 @@ func awsAwsjson11_deserializeDocumentSpaceDetails(v **types.SpaceDetails, value sv.SpaceName = ptr.String(jtv) } + case "SpaceSettingsSummary": + if err := awsAwsjson11_deserializeDocumentSpaceSettingsSummary(&sv.SpaceSettingsSummary, value); err != nil { + return err + } + + case "SpaceSharingSettingsSummary": + if err := awsAwsjson11_deserializeDocumentSpaceSharingSettingsSummary(&sv.SpaceSharingSettingsSummary, value); err != nil { + return err + } + case "Status": if value != nil { jtv, ok := value.(string) @@ -71331,6 +72190,47 @@ func awsAwsjson11_deserializeDocumentSpaceDetails(v **types.SpaceDetails, value return nil } +func awsAwsjson11_deserializeDocumentSpaceJupyterLabAppSettings(v **types.SpaceJupyterLabAppSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SpaceJupyterLabAppSettings + if *v == nil { + sv = &types.SpaceJupyterLabAppSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "CodeRepositories": + if err := awsAwsjson11_deserializeDocumentCodeRepositories(&sv.CodeRepositories, value); err != nil { + return err + } + + case "DefaultResourceSpec": + if err := awsAwsjson11_deserializeDocumentResourceSpec(&sv.DefaultResourceSpec, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentSpaceList(v *[]types.SpaceDetails, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -71387,6 +72287,30 @@ func awsAwsjson11_deserializeDocumentSpaceSettings(v **types.SpaceSettings, valu for key, value := range shape { switch key { + case "AppType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AppType to be of type string, got %T instead", value) + } + sv.AppType = types.AppType(jtv) + } + + case "CodeEditorAppSettings": + if err := awsAwsjson11_deserializeDocumentSpaceCodeEditorAppSettings(&sv.CodeEditorAppSettings, value); err != nil { + return err + } + + case "CustomFileSystems": + if err := awsAwsjson11_deserializeDocumentCustomFileSystems(&sv.CustomFileSystems, value); err != nil { + return err + } + + case "JupyterLabAppSettings": + if err := awsAwsjson11_deserializeDocumentSpaceJupyterLabAppSettings(&sv.JupyterLabAppSettings, value); err != nil { + return err + } + case "JupyterServerAppSettings": if err := awsAwsjson11_deserializeDocumentJupyterServerAppSettings(&sv.JupyterServerAppSettings, value); err != nil { return err @@ -71397,6 +72321,172 @@ func awsAwsjson11_deserializeDocumentSpaceSettings(v **types.SpaceSettings, valu return err } + case "SpaceStorageSettings": + if err := awsAwsjson11_deserializeDocumentSpaceStorageSettings(&sv.SpaceStorageSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSpaceSettingsSummary(v **types.SpaceSettingsSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SpaceSettingsSummary + if *v == nil { + sv = &types.SpaceSettingsSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "AppType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected AppType to be of type string, got %T instead", value) + } + sv.AppType = types.AppType(jtv) + } + + case "SpaceStorageSettings": + if err := awsAwsjson11_deserializeDocumentSpaceStorageSettings(&sv.SpaceStorageSettings, value); err != nil { + return err + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSpaceSharingSettings(v **types.SpaceSharingSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SpaceSharingSettings + if *v == nil { + sv = &types.SpaceSharingSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "SharingType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SharingType to be of type string, got %T instead", value) + } + sv.SharingType = types.SharingType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSpaceSharingSettingsSummary(v **types.SpaceSharingSettingsSummary, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SpaceSharingSettingsSummary + if *v == nil { + sv = &types.SpaceSharingSettingsSummary{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "SharingType": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected SharingType to be of type string, got %T instead", value) + } + sv.SharingType = types.SharingType(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + +func awsAwsjson11_deserializeDocumentSpaceStorageSettings(v **types.SpaceStorageSettings, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.SpaceStorageSettings + if *v == nil { + sv = &types.SpaceStorageSettings{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "EbsStorageSettings": + if err := awsAwsjson11_deserializeDocumentEbsStorageSettings(&sv.EbsStorageSettings, value); err != nil { + return err + } + default: _, _ = key, value @@ -76662,6 +77752,21 @@ func awsAwsjson11_deserializeDocumentUserSettings(v **types.UserSettings, value return err } + case "CodeEditorAppSettings": + if err := awsAwsjson11_deserializeDocumentCodeEditorAppSettings(&sv.CodeEditorAppSettings, value); err != nil { + return err + } + + case "CustomFileSystemConfigs": + if err := awsAwsjson11_deserializeDocumentCustomFileSystemConfigs(&sv.CustomFileSystemConfigs, value); err != nil { + return err + } + + case "CustomPosixUserConfig": + if err := awsAwsjson11_deserializeDocumentCustomPosixUserConfig(&sv.CustomPosixUserConfig, value); err != nil { + return err + } + case "DefaultLandingUri": if value != nil { jtv, ok := value.(string) @@ -76680,6 +77785,11 @@ func awsAwsjson11_deserializeDocumentUserSettings(v **types.UserSettings, value sv.ExecutionRole = ptr.String(jtv) } + case "JupyterLabAppSettings": + if err := awsAwsjson11_deserializeDocumentJupyterLabAppSettings(&sv.JupyterLabAppSettings, value); err != nil { + return err + } + case "JupyterServerAppSettings": if err := awsAwsjson11_deserializeDocumentJupyterServerAppSettings(&sv.JupyterServerAppSettings, value); err != nil { return err @@ -76710,6 +77820,11 @@ func awsAwsjson11_deserializeDocumentUserSettings(v **types.UserSettings, value return err } + case "SpaceStorageSettings": + if err := awsAwsjson11_deserializeDocumentDefaultSpaceStorageSettings(&sv.SpaceStorageSettings, value); err != nil { + return err + } + case "StudioWebPortal": if value != nil { jtv, ok := value.(string) @@ -80774,6 +81889,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeAppImageConfigOutput(v **Describe } } + case "JupyterLabAppImageConfig": + if err := awsAwsjson11_deserializeDocumentJupyterLabAppImageConfig(&sv.JupyterLabAppImageConfig, value); err != nil { + return err + } + case "KernelGatewayImageConfig": if err := awsAwsjson11_deserializeDocumentKernelGatewayImageConfig(&sv.KernelGatewayImageConfig, value); err != nil { return err @@ -87607,6 +88727,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeSpaceOutput(v **DescribeSpaceOutp } } + case "OwnershipSettings": + if err := awsAwsjson11_deserializeDocumentOwnershipSettings(&sv.OwnershipSettings, value); err != nil { + return err + } + case "SpaceArn": if value != nil { jtv, ok := value.(string) @@ -87616,6 +88741,15 @@ func awsAwsjson11_deserializeOpDocumentDescribeSpaceOutput(v **DescribeSpaceOutp sv.SpaceArn = ptr.String(jtv) } + case "SpaceDisplayName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected NonEmptyString64 to be of type string, got %T instead", value) + } + sv.SpaceDisplayName = ptr.String(jtv) + } + case "SpaceName": if value != nil { jtv, ok := value.(string) @@ -87630,6 +88764,11 @@ func awsAwsjson11_deserializeOpDocumentDescribeSpaceOutput(v **DescribeSpaceOutp return err } + case "SpaceSharingSettings": + if err := awsAwsjson11_deserializeDocumentSpaceSharingSettings(&sv.SpaceSharingSettings, value); err != nil { + return err + } + case "Status": if value != nil { jtv, ok := value.(string) diff --git a/service/sagemaker/go.mod b/service/sagemaker/go.mod index 99279cf9055..9f3297a1db8 100644 --- a/service/sagemaker/go.mod +++ b/service/sagemaker/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemaker go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/sagemaker/go.sum b/service/sagemaker/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/sagemaker/go.sum +++ b/service/sagemaker/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/sagemaker/go_module_metadata.go b/service/sagemaker/go_module_metadata.go index 8326ee91c69..56ccc6cf9aa 100644 --- a/service/sagemaker/go_module_metadata.go +++ b/service/sagemaker/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemaker // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.119.0" +const goModuleVersion = "1.120.1" diff --git a/service/sagemaker/options.go b/service/sagemaker/options.go index 6908ef7d1af..42976a9ca64 100644 --- a/service/sagemaker/options.go +++ b/service/sagemaker/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index 50a22bae210..fe0a8886571 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -19166,6 +19166,27 @@ func awsAwsjson11_serializeDocumentClusterLifeCycleConfig(v *types.ClusterLifeCy return nil } +func awsAwsjson11_serializeDocumentCodeEditorAppSettings(v *types.CodeEditorAppSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DefaultResourceSpec != nil { + ok := object.Key("DefaultResourceSpec") + if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil { + return err + } + } + + if v.LifecycleConfigArns != nil { + ok := object.Key("LifecycleConfigArns") + if err := awsAwsjson11_serializeDocumentLifecycleConfigArns(v.LifecycleConfigArns, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentCodeRepositories(v []types.CodeRepository, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -19313,6 +19334,34 @@ func awsAwsjson11_serializeDocumentContainerArguments(v []string, value smithyjs return nil } +func awsAwsjson11_serializeDocumentContainerConfig(v *types.ContainerConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContainerArguments != nil { + ok := object.Key("ContainerArguments") + if err := awsAwsjson11_serializeDocumentCustomImageContainerArguments(v.ContainerArguments, ok); err != nil { + return err + } + } + + if v.ContainerEntrypoint != nil { + ok := object.Key("ContainerEntrypoint") + if err := awsAwsjson11_serializeDocumentCustomImageContainerEntrypoint(v.ContainerEntrypoint, ok); err != nil { + return err + } + } + + if v.ContainerEnvironmentVariables != nil { + ok := object.Key("ContainerEnvironmentVariables") + if err := awsAwsjson11_serializeDocumentCustomImageContainerEnvironmentVariables(v.ContainerEnvironmentVariables, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentContainerDefinition(v *types.ContainerDefinition, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -19548,6 +19597,74 @@ func awsAwsjson11_serializeDocumentCustomerMetadataMap(v map[string]string, valu return nil } +func awsAwsjson11_serializeDocumentCustomFileSystem(v types.CustomFileSystem, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.CustomFileSystemMemberEFSFileSystem: + av := object.Key("EFSFileSystem") + if err := awsAwsjson11_serializeDocumentEFSFileSystem(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsAwsjson11_serializeDocumentCustomFileSystemConfig(v types.CustomFileSystemConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + switch uv := v.(type) { + case *types.CustomFileSystemConfigMemberEFSFileSystemConfig: + av := object.Key("EFSFileSystemConfig") + if err := awsAwsjson11_serializeDocumentEFSFileSystemConfig(&uv.Value, av); err != nil { + return err + } + + default: + return fmt.Errorf("attempted to serialize unknown member type %T for union %T", uv, v) + + } + return nil +} + +func awsAwsjson11_serializeDocumentCustomFileSystemConfigs(v []types.CustomFileSystemConfig, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if vv := v[i]; vv == nil { + continue + } + if err := awsAwsjson11_serializeDocumentCustomFileSystemConfig(v[i], av); err != nil { + return err + } + } + return nil +} + +func awsAwsjson11_serializeDocumentCustomFileSystems(v []types.CustomFileSystem, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + if vv := v[i]; vv == nil { + continue + } + if err := awsAwsjson11_serializeDocumentCustomFileSystem(v[i], av); err != nil { + return err + } + } + return nil +} + func awsAwsjson11_serializeDocumentCustomImage(v *types.CustomImage, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -19570,6 +19687,39 @@ func awsAwsjson11_serializeDocumentCustomImage(v *types.CustomImage, value smith return nil } +func awsAwsjson11_serializeDocumentCustomImageContainerArguments(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsAwsjson11_serializeDocumentCustomImageContainerEntrypoint(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + +func awsAwsjson11_serializeDocumentCustomImageContainerEnvironmentVariables(v map[string]string, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + for key := range v { + om := object.Key(key) + om.String(v[key]) + } + return nil +} + func awsAwsjson11_serializeDocumentCustomImages(v []types.CustomImage, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -19583,6 +19733,23 @@ func awsAwsjson11_serializeDocumentCustomImages(v []types.CustomImage, value smi return nil } +func awsAwsjson11_serializeDocumentCustomPosixUserConfig(v *types.CustomPosixUserConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Gid != nil { + ok := object.Key("Gid") + ok.Long(*v.Gid) + } + + if v.Uid != nil { + ok := object.Key("Uid") + ok.Long(*v.Uid) + } + + return nil +} + func awsAwsjson11_serializeDocumentDataCaptureConfig(v *types.DataCaptureConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -19903,6 +20070,23 @@ func awsAwsjson11_serializeDocumentDebugRuleConfigurations(v []types.DebugRuleCo return nil } +func awsAwsjson11_serializeDocumentDefaultEbsStorageSettings(v *types.DefaultEbsStorageSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DefaultEbsVolumeSizeInGb != nil { + ok := object.Key("DefaultEbsVolumeSizeInGb") + ok.Integer(*v.DefaultEbsVolumeSizeInGb) + } + + if v.MaximumEbsVolumeSizeInGb != nil { + ok := object.Key("MaximumEbsVolumeSizeInGb") + ok.Integer(*v.MaximumEbsVolumeSizeInGb) + } + + return nil +} + func awsAwsjson11_serializeDocumentDefaultSpaceSettings(v *types.DefaultSpaceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -19936,6 +20120,20 @@ func awsAwsjson11_serializeDocumentDefaultSpaceSettings(v *types.DefaultSpaceSet return nil } +func awsAwsjson11_serializeDocumentDefaultSpaceStorageSettings(v *types.DefaultSpaceStorageSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DefaultEbsStorageSettings != nil { + ok := object.Key("DefaultEbsStorageSettings") + if err := awsAwsjson11_serializeDocumentDefaultEbsStorageSettings(v.DefaultEbsStorageSettings, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentDeploymentConfig(v *types.DeploymentConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -20334,6 +20532,18 @@ func awsAwsjson11_serializeDocumentDriftCheckModelQuality(v *types.DriftCheckMod return nil } +func awsAwsjson11_serializeDocumentEbsStorageSettings(v *types.EbsStorageSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EbsVolumeSizeInGb != nil { + ok := object.Key("EbsVolumeSizeInGb") + ok.Integer(*v.EbsVolumeSizeInGb) + } + + return nil +} + func awsAwsjson11_serializeDocumentEdgeDeploymentConfig(v *types.EdgeDeploymentConfig, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -20403,6 +20613,35 @@ func awsAwsjson11_serializeDocumentEdgeOutputConfig(v *types.EdgeOutputConfig, v return nil } +func awsAwsjson11_serializeDocumentEFSFileSystem(v *types.EFSFileSystem, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FileSystemId != nil { + ok := object.Key("FileSystemId") + ok.String(*v.FileSystemId) + } + + return nil +} + +func awsAwsjson11_serializeDocumentEFSFileSystemConfig(v *types.EFSFileSystemConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.FileSystemId != nil { + ok := object.Key("FileSystemId") + ok.String(*v.FileSystemId) + } + + if v.FileSystemPath != nil { + ok := object.Key("FileSystemPath") + ok.String(*v.FileSystemPath) + } + + return nil +} + func awsAwsjson11_serializeDocumentEndpointInfo(v *types.EndpointInfo, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -22147,6 +22386,55 @@ func awsAwsjson11_serializeDocumentJsonContentTypes(v []string, value smithyjson return nil } +func awsAwsjson11_serializeDocumentJupyterLabAppImageConfig(v *types.JupyterLabAppImageConfig, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ContainerConfig != nil { + ok := object.Key("ContainerConfig") + if err := awsAwsjson11_serializeDocumentContainerConfig(v.ContainerConfig, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentJupyterLabAppSettings(v *types.JupyterLabAppSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CodeRepositories != nil { + ok := object.Key("CodeRepositories") + if err := awsAwsjson11_serializeDocumentCodeRepositories(v.CodeRepositories, ok); err != nil { + return err + } + } + + if v.CustomImages != nil { + ok := object.Key("CustomImages") + if err := awsAwsjson11_serializeDocumentCustomImages(v.CustomImages, ok); err != nil { + return err + } + } + + if v.DefaultResourceSpec != nil { + ok := object.Key("DefaultResourceSpec") + if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil { + return err + } + } + + if v.LifecycleConfigArns != nil { + ok := object.Key("LifecycleConfigArns") + if err := awsAwsjson11_serializeDocumentLifecycleConfigArns(v.LifecycleConfigArns, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentJupyterServerAppSettings(v *types.JupyterServerAppSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -24140,6 +24428,18 @@ func awsAwsjson11_serializeDocumentOutputParameterList(v []types.OutputParameter return nil } +func awsAwsjson11_serializeDocumentOwnershipSettings(v *types.OwnershipSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.OwnerUserProfileName != nil { + ok := object.Key("OwnerUserProfileName") + ok.String(*v.OwnerUserProfileName) + } + + return nil +} + func awsAwsjson11_serializeDocumentParallelismConfiguration(v *types.ParallelismConfiguration, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -26163,10 +26463,71 @@ func awsAwsjson11_serializeDocumentSourceIpConfig(v *types.SourceIpConfig, value return nil } +func awsAwsjson11_serializeDocumentSpaceCodeEditorAppSettings(v *types.SpaceCodeEditorAppSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.DefaultResourceSpec != nil { + ok := object.Key("DefaultResourceSpec") + if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentSpaceJupyterLabAppSettings(v *types.SpaceJupyterLabAppSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.CodeRepositories != nil { + ok := object.Key("CodeRepositories") + if err := awsAwsjson11_serializeDocumentCodeRepositories(v.CodeRepositories, ok); err != nil { + return err + } + } + + if v.DefaultResourceSpec != nil { + ok := object.Key("DefaultResourceSpec") + if err := awsAwsjson11_serializeDocumentResourceSpec(v.DefaultResourceSpec, ok); err != nil { + return err + } + } + + return nil +} + func awsAwsjson11_serializeDocumentSpaceSettings(v *types.SpaceSettings, value smithyjson.Value) error { object := value.Object() defer object.Close() + if len(v.AppType) > 0 { + ok := object.Key("AppType") + ok.String(string(v.AppType)) + } + + if v.CodeEditorAppSettings != nil { + ok := object.Key("CodeEditorAppSettings") + if err := awsAwsjson11_serializeDocumentSpaceCodeEditorAppSettings(v.CodeEditorAppSettings, ok); err != nil { + return err + } + } + + if v.CustomFileSystems != nil { + ok := object.Key("CustomFileSystems") + if err := awsAwsjson11_serializeDocumentCustomFileSystems(v.CustomFileSystems, ok); err != nil { + return err + } + } + + if v.JupyterLabAppSettings != nil { + ok := object.Key("JupyterLabAppSettings") + if err := awsAwsjson11_serializeDocumentSpaceJupyterLabAppSettings(v.JupyterLabAppSettings, ok); err != nil { + return err + } + } + if v.JupyterServerAppSettings != nil { ok := object.Key("JupyterServerAppSettings") if err := awsAwsjson11_serializeDocumentJupyterServerAppSettings(v.JupyterServerAppSettings, ok); err != nil { @@ -26181,6 +26542,39 @@ func awsAwsjson11_serializeDocumentSpaceSettings(v *types.SpaceSettings, value s } } + if v.SpaceStorageSettings != nil { + ok := object.Key("SpaceStorageSettings") + if err := awsAwsjson11_serializeDocumentSpaceStorageSettings(v.SpaceStorageSettings, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentSpaceSharingSettings(v *types.SpaceSharingSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if len(v.SharingType) > 0 { + ok := object.Key("SharingType") + ok.String(string(v.SharingType)) + } + + return nil +} + +func awsAwsjson11_serializeDocumentSpaceStorageSettings(v *types.SpaceStorageSettings, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.EbsStorageSettings != nil { + ok := object.Key("EbsStorageSettings") + if err := awsAwsjson11_serializeDocumentEbsStorageSettings(v.EbsStorageSettings, ok); err != nil { + return err + } + } + return nil } @@ -27233,6 +27627,27 @@ func awsAwsjson11_serializeDocumentUserSettings(v *types.UserSettings, value smi } } + if v.CodeEditorAppSettings != nil { + ok := object.Key("CodeEditorAppSettings") + if err := awsAwsjson11_serializeDocumentCodeEditorAppSettings(v.CodeEditorAppSettings, ok); err != nil { + return err + } + } + + if v.CustomFileSystemConfigs != nil { + ok := object.Key("CustomFileSystemConfigs") + if err := awsAwsjson11_serializeDocumentCustomFileSystemConfigs(v.CustomFileSystemConfigs, ok); err != nil { + return err + } + } + + if v.CustomPosixUserConfig != nil { + ok := object.Key("CustomPosixUserConfig") + if err := awsAwsjson11_serializeDocumentCustomPosixUserConfig(v.CustomPosixUserConfig, ok); err != nil { + return err + } + } + if v.DefaultLandingUri != nil { ok := object.Key("DefaultLandingUri") ok.String(*v.DefaultLandingUri) @@ -27243,6 +27658,13 @@ func awsAwsjson11_serializeDocumentUserSettings(v *types.UserSettings, value smi ok.String(*v.ExecutionRole) } + if v.JupyterLabAppSettings != nil { + ok := object.Key("JupyterLabAppSettings") + if err := awsAwsjson11_serializeDocumentJupyterLabAppSettings(v.JupyterLabAppSettings, ok); err != nil { + return err + } + } + if v.JupyterServerAppSettings != nil { ok := object.Key("JupyterServerAppSettings") if err := awsAwsjson11_serializeDocumentJupyterServerAppSettings(v.JupyterServerAppSettings, ok); err != nil { @@ -27285,6 +27707,13 @@ func awsAwsjson11_serializeDocumentUserSettings(v *types.UserSettings, value smi } } + if v.SpaceStorageSettings != nil { + ok := object.Key("SpaceStorageSettings") + if err := awsAwsjson11_serializeDocumentDefaultSpaceStorageSettings(v.SpaceStorageSettings, ok); err != nil { + return err + } + } + if len(v.StudioWebPortal) > 0 { ok := object.Key("StudioWebPortal") ok.String(string(v.StudioWebPortal)) @@ -27620,6 +28049,13 @@ func awsAwsjson11_serializeOpDocumentCreateAppImageConfigInput(v *CreateAppImage ok.String(*v.AppImageConfigName) } + if v.JupyterLabAppImageConfig != nil { + ok := object.Key("JupyterLabAppImageConfig") + if err := awsAwsjson11_serializeDocumentJupyterLabAppImageConfig(v.JupyterLabAppImageConfig, ok); err != nil { + return err + } + } + if v.KernelGatewayImageConfig != nil { ok := object.Key("KernelGatewayImageConfig") if err := awsAwsjson11_serializeDocumentKernelGatewayImageConfig(v.KernelGatewayImageConfig, ok); err != nil { @@ -29902,6 +30338,18 @@ func awsAwsjson11_serializeOpDocumentCreateSpaceInput(v *CreateSpaceInput, value ok.String(*v.DomainId) } + if v.OwnershipSettings != nil { + ok := object.Key("OwnershipSettings") + if err := awsAwsjson11_serializeDocumentOwnershipSettings(v.OwnershipSettings, ok); err != nil { + return err + } + } + + if v.SpaceDisplayName != nil { + ok := object.Key("SpaceDisplayName") + ok.String(*v.SpaceDisplayName) + } + if v.SpaceName != nil { ok := object.Key("SpaceName") ok.String(*v.SpaceName) @@ -29914,6 +30362,13 @@ func awsAwsjson11_serializeOpDocumentCreateSpaceInput(v *CreateSpaceInput, value } } + if v.SpaceSharingSettings != nil { + ok := object.Key("SpaceSharingSettings") + if err := awsAwsjson11_serializeDocumentSpaceSharingSettings(v.SpaceSharingSettings, ok); err != nil { + return err + } + } + if v.Tags != nil { ok := object.Key("Tags") if err := awsAwsjson11_serializeDocumentTagList(v.Tags, ok); err != nil { @@ -36215,6 +36670,13 @@ func awsAwsjson11_serializeOpDocumentUpdateAppImageConfigInput(v *UpdateAppImage ok.String(*v.AppImageConfigName) } + if v.JupyterLabAppImageConfig != nil { + ok := object.Key("JupyterLabAppImageConfig") + if err := awsAwsjson11_serializeDocumentJupyterLabAppImageConfig(v.JupyterLabAppImageConfig, ok); err != nil { + return err + } + } + if v.KernelGatewayImageConfig != nil { ok := object.Key("KernelGatewayImageConfig") if err := awsAwsjson11_serializeDocumentKernelGatewayImageConfig(v.KernelGatewayImageConfig, ok); err != nil { @@ -37131,6 +37593,11 @@ func awsAwsjson11_serializeOpDocumentUpdateSpaceInput(v *UpdateSpaceInput, value ok.String(*v.DomainId) } + if v.SpaceDisplayName != nil { + ok := object.Key("SpaceDisplayName") + ok.String(*v.SpaceDisplayName) + } + if v.SpaceName != nil { ok := object.Key("SpaceName") ok.String(*v.SpaceName) diff --git a/service/sagemaker/types/enums.go b/service/sagemaker/types/enums.go index 0f4f5380f41..3691abf6080 100644 --- a/service/sagemaker/types/enums.go +++ b/service/sagemaker/types/enums.go @@ -357,6 +357,8 @@ const ( AppTypeTensorBoard AppType = "TensorBoard" AppTypeRStudioServerPro AppType = "RStudioServerPro" AppTypeRSessionGateway AppType = "RSessionGateway" + AppTypeJupyterLab AppType = "JupyterLab" + AppTypeCodeEditor AppType = "CodeEditor" ) // Values returns all known values for AppType. Note that this can be expanded in @@ -369,6 +371,8 @@ func (AppType) Values() []AppType { "TensorBoard", "RStudioServerPro", "RSessionGateway", + "JupyterLab", + "CodeEditor", } } @@ -5350,6 +5354,24 @@ func (SecondaryStatus) Values() []SecondaryStatus { } } +type SharingType string + +// Enum values for SharingType +const ( + SharingTypePrivate SharingType = "Private" + SharingTypeShared SharingType = "Shared" +) + +// Values returns all known values for SharingType. Note that this can be expanded +// in the future, and so it is only as up to date as the client. The ordering of +// this slice is not guaranteed to be stable across updates. +func (SharingType) Values() []SharingType { + return []SharingType{ + "Private", + "Shared", + } +} + type SkipModelValidation string // Enum values for SkipModelValidation @@ -5782,6 +5804,8 @@ type StudioLifecycleConfigAppType string const ( StudioLifecycleConfigAppTypeJupyterServer StudioLifecycleConfigAppType = "JupyterServer" StudioLifecycleConfigAppTypeKernelGateway StudioLifecycleConfigAppType = "KernelGateway" + StudioLifecycleConfigAppTypeJupyterLab StudioLifecycleConfigAppType = "JupyterLab" + StudioLifecycleConfigAppTypeCodeEditor StudioLifecycleConfigAppType = "CodeEditor" ) // Values returns all known values for StudioLifecycleConfigAppType. Note that @@ -5792,6 +5816,8 @@ func (StudioLifecycleConfigAppType) Values() []StudioLifecycleConfigAppType { return []StudioLifecycleConfigAppType{ "JupyterServer", "KernelGateway", + "JupyterLab", + "CodeEditor", } } diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index f4a102bee8f..ac22790833f 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -851,6 +851,10 @@ type AppDetails struct { // The domain ID. DomainId *string + // Specifies the ARN's of a SageMaker image and SageMaker image version, and the + // instance type that the version runs on. + ResourceSpec *ResourceSpec + // The name of the space. SpaceName *string @@ -875,6 +879,10 @@ type AppImageConfigDetails struct { // When the AppImageConfig was created. CreationTime *time.Time + // The configuration for the file system and the runtime, such as the environment + // variables and entry point. + JupyterLabAppImageConfig *JupyterLabAppImageConfig + // The configuration for the file system and kernels in the SageMaker image. KernelGatewayImageConfig *KernelGatewayImageConfig @@ -2759,6 +2767,22 @@ type ClusterSummary struct { noSmithyDocumentSerde } +// The Code Editor application settings. For more information about Code Editor, +// see Get started with Code Editor in Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/code-editor.html) +// . +type CodeEditorAppSettings struct { + + // Specifies the ARN's of a SageMaker image and SageMaker image version, and the + // instance type that the version runs on. + DefaultResourceSpec *ResourceSpec + + // The Amazon Resource Name (ARN) of the Code Editor application lifecycle + // configuration. + LifecycleConfigArns []string + + noSmithyDocumentSerde +} + // A Git repository that SageMaker automatically displays to users for cloning in // the JupyterServer application. type CodeRepository struct { @@ -2943,6 +2967,21 @@ type ConditionStepMetadata struct { noSmithyDocumentSerde } +// The configuration used to run the application image container. +type ContainerConfig struct { + + // The arguments for the container when you're running the application. + ContainerArguments []string + + // The entrypoint used to run the application in the container. + ContainerEntrypoint []string + + // The environment variables to set in the container + ContainerEnvironmentVariables map[string]string + + noSmithyDocumentSerde +} + // Describes the container, as part of model definition. type ContainerDefinition struct { @@ -3131,6 +3170,46 @@ type ConvergenceDetected struct { noSmithyDocumentSerde } +// A file system, created by you, that you assign to a user profile or space for +// an Amazon SageMaker Domain. Permitted users can access this file system in +// Amazon SageMaker Studio. +// +// The following types satisfy this interface: +// +// CustomFileSystemMemberEFSFileSystem +type CustomFileSystem interface { + isCustomFileSystem() +} + +// A custom file system in Amazon EFS. +type CustomFileSystemMemberEFSFileSystem struct { + Value EFSFileSystem + + noSmithyDocumentSerde +} + +func (*CustomFileSystemMemberEFSFileSystem) isCustomFileSystem() {} + +// The settings for assigning a custom file system to a user profile or space for +// an Amazon SageMaker Domain. Permitted users can access this file system in +// Amazon SageMaker Studio. +// +// The following types satisfy this interface: +// +// CustomFileSystemConfigMemberEFSFileSystemConfig +type CustomFileSystemConfig interface { + isCustomFileSystemConfig() +} + +// The settings for a custom Amazon EFS file system. +type CustomFileSystemConfigMemberEFSFileSystemConfig struct { + Value EFSFileSystemConfig + + noSmithyDocumentSerde +} + +func (*CustomFileSystemConfigMemberEFSFileSystemConfig) isCustomFileSystemConfig() {} + // A custom SageMaker image. For more information, see Bring your own SageMaker // image (https://docs.aws.amazon.com/sagemaker/latest/dg/studio-byoi.html) . type CustomImage struct { @@ -3166,6 +3245,22 @@ type CustomizedMetricSpecification struct { noSmithyDocumentSerde } +// Details about the POSIX identity that is used for file system operations. +type CustomPosixUserConfig struct { + + // The POSIX group ID. + // + // This member is required. + Gid *int64 + + // The POSIX user ID. + // + // This member is required. + Uid *int64 + + noSmithyDocumentSerde +} + // Configuration to control how SageMaker captures inference data. type DataCaptureConfig struct { @@ -3496,6 +3591,23 @@ type DebugRuleEvaluationStatus struct { noSmithyDocumentSerde } +// A collection of default EBS storage settings that applies to private spaces +// created within a domain or user profile. +type DefaultEbsStorageSettings struct { + + // The default size of the EBS storage volume for a private space. + // + // This member is required. + DefaultEbsVolumeSizeInGb *int32 + + // The maximum size of the EBS storage volume for a private space. + // + // This member is required. + MaximumEbsVolumeSizeInGb *int32 + + noSmithyDocumentSerde +} + // A collection of settings that apply to spaces created in the Domain. type DefaultSpaceSettings struct { @@ -3515,6 +3627,15 @@ type DefaultSpaceSettings struct { noSmithyDocumentSerde } +// The default storage settings for a private space. +type DefaultSpaceStorageSettings struct { + + // The default EBS storage settings for a private space. + DefaultEbsStorageSettings *DefaultEbsStorageSettings + + noSmithyDocumentSerde +} + // Gets the Amazon EC2 Container Registry path of the docker image of the model // that is hosted in this ProductionVariant (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ProductionVariant.html) // . If you used the registry/repository[:tag] form to specify the image path of @@ -4001,6 +4122,17 @@ type DynamicScalingConfiguration struct { noSmithyDocumentSerde } +// A collection of EBS storage settings that applies to private spaces. +type EbsStorageSettings struct { + + // The size of an EBS storage volume for a private space. + // + // This member is required. + EbsVolumeSizeInGb *int32 + + noSmithyDocumentSerde +} + // A directed edge connecting two lineage entities. type Edge struct { @@ -4295,6 +4427,35 @@ type EdgePresetDeploymentOutput struct { noSmithyDocumentSerde } +// A file system, created by you in Amazon EFS, that you assign to a user profile +// or space for an Amazon SageMaker Domain. Permitted users can access this file +// system in Amazon SageMaker Studio. +type EFSFileSystem struct { + + // The ID of your Amazon EFS file system. + // + // This member is required. + FileSystemId *string + + noSmithyDocumentSerde +} + +// The settings for assigning a custom Amazon EFS file system to a user profile or +// space for an Amazon SageMaker Domain. +type EFSFileSystemConfig struct { + + // The ID of your Amazon EFS file system. + // + // This member is required. + FileSystemId *string + + // The path to the file system directory that is accessible in Amazon SageMaker + // Studio. Permitted users can access only this directory and below. + FileSystemPath *string + + noSmithyDocumentSerde +} + // The configurations and outcomes of an Amazon EMR step execution. type EMRStepMetadata struct { @@ -7699,6 +7860,39 @@ type IntegerParameterRangeSpecification struct { noSmithyDocumentSerde } +// The configuration for the file system and kernels in a SageMaker image running +// as a JupyterLab app. +type JupyterLabAppImageConfig struct { + + // The configuration used to run the application image container. + ContainerConfig *ContainerConfig + + noSmithyDocumentSerde +} + +// The settings for the JupyterLab application. +type JupyterLabAppSettings struct { + + // A list of Git repositories that SageMaker automatically displays to users for + // cloning in the JupyterLab application. + CodeRepositories []CodeRepository + + // A list of custom SageMaker images that are configured to run as a JupyterLab + // app. + CustomImages []CustomImage + + // Specifies the ARN's of a SageMaker image and SageMaker image version, and the + // instance type that the version runs on. + DefaultResourceSpec *ResourceSpec + + // The Amazon Resource Name (ARN) of the lifecycle configurations attached to the + // user profile or domain. To remove a lifecycle config, you must set + // LifecycleConfigArns to an empty list. + LifecycleConfigArns []string + + noSmithyDocumentSerde +} + // The JupyterServer app settings. type JupyterServerAppSettings struct { @@ -10724,6 +10918,26 @@ type OutputParameter struct { noSmithyDocumentSerde } +// The collection of ownership settings for a space. +type OwnershipSettings struct { + + // The user profile who is the owner of the private space. + // + // This member is required. + OwnerUserProfileName *string + + noSmithyDocumentSerde +} + +// Specifies summary information about the ownership settings. +type OwnershipSettingsSummary struct { + + // The user profile who is the owner of the private space. + OwnerUserProfileName *string + + noSmithyDocumentSerde +} + // Configuration that controls the parallelism of the pipeline. By default, the // parallelism configuration specified applies to all executions of the pipeline // unless overridden. @@ -13702,6 +13916,16 @@ type SourceIpConfig struct { noSmithyDocumentSerde } +// The application settings for a Code Editor space. +type SpaceCodeEditorAppSettings struct { + + // Specifies the ARN's of a SageMaker image and SageMaker image version, and the + // instance type that the version runs on. + DefaultResourceSpec *ResourceSpec + + noSmithyDocumentSerde +} + // The space's details. type SpaceDetails struct { @@ -13714,24 +13938,108 @@ type SpaceDetails struct { // The last modified time. LastModifiedTime *time.Time + // Specifies summary information about the ownership settings. + OwnershipSettingsSummary *OwnershipSettingsSummary + + // The name of the space that appears in the Studio UI. + SpaceDisplayName *string + // The name of the space. SpaceName *string + // Specifies summary information about the space settings. + SpaceSettingsSummary *SpaceSettingsSummary + + // Specifies summary information about the space sharing settings. + SpaceSharingSettingsSummary *SpaceSharingSettingsSummary + // The status. Status SpaceStatus noSmithyDocumentSerde } +// The settings for the JupyterLab application within a space. +type SpaceJupyterLabAppSettings struct { + + // A list of Git repositories that SageMaker automatically displays to users for + // cloning in the JupyterLab application. + CodeRepositories []CodeRepository + + // Specifies the ARN's of a SageMaker image and SageMaker image version, and the + // instance type that the version runs on. + DefaultResourceSpec *ResourceSpec + + noSmithyDocumentSerde +} + // A collection of space settings. type SpaceSettings struct { + // The type of app created within the space. + AppType AppType + + // The Code Editor application settings. + CodeEditorAppSettings *SpaceCodeEditorAppSettings + + // A file system, created by you, that you assign to a space for an Amazon + // SageMaker Domain. Permitted users can access this file system in Amazon + // SageMaker Studio. + CustomFileSystems []CustomFileSystem + + // The settings for the JupyterLab application. + JupyterLabAppSettings *SpaceJupyterLabAppSettings + // The JupyterServer app settings. JupyterServerAppSettings *JupyterServerAppSettings // The KernelGateway app settings. KernelGatewayAppSettings *KernelGatewayAppSettings + // The storage settings for a private space. + SpaceStorageSettings *SpaceStorageSettings + + noSmithyDocumentSerde +} + +// Specifies summary information about the space settings. +type SpaceSettingsSummary struct { + + // The type of app created within the space. + AppType AppType + + // The storage settings for a private space. + SpaceStorageSettings *SpaceStorageSettings + + noSmithyDocumentSerde +} + +// A collection of space sharing settings. +type SpaceSharingSettings struct { + + // Specifies the sharing type of the space. + // + // This member is required. + SharingType SharingType + + noSmithyDocumentSerde +} + +// Specifies summary information about the space sharing settings. +type SpaceSharingSettingsSummary struct { + + // Specifies the sharing type of the space. + SharingType SharingType + + noSmithyDocumentSerde +} + +// The storage settings for a private space. +type SpaceStorageSettings struct { + + // A collection of EBS storage settings for a private space. + EbsStorageSettings *EbsStorageSettings + noSmithyDocumentSerde } @@ -15665,6 +15973,16 @@ type UserSettings struct { // The Canvas app settings. CanvasAppSettings *CanvasAppSettings + // The Code Editor application settings. + CodeEditorAppSettings *CodeEditorAppSettings + + // The settings for assigning a custom file system to a user profile. Permitted + // users can access this file system in Amazon SageMaker Studio. + CustomFileSystemConfigs []CustomFileSystemConfig + + // Details about the POSIX identity that is used for file system operations. + CustomPosixUserConfig *CustomPosixUserConfig + // The default experience that the user is directed to when accessing the domain. // The supported values are: // - studio:: : Indicates that Studio is the default experience. This value can @@ -15676,6 +15994,9 @@ type UserSettings struct { // The execution role for the user. ExecutionRole *string + // The settings for the JupyterLab application. + JupyterLabAppSettings *JupyterLabAppSettings + // The Jupyter server's app settings. JupyterServerAppSettings *JupyterServerAppSettings @@ -15702,6 +16023,9 @@ type UserSettings struct { // Specifies options for sharing Amazon SageMaker Studio notebooks. SharingSettings *SharingSettings + // The storage settings for a private space. + SpaceStorageSettings *DefaultSpaceStorageSettings + // Whether the user can access Studio. If this value is set to DISABLED , the user // cannot access Studio, even if that is the default experience for the domain. StudioWebPortal StudioWebPortal @@ -15990,6 +16314,8 @@ type UnknownUnionMember struct { func (*UnknownUnionMember) isAutoMLProblemTypeConfig() {} func (*UnknownUnionMember) isAutoMLProblemTypeResolvedAttributes() {} func (*UnknownUnionMember) isCollectionConfig() {} +func (*UnknownUnionMember) isCustomFileSystem() {} +func (*UnknownUnionMember) isCustomFileSystemConfig() {} func (*UnknownUnionMember) isMetricSpecification() {} func (*UnknownUnionMember) isScalingPolicy() {} func (*UnknownUnionMember) isTrialComponentParameterValue() {} diff --git a/service/sagemaker/types/types_exported_test.go b/service/sagemaker/types/types_exported_test.go index a93ae6df30f..d0c63bbf829 100644 --- a/service/sagemaker/types/types_exported_test.go +++ b/service/sagemaker/types/types_exported_test.go @@ -81,6 +81,42 @@ func ExampleCollectionConfig_outputUsage() { var _ *types.VectorConfig +func ExampleCustomFileSystem_outputUsage() { + var union types.CustomFileSystem + // type switches can be used to check the union value + switch v := union.(type) { + case *types.CustomFileSystemMemberEFSFileSystem: + _ = v.Value // Value is types.EFSFileSystem + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.EFSFileSystem + +func ExampleCustomFileSystemConfig_outputUsage() { + var union types.CustomFileSystemConfig + // type switches can be used to check the union value + switch v := union.(type) { + case *types.CustomFileSystemConfigMemberEFSFileSystemConfig: + _ = v.Value // Value is types.EFSFileSystemConfig + + case *types.UnknownUnionMember: + fmt.Println("unknown tag:", v.Tag) + + default: + fmt.Println("union is nil or unknown type") + + } +} + +var _ *types.EFSFileSystemConfig + func ExampleMetricSpecification_outputUsage() { var union types.MetricSpecification // type switches can be used to check the union value diff --git a/service/sagemaker/validators.go b/service/sagemaker/validators.go index dabab2acfe0..aa13582b51b 100644 --- a/service/sagemaker/validators.go +++ b/service/sagemaker/validators.go @@ -7364,6 +7364,78 @@ func validateContinuousParameterRangeSpecification(v *types.ContinuousParameterR } } +func validateCustomFileSystem(v types.CustomFileSystem) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomFileSystem"} + switch uv := v.(type) { + case *types.CustomFileSystemMemberEFSFileSystem: + if err := validateEFSFileSystem(&uv.Value); err != nil { + invalidParams.AddNested("[EFSFileSystem]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateCustomFileSystemConfig(v types.CustomFileSystemConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomFileSystemConfig"} + switch uv := v.(type) { + case *types.CustomFileSystemConfigMemberEFSFileSystemConfig: + if err := validateEFSFileSystemConfig(&uv.Value); err != nil { + invalidParams.AddNested("[EFSFileSystemConfig]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateCustomFileSystemConfigs(v []types.CustomFileSystemConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomFileSystemConfigs"} + for i := range v { + if err := validateCustomFileSystemConfig(v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateCustomFileSystems(v []types.CustomFileSystem) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomFileSystems"} + for i := range v { + if err := validateCustomFileSystem(v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCustomImage(v *types.CustomImage) error { if v == nil { return nil @@ -7399,6 +7471,24 @@ func validateCustomImages(v []types.CustomImage) error { } } +func validateCustomPosixUserConfig(v *types.CustomPosixUserConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CustomPosixUserConfig"} + if v.Uid == nil { + invalidParams.Add(smithy.NewErrParamRequired("Uid")) + } + if v.Gid == nil { + invalidParams.Add(smithy.NewErrParamRequired("Gid")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDataCaptureConfig(v *types.DataCaptureConfig) error { if v == nil { return nil @@ -7576,6 +7666,24 @@ func validateDebugRuleConfigurations(v []types.DebugRuleConfiguration) error { } } +func validateDefaultEbsStorageSettings(v *types.DefaultEbsStorageSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DefaultEbsStorageSettings"} + if v.DefaultEbsVolumeSizeInGb == nil { + invalidParams.Add(smithy.NewErrParamRequired("DefaultEbsVolumeSizeInGb")) + } + if v.MaximumEbsVolumeSizeInGb == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaximumEbsVolumeSizeInGb")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDefaultSpaceSettings(v *types.DefaultSpaceSettings) error { if v == nil { return nil @@ -7598,6 +7706,23 @@ func validateDefaultSpaceSettings(v *types.DefaultSpaceSettings) error { } } +func validateDefaultSpaceStorageSettings(v *types.DefaultSpaceStorageSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DefaultSpaceStorageSettings"} + if v.DefaultEbsStorageSettings != nil { + if err := validateDefaultEbsStorageSettings(v.DefaultEbsStorageSettings); err != nil { + invalidParams.AddNested("DefaultEbsStorageSettings", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateDeploymentConfig(v *types.DeploymentConfig) error { if v == nil { return nil @@ -7902,6 +8027,21 @@ func validateDriftCheckModelQuality(v *types.DriftCheckModelQuality) error { } } +func validateEbsStorageSettings(v *types.EbsStorageSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EbsStorageSettings"} + if v.EbsVolumeSizeInGb == nil { + invalidParams.Add(smithy.NewErrParamRequired("EbsVolumeSizeInGb")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateEdgeDeploymentConfig(v *types.EdgeDeploymentConfig) error { if v == nil { return nil @@ -7967,6 +8107,36 @@ func validateEdgeOutputConfig(v *types.EdgeOutputConfig) error { } } +func validateEFSFileSystem(v *types.EFSFileSystem) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EFSFileSystem"} + if v.FileSystemId == nil { + invalidParams.Add(smithy.NewErrParamRequired("FileSystemId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateEFSFileSystemConfig(v *types.EFSFileSystemConfig) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EFSFileSystemConfig"} + if v.FileSystemId == nil { + invalidParams.Add(smithy.NewErrParamRequired("FileSystemId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateEndpointInfo(v *types.EndpointInfo) error { if v == nil { return nil @@ -8926,6 +9096,28 @@ func validateIntegerParameterRangeSpecification(v *types.IntegerParameterRangeSp } } +func validateJupyterLabAppSettings(v *types.JupyterLabAppSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "JupyterLabAppSettings"} + if v.CustomImages != nil { + if err := validateCustomImages(v.CustomImages); err != nil { + invalidParams.AddNested("CustomImages", err.(smithy.InvalidParamsError)) + } + } + if v.CodeRepositories != nil { + if err := validateCodeRepositories(v.CodeRepositories); err != nil { + invalidParams.AddNested("CodeRepositories", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateJupyterServerAppSettings(v *types.JupyterServerAppSettings) error { if v == nil { return nil @@ -10201,6 +10393,21 @@ func validateOutputParameterList(v []types.OutputParameter) error { } } +func validateOwnershipSettings(v *types.OwnershipSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "OwnershipSettings"} + if v.OwnerUserProfileName == nil { + invalidParams.Add(smithy.NewErrParamRequired("OwnerUserProfileName")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateParallelismConfiguration(v *types.ParallelismConfiguration) error { if v == nil { return nil @@ -11272,6 +11479,23 @@ func validateSourceIpConfig(v *types.SourceIpConfig) error { } } +func validateSpaceJupyterLabAppSettings(v *types.SpaceJupyterLabAppSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SpaceJupyterLabAppSettings"} + if v.CodeRepositories != nil { + if err := validateCodeRepositories(v.CodeRepositories); err != nil { + invalidParams.AddNested("CodeRepositories", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateSpaceSettings(v *types.SpaceSettings) error { if v == nil { return nil @@ -11287,6 +11511,53 @@ func validateSpaceSettings(v *types.SpaceSettings) error { invalidParams.AddNested("KernelGatewayAppSettings", err.(smithy.InvalidParamsError)) } } + if v.JupyterLabAppSettings != nil { + if err := validateSpaceJupyterLabAppSettings(v.JupyterLabAppSettings); err != nil { + invalidParams.AddNested("JupyterLabAppSettings", err.(smithy.InvalidParamsError)) + } + } + if v.SpaceStorageSettings != nil { + if err := validateSpaceStorageSettings(v.SpaceStorageSettings); err != nil { + invalidParams.AddNested("SpaceStorageSettings", err.(smithy.InvalidParamsError)) + } + } + if v.CustomFileSystems != nil { + if err := validateCustomFileSystems(v.CustomFileSystems); err != nil { + invalidParams.AddNested("CustomFileSystems", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSpaceSharingSettings(v *types.SpaceSharingSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SpaceSharingSettings"} + if len(v.SharingType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("SharingType")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateSpaceStorageSettings(v *types.SpaceStorageSettings) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "SpaceStorageSettings"} + if v.EbsStorageSettings != nil { + if err := validateEbsStorageSettings(v.EbsStorageSettings); err != nil { + invalidParams.AddNested("EbsStorageSettings", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11800,6 +12071,26 @@ func validateUserSettings(v *types.UserSettings) error { invalidParams.AddNested("RSessionAppSettings", err.(smithy.InvalidParamsError)) } } + if v.JupyterLabAppSettings != nil { + if err := validateJupyterLabAppSettings(v.JupyterLabAppSettings); err != nil { + invalidParams.AddNested("JupyterLabAppSettings", err.(smithy.InvalidParamsError)) + } + } + if v.SpaceStorageSettings != nil { + if err := validateDefaultSpaceStorageSettings(v.SpaceStorageSettings); err != nil { + invalidParams.AddNested("SpaceStorageSettings", err.(smithy.InvalidParamsError)) + } + } + if v.CustomPosixUserConfig != nil { + if err := validateCustomPosixUserConfig(v.CustomPosixUserConfig); err != nil { + invalidParams.AddNested("CustomPosixUserConfig", err.(smithy.InvalidParamsError)) + } + } + if v.CustomFileSystemConfigs != nil { + if err := validateCustomFileSystemConfigs(v.CustomFileSystemConfigs); err != nil { + invalidParams.AddNested("CustomFileSystemConfigs", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -13640,6 +13931,16 @@ func validateOpCreateSpaceInput(v *CreateSpaceInput) error { invalidParams.AddNested("SpaceSettings", err.(smithy.InvalidParamsError)) } } + if v.OwnershipSettings != nil { + if err := validateOwnershipSettings(v.OwnershipSettings); err != nil { + invalidParams.AddNested("OwnershipSettings", err.(smithy.InvalidParamsError)) + } + } + if v.SpaceSharingSettings != nil { + if err := validateSpaceSharingSettings(v.SpaceSharingSettings); err != nil { + invalidParams.AddNested("SpaceSharingSettings", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/sagemakera2iruntime/CHANGELOG.md b/service/sagemakera2iruntime/CHANGELOG.md index df8554301bc..3d1a38f4f99 100644 --- a/service/sagemakera2iruntime/CHANGELOG.md +++ b/service/sagemakera2iruntime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sagemakera2iruntime/api_client.go b/service/sagemakera2iruntime/api_client.go index a4131ba418f..fd093777c7b 100644 --- a/service/sagemakera2iruntime/api_client.go +++ b/service/sagemakera2iruntime/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sagemakera2iruntime/auth.go b/service/sagemakera2iruntime/auth.go index bb8977407de..e7865bb6ed5 100644 --- a/service/sagemakera2iruntime/auth.go +++ b/service/sagemakera2iruntime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sagemakera2iruntime/go.mod b/service/sagemakera2iruntime/go.mod index 78394f2ee1d..3654642c671 100644 --- a/service/sagemakera2iruntime/go.mod +++ b/service/sagemakera2iruntime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakera2iruntime/go.sum b/service/sagemakera2iruntime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sagemakera2iruntime/go.sum +++ b/service/sagemakera2iruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakera2iruntime/go_module_metadata.go b/service/sagemakera2iruntime/go_module_metadata.go index fab44a51d9c..cca09395cb4 100644 --- a/service/sagemakera2iruntime/go_module_metadata.go +++ b/service/sagemakera2iruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakera2iruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/sagemakera2iruntime/options.go b/service/sagemakera2iruntime/options.go index 7265c228e48..f59b25a3e29 100644 --- a/service/sagemakera2iruntime/options.go +++ b/service/sagemakera2iruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakeredge/CHANGELOG.md b/service/sagemakeredge/CHANGELOG.md index 052358412cf..5d7f3168d1e 100644 --- a/service/sagemakeredge/CHANGELOG.md +++ b/service/sagemakeredge/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sagemakeredge/api_client.go b/service/sagemakeredge/api_client.go index 3cefd762fad..425b907608d 100644 --- a/service/sagemakeredge/api_client.go +++ b/service/sagemakeredge/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sagemakeredge/auth.go b/service/sagemakeredge/auth.go index 1dc9b675c6b..8602f79f10e 100644 --- a/service/sagemakeredge/auth.go +++ b/service/sagemakeredge/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sagemakeredge/go.mod b/service/sagemakeredge/go.mod index 680e2d793ba..721df90b9a5 100644 --- a/service/sagemakeredge/go.mod +++ b/service/sagemakeredge/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakeredge go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakeredge/go.sum b/service/sagemakeredge/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sagemakeredge/go.sum +++ b/service/sagemakeredge/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakeredge/go_module_metadata.go b/service/sagemakeredge/go_module_metadata.go index 407064a5190..2f4dd747956 100644 --- a/service/sagemakeredge/go_module_metadata.go +++ b/service/sagemakeredge/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakeredge // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/sagemakeredge/options.go b/service/sagemakeredge/options.go index 1b2a81f6368..1a33afda5aa 100644 --- a/service/sagemakeredge/options.go +++ b/service/sagemakeredge/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakerfeaturestoreruntime/CHANGELOG.md b/service/sagemakerfeaturestoreruntime/CHANGELOG.md index 7c403d1ddf6..7c349056714 100644 --- a/service/sagemakerfeaturestoreruntime/CHANGELOG.md +++ b/service/sagemakerfeaturestoreruntime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sagemakerfeaturestoreruntime/api_client.go b/service/sagemakerfeaturestoreruntime/api_client.go index c60001353a4..28821e0bce4 100644 --- a/service/sagemakerfeaturestoreruntime/api_client.go +++ b/service/sagemakerfeaturestoreruntime/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sagemakerfeaturestoreruntime/auth.go b/service/sagemakerfeaturestoreruntime/auth.go index 87b1101a6fb..84e17a747dc 100644 --- a/service/sagemakerfeaturestoreruntime/auth.go +++ b/service/sagemakerfeaturestoreruntime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sagemakerfeaturestoreruntime/go.mod b/service/sagemakerfeaturestoreruntime/go.mod index a6317ca166b..e39e17e95e7 100644 --- a/service/sagemakerfeaturestoreruntime/go.mod +++ b/service/sagemakerfeaturestoreruntime/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakerfeaturestoreruntime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakerfeaturestoreruntime/go.sum b/service/sagemakerfeaturestoreruntime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sagemakerfeaturestoreruntime/go.sum +++ b/service/sagemakerfeaturestoreruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerfeaturestoreruntime/go_module_metadata.go b/service/sagemakerfeaturestoreruntime/go_module_metadata.go index 7c7a162ce28..2f41d4fd509 100644 --- a/service/sagemakerfeaturestoreruntime/go_module_metadata.go +++ b/service/sagemakerfeaturestoreruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakerfeaturestoreruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/sagemakerfeaturestoreruntime/options.go b/service/sagemakerfeaturestoreruntime/options.go index b233eb1e608..c94ba8cb45a 100644 --- a/service/sagemakerfeaturestoreruntime/options.go +++ b/service/sagemakerfeaturestoreruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakergeospatial/CHANGELOG.md b/service/sagemakergeospatial/CHANGELOG.md index f0469b7edd9..b7b8ffc1c0c 100644 --- a/service/sagemakergeospatial/CHANGELOG.md +++ b/service/sagemakergeospatial/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.8.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.8.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sagemakergeospatial/api_client.go b/service/sagemakergeospatial/api_client.go index 711d79e9fc7..38aee1c88a1 100644 --- a/service/sagemakergeospatial/api_client.go +++ b/service/sagemakergeospatial/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sagemakergeospatial/auth.go b/service/sagemakergeospatial/auth.go index 5c1141f7a3c..d2a8bc86efa 100644 --- a/service/sagemakergeospatial/auth.go +++ b/service/sagemakergeospatial/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sagemakergeospatial/go.mod b/service/sagemakergeospatial/go.mod index 835a42b2402..6da30ddf352 100644 --- a/service/sagemakergeospatial/go.mod +++ b/service/sagemakergeospatial/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakergeospatial go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakergeospatial/go.sum b/service/sagemakergeospatial/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sagemakergeospatial/go.sum +++ b/service/sagemakergeospatial/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakergeospatial/go_module_metadata.go b/service/sagemakergeospatial/go_module_metadata.go index fbadab3bb9e..b4757d15980 100644 --- a/service/sagemakergeospatial/go_module_metadata.go +++ b/service/sagemakergeospatial/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakergeospatial // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.0" +const goModuleVersion = "1.8.2" diff --git a/service/sagemakergeospatial/options.go b/service/sagemakergeospatial/options.go index fa181bc31c4..b91d65735af 100644 --- a/service/sagemakergeospatial/options.go +++ b/service/sagemakergeospatial/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakermetrics/CHANGELOG.md b/service/sagemakermetrics/CHANGELOG.md index 543c47f241f..a3996cf7f60 100644 --- a/service/sagemakermetrics/CHANGELOG.md +++ b/service/sagemakermetrics/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sagemakermetrics/api_client.go b/service/sagemakermetrics/api_client.go index a2ba70f52ed..91726e21395 100644 --- a/service/sagemakermetrics/api_client.go +++ b/service/sagemakermetrics/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sagemakermetrics/auth.go b/service/sagemakermetrics/auth.go index 9e09e8b559c..43fe3ede61a 100644 --- a/service/sagemakermetrics/auth.go +++ b/service/sagemakermetrics/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sagemakermetrics/go.mod b/service/sagemakermetrics/go.mod index 761e4a2ec34..e56657f836d 100644 --- a/service/sagemakermetrics/go.mod +++ b/service/sagemakermetrics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakermetrics go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakermetrics/go.sum b/service/sagemakermetrics/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sagemakermetrics/go.sum +++ b/service/sagemakermetrics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakermetrics/go_module_metadata.go b/service/sagemakermetrics/go_module_metadata.go index b5fccf67844..6a6d0bb396a 100644 --- a/service/sagemakermetrics/go_module_metadata.go +++ b/service/sagemakermetrics/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakermetrics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/sagemakermetrics/options.go b/service/sagemakermetrics/options.go index a780737646b..c42db56ac8c 100644 --- a/service/sagemakermetrics/options.go +++ b/service/sagemakermetrics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sagemakerruntime/CHANGELOG.md b/service/sagemakerruntime/CHANGELOG.md index 4c3d32cc2f5..812ad6120f3 100644 --- a/service/sagemakerruntime/CHANGELOG.md +++ b/service/sagemakerruntime/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sagemakerruntime/api_client.go b/service/sagemakerruntime/api_client.go index 9b4c3f9523f..92331bd0380 100644 --- a/service/sagemakerruntime/api_client.go +++ b/service/sagemakerruntime/api_client.go @@ -142,7 +142,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -151,7 +151,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sagemakerruntime/auth.go b/service/sagemakerruntime/auth.go index 803394755b1..5c37d41ba9c 100644 --- a/service/sagemakerruntime/auth.go +++ b/service/sagemakerruntime/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sagemakerruntime/go.mod b/service/sagemakerruntime/go.mod index fa53be67129..9660ce9c6df 100644 --- a/service/sagemakerruntime/go.mod +++ b/service/sagemakerruntime/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/sagemakerruntime go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sagemakerruntime/go.sum b/service/sagemakerruntime/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sagemakerruntime/go.sum +++ b/service/sagemakerruntime/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sagemakerruntime/go_module_metadata.go b/service/sagemakerruntime/go_module_metadata.go index 56740d553f8..679c2bbccfd 100644 --- a/service/sagemakerruntime/go_module_metadata.go +++ b/service/sagemakerruntime/go_module_metadata.go @@ -3,4 +3,4 @@ package sagemakerruntime // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/sagemakerruntime/options.go b/service/sagemakerruntime/options.go index 58b437df847..650242cec76 100644 --- a/service/sagemakerruntime/options.go +++ b/service/sagemakerruntime/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/savingsplans/CHANGELOG.md b/service/savingsplans/CHANGELOG.md index 2bbed976f9a..1dea0e09493 100644 --- a/service/savingsplans/CHANGELOG.md +++ b/service/savingsplans/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.16.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.16.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.16.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/savingsplans/api_client.go b/service/savingsplans/api_client.go index 23aefac49da..c863914b1e5 100644 --- a/service/savingsplans/api_client.go +++ b/service/savingsplans/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/savingsplans/auth.go b/service/savingsplans/auth.go index 557e7d9b96f..e6cb4af3d7e 100644 --- a/service/savingsplans/auth.go +++ b/service/savingsplans/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/savingsplans/go.mod b/service/savingsplans/go.mod index fd052dbd55d..19d0a66177c 100644 --- a/service/savingsplans/go.mod +++ b/service/savingsplans/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/savingsplans go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/savingsplans/go.sum b/service/savingsplans/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/savingsplans/go.sum +++ b/service/savingsplans/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/savingsplans/go_module_metadata.go b/service/savingsplans/go_module_metadata.go index 9561a1c73d8..c91fe92d1a1 100644 --- a/service/savingsplans/go_module_metadata.go +++ b/service/savingsplans/go_module_metadata.go @@ -3,4 +3,4 @@ package savingsplans // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.16.0" +const goModuleVersion = "1.16.2" diff --git a/service/savingsplans/options.go b/service/savingsplans/options.go index 968ff423a4e..661413e6c29 100644 --- a/service/savingsplans/options.go +++ b/service/savingsplans/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/scheduler/CHANGELOG.md b/service/scheduler/CHANGELOG.md index 578803896d8..def8a4f5b0b 100644 --- a/service/scheduler/CHANGELOG.md +++ b/service/scheduler/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/scheduler/api_client.go b/service/scheduler/api_client.go index 9882c5c4e05..ad078303f8b 100644 --- a/service/scheduler/api_client.go +++ b/service/scheduler/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/scheduler/auth.go b/service/scheduler/auth.go index 7266d654479..e9bddf00909 100644 --- a/service/scheduler/auth.go +++ b/service/scheduler/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/scheduler/go.mod b/service/scheduler/go.mod index 55f55513a4b..8f4e336d0bc 100644 --- a/service/scheduler/go.mod +++ b/service/scheduler/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/scheduler go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/scheduler/go.sum b/service/scheduler/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/scheduler/go.sum +++ b/service/scheduler/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/scheduler/go_module_metadata.go b/service/scheduler/go_module_metadata.go index a9827417780..86aa152db2c 100644 --- a/service/scheduler/go_module_metadata.go +++ b/service/scheduler/go_module_metadata.go @@ -3,4 +3,4 @@ package scheduler // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/scheduler/options.go b/service/scheduler/options.go index 2f0f42b7c13..568c8b676b4 100644 --- a/service/scheduler/options.go +++ b/service/scheduler/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/schemas/CHANGELOG.md b/service/schemas/CHANGELOG.md index 9034093f33c..869744bc66e 100644 --- a/service/schemas/CHANGELOG.md +++ b/service/schemas/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/schemas/api_client.go b/service/schemas/api_client.go index 54ca692f470..880ec52c2b1 100644 --- a/service/schemas/api_client.go +++ b/service/schemas/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/schemas/auth.go b/service/schemas/auth.go index 2145a4d2dda..0e064bf2573 100644 --- a/service/schemas/auth.go +++ b/service/schemas/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/schemas/go.mod b/service/schemas/go.mod index 993b377f685..7ba0eda8dc1 100644 --- a/service/schemas/go.mod +++ b/service/schemas/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/schemas go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/schemas/go.sum b/service/schemas/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/schemas/go.sum +++ b/service/schemas/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/schemas/go_module_metadata.go b/service/schemas/go_module_metadata.go index caf7b279da3..206d8131859 100644 --- a/service/schemas/go_module_metadata.go +++ b/service/schemas/go_module_metadata.go @@ -3,4 +3,4 @@ package schemas // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/schemas/options.go b/service/schemas/options.go index c79802dc664..b8a81cdfac6 100644 --- a/service/schemas/options.go +++ b/service/schemas/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/secretsmanager/CHANGELOG.md b/service/secretsmanager/CHANGELOG.md index 544d8423eab..ea7bac35a27 100644 --- a/service/secretsmanager/CHANGELOG.md +++ b/service/secretsmanager/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/secretsmanager/api_client.go b/service/secretsmanager/api_client.go index 6c26ff1ae1c..2222951a996 100644 --- a/service/secretsmanager/api_client.go +++ b/service/secretsmanager/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/secretsmanager/auth.go b/service/secretsmanager/auth.go index 053e40ba5fd..0504f52311b 100644 --- a/service/secretsmanager/auth.go +++ b/service/secretsmanager/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/secretsmanager/go.mod b/service/secretsmanager/go.mod index ec94f010e5f..86f01209e9c 100644 --- a/service/secretsmanager/go.mod +++ b/service/secretsmanager/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/secretsmanager go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/secretsmanager/go.sum b/service/secretsmanager/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/secretsmanager/go.sum +++ b/service/secretsmanager/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/secretsmanager/go_module_metadata.go b/service/secretsmanager/go_module_metadata.go index 1c00b5ea481..6183ec59645 100644 --- a/service/secretsmanager/go_module_metadata.go +++ b/service/secretsmanager/go_module_metadata.go @@ -3,4 +3,4 @@ package secretsmanager // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/secretsmanager/options.go b/service/secretsmanager/options.go index 637e413078d..2bfb24e63bb 100644 --- a/service/secretsmanager/options.go +++ b/service/secretsmanager/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/securityhub/CHANGELOG.md b/service/securityhub/CHANGELOG.md index 8adfd7e5f77..566eddf07ca 100644 --- a/service/securityhub/CHANGELOG.md +++ b/service/securityhub/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.43.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.43.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/securityhub/api_client.go b/service/securityhub/api_client.go index 0a5fd338559..1ac60425667 100644 --- a/service/securityhub/api_client.go +++ b/service/securityhub/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/securityhub/auth.go b/service/securityhub/auth.go index 14a6e3b3c69..6279cbbe52b 100644 --- a/service/securityhub/auth.go +++ b/service/securityhub/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/securityhub/go.mod b/service/securityhub/go.mod index 9ae3957d144..f98b80abf38 100644 --- a/service/securityhub/go.mod +++ b/service/securityhub/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/securityhub go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/securityhub/go.sum b/service/securityhub/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/securityhub/go.sum +++ b/service/securityhub/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securityhub/go_module_metadata.go b/service/securityhub/go_module_metadata.go index 9f769dde1ee..7f50b21d515 100644 --- a/service/securityhub/go_module_metadata.go +++ b/service/securityhub/go_module_metadata.go @@ -3,4 +3,4 @@ package securityhub // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.0" +const goModuleVersion = "1.43.2" diff --git a/service/securityhub/options.go b/service/securityhub/options.go index dab1fd54b4b..bd3aff68b0a 100644 --- a/service/securityhub/options.go +++ b/service/securityhub/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/securitylake/CHANGELOG.md b/service/securitylake/CHANGELOG.md index 6278ee0e87c..256f46560e7 100644 --- a/service/securitylake/CHANGELOG.md +++ b/service/securitylake/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/securitylake/api_client.go b/service/securitylake/api_client.go index db120acc906..8672a3753f4 100644 --- a/service/securitylake/api_client.go +++ b/service/securitylake/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/securitylake/auth.go b/service/securitylake/auth.go index afe49c4325e..8e3bee5d6a1 100644 --- a/service/securitylake/auth.go +++ b/service/securitylake/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/securitylake/go.mod b/service/securitylake/go.mod index 6ad670be4bc..591b696825f 100644 --- a/service/securitylake/go.mod +++ b/service/securitylake/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/securitylake go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/securitylake/go.sum b/service/securitylake/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/securitylake/go.sum +++ b/service/securitylake/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/securitylake/go_module_metadata.go b/service/securitylake/go_module_metadata.go index 1b004f111ef..ced54fd52ae 100644 --- a/service/securitylake/go_module_metadata.go +++ b/service/securitylake/go_module_metadata.go @@ -3,4 +3,4 @@ package securitylake // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/securitylake/options.go b/service/securitylake/options.go index 32d4571e113..86840e6525b 100644 --- a/service/securitylake/options.go +++ b/service/securitylake/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/serverlessapplicationrepository/CHANGELOG.md b/service/serverlessapplicationrepository/CHANGELOG.md index 03ebadab30d..9a75a134d8d 100644 --- a/service/serverlessapplicationrepository/CHANGELOG.md +++ b/service/serverlessapplicationrepository/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/serverlessapplicationrepository/api_client.go b/service/serverlessapplicationrepository/api_client.go index 9a0eb7bfcbd..cb4faef7b78 100644 --- a/service/serverlessapplicationrepository/api_client.go +++ b/service/serverlessapplicationrepository/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/serverlessapplicationrepository/auth.go b/service/serverlessapplicationrepository/auth.go index 4f660e2e1da..2f7d48d9842 100644 --- a/service/serverlessapplicationrepository/auth.go +++ b/service/serverlessapplicationrepository/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/serverlessapplicationrepository/go.mod b/service/serverlessapplicationrepository/go.mod index b8867d96fc8..e0d117422b7 100644 --- a/service/serverlessapplicationrepository/go.mod +++ b/service/serverlessapplicationrepository/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/serverlessapplicationrepository go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/serverlessapplicationrepository/go.sum b/service/serverlessapplicationrepository/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/serverlessapplicationrepository/go.sum +++ b/service/serverlessapplicationrepository/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/serverlessapplicationrepository/go_module_metadata.go b/service/serverlessapplicationrepository/go_module_metadata.go index 691f9ae7b13..4f639ffc6ed 100644 --- a/service/serverlessapplicationrepository/go_module_metadata.go +++ b/service/serverlessapplicationrepository/go_module_metadata.go @@ -3,4 +3,4 @@ package serverlessapplicationrepository // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/serverlessapplicationrepository/options.go b/service/serverlessapplicationrepository/options.go index 102af863ef2..f43651ffceb 100644 --- a/service/serverlessapplicationrepository/options.go +++ b/service/serverlessapplicationrepository/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicecatalog/CHANGELOG.md b/service/servicecatalog/CHANGELOG.md index d5444b71460..b60c018315a 100644 --- a/service/servicecatalog/CHANGELOG.md +++ b/service/servicecatalog/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.25.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.25.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.25.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/servicecatalog/api_client.go b/service/servicecatalog/api_client.go index 799a9a097a1..08b9e683cc5 100644 --- a/service/servicecatalog/api_client.go +++ b/service/servicecatalog/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/servicecatalog/auth.go b/service/servicecatalog/auth.go index e467214d1fc..c41524b373f 100644 --- a/service/servicecatalog/auth.go +++ b/service/servicecatalog/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/servicecatalog/go.mod b/service/servicecatalog/go.mod index a7a9adb82a1..9f24e8471a9 100644 --- a/service/servicecatalog/go.mod +++ b/service/servicecatalog/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicecatalog go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicecatalog/go.sum b/service/servicecatalog/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/servicecatalog/go.sum +++ b/service/servicecatalog/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalog/go_module_metadata.go b/service/servicecatalog/go_module_metadata.go index f013061046d..021c8d3baa3 100644 --- a/service/servicecatalog/go_module_metadata.go +++ b/service/servicecatalog/go_module_metadata.go @@ -3,4 +3,4 @@ package servicecatalog // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.25.0" +const goModuleVersion = "1.25.2" diff --git a/service/servicecatalog/options.go b/service/servicecatalog/options.go index 180bf8f8bfe..e2f8eb272aa 100644 --- a/service/servicecatalog/options.go +++ b/service/servicecatalog/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicecatalogappregistry/CHANGELOG.md b/service/servicecatalogappregistry/CHANGELOG.md index 00ed84cb1b2..57b6ac712fc 100644 --- a/service/servicecatalogappregistry/CHANGELOG.md +++ b/service/servicecatalogappregistry/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.24.3 (2023-12-04) + +* **Documentation**: Documentation-only updates for Dawn + +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/servicecatalogappregistry/api_client.go b/service/servicecatalogappregistry/api_client.go index 485b9688a4d..4fd8d73142d 100644 --- a/service/servicecatalogappregistry/api_client.go +++ b/service/servicecatalogappregistry/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/servicecatalogappregistry/api_op_AssociateResource.go b/service/servicecatalogappregistry/api_op_AssociateResource.go index 5bfa5475721..afb62365ce0 100644 --- a/service/servicecatalogappregistry/api_op_AssociateResource.go +++ b/service/servicecatalogappregistry/api_op_AssociateResource.go @@ -23,7 +23,7 @@ import ( // AWSServiceCatalogAppRegistryFullAccess policy. For more information, see // AWSServiceCatalogAppRegistryFullAccess (https://docs.aws.amazon.com/servicecatalog/latest/arguide/full.html) // in the AppRegistry Administrator Guide. -// - resource-groups:DisassociateResource +// - resource-groups:AssociateResource // - cloudformation:UpdateStack // - cloudformation:DescribeStacks // diff --git a/service/servicecatalogappregistry/auth.go b/service/servicecatalogappregistry/auth.go index f1edf1f03a5..d50cd7d8a93 100644 --- a/service/servicecatalogappregistry/auth.go +++ b/service/servicecatalogappregistry/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/servicecatalogappregistry/endpoints_test.go b/service/servicecatalogappregistry/endpoints_test.go index 1346f6e6c73..c0a0a2d4af4 100644 --- a/service/servicecatalogappregistry/endpoints_test.go +++ b/service/servicecatalogappregistry/endpoints_test.go @@ -1868,23 +1868,3 @@ func TestEndpointCase50(t *testing.T) { t.Errorf("expect %v error in %v", e, a) } } - -// Partition doesn't support DualStack -func TestEndpointCase51(t *testing.T) { - var params = EndpointParameters{ - Region: ptr.String("us-isob-east-1"), - UseFIPS: ptr.Bool(false), - UseDualStack: ptr.Bool(true), - } - - resolver := NewDefaultEndpointResolverV2() - result, err := resolver.ResolveEndpoint(context.Background(), params) - _, _ = result, err - - if err == nil { - t.Fatalf("expect error, got none") - } - if e, a := "DualStack is enabled but this partition does not support DualStack", err.Error(); !strings.Contains(a, e) { - t.Errorf("expect %v error in %v", e, a) - } -} diff --git a/service/servicecatalogappregistry/go.mod b/service/servicecatalogappregistry/go.mod index c6aa589a389..27474a8b390 100644 --- a/service/servicecatalogappregistry/go.mod +++ b/service/servicecatalogappregistry/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicecatalogappregistry go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicecatalogappregistry/go.sum b/service/servicecatalogappregistry/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/servicecatalogappregistry/go.sum +++ b/service/servicecatalogappregistry/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicecatalogappregistry/go_module_metadata.go b/service/servicecatalogappregistry/go_module_metadata.go index 72c45b4ff02..9ee127291ae 100644 --- a/service/servicecatalogappregistry/go_module_metadata.go +++ b/service/servicecatalogappregistry/go_module_metadata.go @@ -3,4 +3,4 @@ package servicecatalogappregistry // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.3" diff --git a/service/servicecatalogappregistry/options.go b/service/servicecatalogappregistry/options.go index 78f3628f9ee..5c07a398c37 100644 --- a/service/servicecatalogappregistry/options.go +++ b/service/servicecatalogappregistry/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicediscovery/CHANGELOG.md b/service/servicediscovery/CHANGELOG.md index 09cd84784d0..ce2ed975740 100644 --- a/service/servicediscovery/CHANGELOG.md +++ b/service/servicediscovery/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.27.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/servicediscovery/api_client.go b/service/servicediscovery/api_client.go index c4f9bf8f734..dfdb5cf4fa8 100644 --- a/service/servicediscovery/api_client.go +++ b/service/servicediscovery/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/servicediscovery/auth.go b/service/servicediscovery/auth.go index d00ad2bd048..1587f864fdb 100644 --- a/service/servicediscovery/auth.go +++ b/service/servicediscovery/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/servicediscovery/go.mod b/service/servicediscovery/go.mod index 4c193f9dc05..ffb586dda23 100644 --- a/service/servicediscovery/go.mod +++ b/service/servicediscovery/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicediscovery go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicediscovery/go.sum b/service/servicediscovery/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/servicediscovery/go.sum +++ b/service/servicediscovery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicediscovery/go_module_metadata.go b/service/servicediscovery/go_module_metadata.go index 201f1847423..af865367dbc 100644 --- a/service/servicediscovery/go_module_metadata.go +++ b/service/servicediscovery/go_module_metadata.go @@ -3,4 +3,4 @@ package servicediscovery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.2" diff --git a/service/servicediscovery/options.go b/service/servicediscovery/options.go index 65217ef1397..50e5583d874 100644 --- a/service/servicediscovery/options.go +++ b/service/servicediscovery/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/servicequotas/CHANGELOG.md b/service/servicequotas/CHANGELOG.md index 86411659b57..fbe33679d8d 100644 --- a/service/servicequotas/CHANGELOG.md +++ b/service/servicequotas/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/servicequotas/api_client.go b/service/servicequotas/api_client.go index 1e5a8831db9..6f7233f4941 100644 --- a/service/servicequotas/api_client.go +++ b/service/servicequotas/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/servicequotas/auth.go b/service/servicequotas/auth.go index 3f1e020f3d7..68d68716200 100644 --- a/service/servicequotas/auth.go +++ b/service/servicequotas/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/servicequotas/go.mod b/service/servicequotas/go.mod index a7710e4db0e..9a2231fabf3 100644 --- a/service/servicequotas/go.mod +++ b/service/servicequotas/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/servicequotas go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/servicequotas/go.sum b/service/servicequotas/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/servicequotas/go.sum +++ b/service/servicequotas/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/servicequotas/go_module_metadata.go b/service/servicequotas/go_module_metadata.go index 74bfd3624e2..424b2b5a26e 100644 --- a/service/servicequotas/go_module_metadata.go +++ b/service/servicequotas/go_module_metadata.go @@ -3,4 +3,4 @@ package servicequotas // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/servicequotas/options.go b/service/servicequotas/options.go index 85dedc71985..2a9cce0c15e 100644 --- a/service/servicequotas/options.go +++ b/service/servicequotas/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ses/CHANGELOG.md b/service/ses/CHANGELOG.md index ab470f150e0..0faef5c895e 100644 --- a/service/ses/CHANGELOG.md +++ b/service/ses/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ses/api_client.go b/service/ses/api_client.go index e2f97709044..c5decab0b8d 100644 --- a/service/ses/api_client.go +++ b/service/ses/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ses/auth.go b/service/ses/auth.go index 22a58d1cfc6..152129b6379 100644 --- a/service/ses/auth.go +++ b/service/ses/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ses/go.mod b/service/ses/go.mod index 8ccfb284398..fa994538510 100644 --- a/service/ses/go.mod +++ b/service/ses/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ses go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ses/go.sum b/service/ses/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/ses/go.sum +++ b/service/ses/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ses/go_module_metadata.go b/service/ses/go_module_metadata.go index 2a0819fedd4..d8e8be6419c 100644 --- a/service/ses/go_module_metadata.go +++ b/service/ses/go_module_metadata.go @@ -3,4 +3,4 @@ package ses // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/ses/options.go b/service/ses/options.go index a45203ad335..f378e84ad8b 100644 --- a/service/ses/options.go +++ b/service/ses/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sesv2/CHANGELOG.md b/service/sesv2/CHANGELOG.md index 93486f9f7b5..4d1452df0d5 100644 --- a/service/sesv2/CHANGELOG.md +++ b/service/sesv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sesv2/api_client.go b/service/sesv2/api_client.go index 963b9c7145c..7bae737b346 100644 --- a/service/sesv2/api_client.go +++ b/service/sesv2/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sesv2/auth.go b/service/sesv2/auth.go index ebc02356d0f..62ba55a0088 100644 --- a/service/sesv2/auth.go +++ b/service/sesv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sesv2/go.mod b/service/sesv2/go.mod index 8b1dd0a90c3..04b62d26586 100644 --- a/service/sesv2/go.mod +++ b/service/sesv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sesv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sesv2/go.sum b/service/sesv2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sesv2/go.sum +++ b/service/sesv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sesv2/go_module_metadata.go b/service/sesv2/go_module_metadata.go index a154661312f..2f682707c68 100644 --- a/service/sesv2/go_module_metadata.go +++ b/service/sesv2/go_module_metadata.go @@ -3,4 +3,4 @@ package sesv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/sesv2/options.go b/service/sesv2/options.go index 3f0244e0c14..df69133da94 100644 --- a/service/sesv2/options.go +++ b/service/sesv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sfn/CHANGELOG.md b/service/sfn/CHANGELOG.md index 8ee1168cabc..135dd534010 100644 --- a/service/sfn/CHANGELOG.md +++ b/service/sfn/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sfn/api_client.go b/service/sfn/api_client.go index 3731231ddc0..a392f924e0d 100644 --- a/service/sfn/api_client.go +++ b/service/sfn/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sfn/auth.go b/service/sfn/auth.go index 667f1938c15..6821289dabf 100644 --- a/service/sfn/auth.go +++ b/service/sfn/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sfn/go.mod b/service/sfn/go.mod index 5c031d93e54..2f55c36141a 100644 --- a/service/sfn/go.mod +++ b/service/sfn/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sfn go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sfn/go.sum b/service/sfn/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sfn/go.sum +++ b/service/sfn/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sfn/go_module_metadata.go b/service/sfn/go_module_metadata.go index 9d26162710c..f7f4130aee1 100644 --- a/service/sfn/go_module_metadata.go +++ b/service/sfn/go_module_metadata.go @@ -3,4 +3,4 @@ package sfn // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/sfn/options.go b/service/sfn/options.go index 950a484f09e..544cc7f2038 100644 --- a/service/sfn/options.go +++ b/service/sfn/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/shield/CHANGELOG.md b/service/shield/CHANGELOG.md index 823ac65c9ee..decd8532541 100644 --- a/service/shield/CHANGELOG.md +++ b/service/shield/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/shield/api_client.go b/service/shield/api_client.go index a6bb8cc2cfb..7c45432fe3b 100644 --- a/service/shield/api_client.go +++ b/service/shield/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/shield/auth.go b/service/shield/auth.go index 8aacc2bb4c3..de545b1eba4 100644 --- a/service/shield/auth.go +++ b/service/shield/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/shield/go.mod b/service/shield/go.mod index 25c7135bc03..cfc9767b4d5 100644 --- a/service/shield/go.mod +++ b/service/shield/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/shield go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/shield/go.sum b/service/shield/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/shield/go.sum +++ b/service/shield/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/shield/go_module_metadata.go b/service/shield/go_module_metadata.go index f4d53b39fca..1ba89f6f7d4 100644 --- a/service/shield/go_module_metadata.go +++ b/service/shield/go_module_metadata.go @@ -3,4 +3,4 @@ package shield // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/shield/options.go b/service/shield/options.go index 4119b3f1c8f..dd72f86e676 100644 --- a/service/shield/options.go +++ b/service/shield/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/signer/CHANGELOG.md b/service/signer/CHANGELOG.md index 8f33d3983cf..3282f24de7a 100644 --- a/service/signer/CHANGELOG.md +++ b/service/signer/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.19.3 (2023-12-04) + +* No change notes available for this release. + +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/signer/api_client.go b/service/signer/api_client.go index b18e00dec3f..2f8654f30dc 100644 --- a/service/signer/api_client.go +++ b/service/signer/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/signer/auth.go b/service/signer/auth.go index 03c43d1383b..2363e6f2b61 100644 --- a/service/signer/auth.go +++ b/service/signer/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/signer/go.mod b/service/signer/go.mod index 7612811e1dd..08491854d14 100644 --- a/service/signer/go.mod +++ b/service/signer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/signer go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/signer/go.sum b/service/signer/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/signer/go.sum +++ b/service/signer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/signer/go_module_metadata.go b/service/signer/go_module_metadata.go index e8acda729ac..b93eead7078 100644 --- a/service/signer/go_module_metadata.go +++ b/service/signer/go_module_metadata.go @@ -3,4 +3,4 @@ package signer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.3" diff --git a/service/signer/internal/endpoints/endpoints.go b/service/signer/internal/endpoints/endpoints.go index c92f010dcb3..2dfe51e71f1 100644 --- a/service/signer/internal/endpoints/endpoints.go +++ b/service/signer/internal/endpoints/endpoints.go @@ -217,6 +217,38 @@ var defaultPartitions = endpoints.Partitions{ }, Deprecated: aws.TrueTernary, }, + endpoints.EndpointKey{ + Region: "fips-verification-us-east-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer-fips.us-east-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-east-1", + }, + }, + endpoints.EndpointKey{ + Region: "fips-verification-us-east-2", + }: endpoints.Endpoint{ + Hostname: "verification.signer-fips.us-east-2.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-east-2", + }, + }, + endpoints.EndpointKey{ + Region: "fips-verification-us-west-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer-fips.us-west-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-west-1", + }, + }, + endpoints.EndpointKey{ + Region: "fips-verification-us-west-2", + }: endpoints.Endpoint{ + Hostname: "verification.signer-fips.us-west-2.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-west-2", + }, + }, endpoints.EndpointKey{ Region: "me-south-1", }: endpoints.Endpoint{}, @@ -259,6 +291,166 @@ var defaultPartitions = endpoints.Partitions{ }: { Hostname: "signer-fips.us-west-2.amazonaws.com", }, + endpoints.EndpointKey{ + Region: "verification-af-south-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.af-south-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "af-south-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-ap-east-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.ap-east-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-east-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-ap-northeast-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.ap-northeast-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-northeast-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-ap-northeast-2", + }: endpoints.Endpoint{ + Hostname: "verification.signer.ap-northeast-2.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-northeast-2", + }, + }, + endpoints.EndpointKey{ + Region: "verification-ap-south-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.ap-south-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-south-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-ap-southeast-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.ap-southeast-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-southeast-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-ap-southeast-2", + }: endpoints.Endpoint{ + Hostname: "verification.signer.ap-southeast-2.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-southeast-2", + }, + }, + endpoints.EndpointKey{ + Region: "verification-ca-central-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.ca-central-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "ca-central-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-eu-central-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.eu-central-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "eu-central-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-eu-north-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.eu-north-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "eu-north-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-eu-south-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.eu-south-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "eu-south-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-eu-west-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.eu-west-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "eu-west-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-eu-west-2", + }: endpoints.Endpoint{ + Hostname: "verification.signer.eu-west-2.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "eu-west-2", + }, + }, + endpoints.EndpointKey{ + Region: "verification-eu-west-3", + }: endpoints.Endpoint{ + Hostname: "verification.signer.eu-west-3.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "eu-west-3", + }, + }, + endpoints.EndpointKey{ + Region: "verification-me-south-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.me-south-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "me-south-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-sa-east-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.sa-east-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "sa-east-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-us-east-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.us-east-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-east-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-us-east-2", + }: endpoints.Endpoint{ + Hostname: "verification.signer.us-east-2.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-east-2", + }, + }, + endpoints.EndpointKey{ + Region: "verification-us-west-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.us-west-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-west-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-us-west-2", + }: endpoints.Endpoint{ + Hostname: "verification.signer.us-west-2.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-west-2", + }, + }, }, }, { @@ -302,6 +494,22 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "cn-northwest-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "verification-cn-north-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.cn-north-1.amazonaws.com.cn", + CredentialScope: endpoints.CredentialScope{ + Region: "cn-north-1", + }, + }, + endpoints.EndpointKey{ + Region: "verification-cn-northwest-1", + }: endpoints.Endpoint{ + Hostname: "verification.signer.cn-northwest-1.amazonaws.com.cn", + CredentialScope: endpoints.CredentialScope{ + Region: "cn-northwest-1", + }, + }, }, }, { diff --git a/service/signer/options.go b/service/signer/options.go index 7ae3d1bfd58..c31a4ded2fd 100644 --- a/service/signer/options.go +++ b/service/signer/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/simspaceweaver/CHANGELOG.md b/service/simspaceweaver/CHANGELOG.md index 4dad50bdf79..c2ef7333a30 100644 --- a/service/simspaceweaver/CHANGELOG.md +++ b/service/simspaceweaver/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.8.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.8.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.8.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/simspaceweaver/api_client.go b/service/simspaceweaver/api_client.go index f07c8f8b380..d9f1ef9f4ff 100644 --- a/service/simspaceweaver/api_client.go +++ b/service/simspaceweaver/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/simspaceweaver/auth.go b/service/simspaceweaver/auth.go index cc81059b39a..dea54bdc81c 100644 --- a/service/simspaceweaver/auth.go +++ b/service/simspaceweaver/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/simspaceweaver/go.mod b/service/simspaceweaver/go.mod index 4446082834b..2adb213e7a4 100644 --- a/service/simspaceweaver/go.mod +++ b/service/simspaceweaver/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/simspaceweaver go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/simspaceweaver/go.sum b/service/simspaceweaver/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/simspaceweaver/go.sum +++ b/service/simspaceweaver/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/simspaceweaver/go_module_metadata.go b/service/simspaceweaver/go_module_metadata.go index 2a254d19d5a..57bc335c2f3 100644 --- a/service/simspaceweaver/go_module_metadata.go +++ b/service/simspaceweaver/go_module_metadata.go @@ -3,4 +3,4 @@ package simspaceweaver // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.8.0" +const goModuleVersion = "1.8.2" diff --git a/service/simspaceweaver/options.go b/service/simspaceweaver/options.go index 93b0768b12b..b6fd2295b29 100644 --- a/service/simspaceweaver/options.go +++ b/service/simspaceweaver/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sms/CHANGELOG.md b/service/sms/CHANGELOG.md index 970fd4454ce..86af74852cf 100644 --- a/service/sms/CHANGELOG.md +++ b/service/sms/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sms/api_client.go b/service/sms/api_client.go index 0170af96b90..07eb695d156 100644 --- a/service/sms/api_client.go +++ b/service/sms/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sms/auth.go b/service/sms/auth.go index a061a333c0e..322e66f9c60 100644 --- a/service/sms/auth.go +++ b/service/sms/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sms/go.mod b/service/sms/go.mod index bf5bec11a0a..88f180669ad 100644 --- a/service/sms/go.mod +++ b/service/sms/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sms go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sms/go.sum b/service/sms/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sms/go.sum +++ b/service/sms/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sms/go_module_metadata.go b/service/sms/go_module_metadata.go index 7bd73d03caf..e40c86a9f75 100644 --- a/service/sms/go_module_metadata.go +++ b/service/sms/go_module_metadata.go @@ -3,4 +3,4 @@ package sms // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/sms/options.go b/service/sms/options.go index a810ab6a4e9..39d602566b1 100644 --- a/service/sms/options.go +++ b/service/sms/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/snowball/CHANGELOG.md b/service/snowball/CHANGELOG.md index 20ce42aea26..cf2a3ce80f1 100644 --- a/service/snowball/CHANGELOG.md +++ b/service/snowball/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/snowball/api_client.go b/service/snowball/api_client.go index a73ae976acc..a1fbae44eb2 100644 --- a/service/snowball/api_client.go +++ b/service/snowball/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/snowball/auth.go b/service/snowball/auth.go index 32450bd5fc9..3b838d9f7b4 100644 --- a/service/snowball/auth.go +++ b/service/snowball/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/snowball/go.mod b/service/snowball/go.mod index 89a79fa1bba..4e4116141d4 100644 --- a/service/snowball/go.mod +++ b/service/snowball/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/snowball go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/snowball/go.sum b/service/snowball/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/snowball/go.sum +++ b/service/snowball/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowball/go_module_metadata.go b/service/snowball/go_module_metadata.go index 61e1677df2c..eab175499e7 100644 --- a/service/snowball/go_module_metadata.go +++ b/service/snowball/go_module_metadata.go @@ -3,4 +3,4 @@ package snowball // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/snowball/options.go b/service/snowball/options.go index e8fd8bb3527..1dd6b373300 100644 --- a/service/snowball/options.go +++ b/service/snowball/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/snowdevicemanagement/CHANGELOG.md b/service/snowdevicemanagement/CHANGELOG.md index 3fef0e073e5..9f021485c02 100644 --- a/service/snowdevicemanagement/CHANGELOG.md +++ b/service/snowdevicemanagement/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.14.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.14.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.14.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/snowdevicemanagement/api_client.go b/service/snowdevicemanagement/api_client.go index aa066ea5c8c..30ccd429170 100644 --- a/service/snowdevicemanagement/api_client.go +++ b/service/snowdevicemanagement/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/snowdevicemanagement/auth.go b/service/snowdevicemanagement/auth.go index cd8afa30d47..448eee65a5c 100644 --- a/service/snowdevicemanagement/auth.go +++ b/service/snowdevicemanagement/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/snowdevicemanagement/go.mod b/service/snowdevicemanagement/go.mod index 48aa4b550d9..064dfdbf1db 100644 --- a/service/snowdevicemanagement/go.mod +++ b/service/snowdevicemanagement/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/snowdevicemanagement go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/snowdevicemanagement/go.sum b/service/snowdevicemanagement/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/snowdevicemanagement/go.sum +++ b/service/snowdevicemanagement/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/snowdevicemanagement/go_module_metadata.go b/service/snowdevicemanagement/go_module_metadata.go index 37310ee29f9..5a7e4f3fdd4 100644 --- a/service/snowdevicemanagement/go_module_metadata.go +++ b/service/snowdevicemanagement/go_module_metadata.go @@ -3,4 +3,4 @@ package snowdevicemanagement // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.0" +const goModuleVersion = "1.14.2" diff --git a/service/snowdevicemanagement/options.go b/service/snowdevicemanagement/options.go index 5a6d79eb58f..e52f4d89efb 100644 --- a/service/snowdevicemanagement/options.go +++ b/service/snowdevicemanagement/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sns/CHANGELOG.md b/service/sns/CHANGELOG.md index 3c2403d2524..a917ee41ad9 100644 --- a/service/sns/CHANGELOG.md +++ b/service/sns/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sns/api_client.go b/service/sns/api_client.go index 28803ea327d..67e0f83b4ab 100644 --- a/service/sns/api_client.go +++ b/service/sns/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sns/auth.go b/service/sns/auth.go index 0ddddf7d176..c168116a39f 100644 --- a/service/sns/auth.go +++ b/service/sns/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sns/go.mod b/service/sns/go.mod index 34cd27d1d8b..7121b2a9b6d 100644 --- a/service/sns/go.mod +++ b/service/sns/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sns go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sns/go.sum b/service/sns/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sns/go.sum +++ b/service/sns/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sns/go_module_metadata.go b/service/sns/go_module_metadata.go index ed216938353..fad45e17a30 100644 --- a/service/sns/go_module_metadata.go +++ b/service/sns/go_module_metadata.go @@ -3,4 +3,4 @@ package sns // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/sns/options.go b/service/sns/options.go index 238ceb78bce..460da0ac00b 100644 --- a/service/sns/options.go +++ b/service/sns/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sqs/CHANGELOG.md b/service/sqs/CHANGELOG.md index 58ea58a6ce5..d7eaa766954 100644 --- a/service/sqs/CHANGELOG.md +++ b/service/sqs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.29.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.29.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.29.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sqs/api_client.go b/service/sqs/api_client.go index adbf7129ac6..257d7bd84b0 100644 --- a/service/sqs/api_client.go +++ b/service/sqs/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sqs/auth.go b/service/sqs/auth.go index f34ff6ca850..189ecd50400 100644 --- a/service/sqs/auth.go +++ b/service/sqs/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sqs/go.mod b/service/sqs/go.mod index 4b2a3c8f2d2..7353a9a71c5 100644 --- a/service/sqs/go.mod +++ b/service/sqs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sqs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sqs/go.sum b/service/sqs/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sqs/go.sum +++ b/service/sqs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sqs/go_module_metadata.go b/service/sqs/go_module_metadata.go index b9bdf920ae8..9fbd515a55d 100644 --- a/service/sqs/go_module_metadata.go +++ b/service/sqs/go_module_metadata.go @@ -3,4 +3,4 @@ package sqs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.29.0" +const goModuleVersion = "1.29.2" diff --git a/service/sqs/options.go b/service/sqs/options.go index 9db2cb7eed4..a540b03551a 100644 --- a/service/sqs/options.go +++ b/service/sqs/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssm/CHANGELOG.md b/service/ssm/CHANGELOG.md index 7ce004e080b..a831249b5e1 100644 --- a/service/ssm/CHANGELOG.md +++ b/service/ssm/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.44.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.44.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.44.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ssm/api_client.go b/service/ssm/api_client.go index 3e467fc5ca4..45463867b5a 100644 --- a/service/ssm/api_client.go +++ b/service/ssm/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ssm/auth.go b/service/ssm/auth.go index b2ed4032834..c8905bdffdd 100644 --- a/service/ssm/auth.go +++ b/service/ssm/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ssm/go.mod b/service/ssm/go.mod index 0a42fb37ffa..9824fb4f47c 100644 --- a/service/ssm/go.mod +++ b/service/ssm/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssm go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssm/go.sum b/service/ssm/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/ssm/go.sum +++ b/service/ssm/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssm/go_module_metadata.go b/service/ssm/go_module_metadata.go index afb97607227..bd7c9b762db 100644 --- a/service/ssm/go_module_metadata.go +++ b/service/ssm/go_module_metadata.go @@ -3,4 +3,4 @@ package ssm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.44.0" +const goModuleVersion = "1.44.2" diff --git a/service/ssm/options.go b/service/ssm/options.go index 0f02a659896..ed72e5ebf34 100644 --- a/service/ssm/options.go +++ b/service/ssm/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssmcontacts/CHANGELOG.md b/service/ssmcontacts/CHANGELOG.md index a0014360ef3..8f06df65f70 100644 --- a/service/ssmcontacts/CHANGELOG.md +++ b/service/ssmcontacts/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ssmcontacts/api_client.go b/service/ssmcontacts/api_client.go index b29cfeee0fb..b6c2dbc6af8 100644 --- a/service/ssmcontacts/api_client.go +++ b/service/ssmcontacts/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ssmcontacts/auth.go b/service/ssmcontacts/auth.go index 72a94b2fa2e..b99311d8c3c 100644 --- a/service/ssmcontacts/auth.go +++ b/service/ssmcontacts/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ssmcontacts/go.mod b/service/ssmcontacts/go.mod index 3877fb141bc..af9d148b8c9 100644 --- a/service/ssmcontacts/go.mod +++ b/service/ssmcontacts/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmcontacts go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssmcontacts/go.sum b/service/ssmcontacts/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ssmcontacts/go.sum +++ b/service/ssmcontacts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssmcontacts/go_module_metadata.go b/service/ssmcontacts/go_module_metadata.go index 990877476a7..51161e9104e 100644 --- a/service/ssmcontacts/go_module_metadata.go +++ b/service/ssmcontacts/go_module_metadata.go @@ -3,4 +3,4 @@ package ssmcontacts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/ssmcontacts/options.go b/service/ssmcontacts/options.go index 6baf60fcd6f..d70ea4b6771 100644 --- a/service/ssmcontacts/options.go +++ b/service/ssmcontacts/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssmincidents/CHANGELOG.md b/service/ssmincidents/CHANGELOG.md index d4ae332f69a..ab64b6a2ff5 100644 --- a/service/ssmincidents/CHANGELOG.md +++ b/service/ssmincidents/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.27.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ssmincidents/api_client.go b/service/ssmincidents/api_client.go index 1b9cc07c22b..0ecf49656b2 100644 --- a/service/ssmincidents/api_client.go +++ b/service/ssmincidents/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ssmincidents/auth.go b/service/ssmincidents/auth.go index 52f8426a0de..d7a2cfa9240 100644 --- a/service/ssmincidents/auth.go +++ b/service/ssmincidents/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ssmincidents/go.mod b/service/ssmincidents/go.mod index 05f13adaaf6..e348da53f88 100644 --- a/service/ssmincidents/go.mod +++ b/service/ssmincidents/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmincidents go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/ssmincidents/go.sum b/service/ssmincidents/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/ssmincidents/go.sum +++ b/service/ssmincidents/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/ssmincidents/go_module_metadata.go b/service/ssmincidents/go_module_metadata.go index 07a5293a65a..74059c6d94b 100644 --- a/service/ssmincidents/go_module_metadata.go +++ b/service/ssmincidents/go_module_metadata.go @@ -3,4 +3,4 @@ package ssmincidents // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.2" diff --git a/service/ssmincidents/options.go b/service/ssmincidents/options.go index 40c55a3a773..ae219cc0b5f 100644 --- a/service/ssmincidents/options.go +++ b/service/ssmincidents/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssmsap/CHANGELOG.md b/service/ssmsap/CHANGELOG.md index 8af9d627aea..80b69947291 100644 --- a/service/ssmsap/CHANGELOG.md +++ b/service/ssmsap/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.10.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.10.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.10.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ssmsap/api_client.go b/service/ssmsap/api_client.go index 76d2d414f58..69dd9e4acf4 100644 --- a/service/ssmsap/api_client.go +++ b/service/ssmsap/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ssmsap/auth.go b/service/ssmsap/auth.go index e3ec352c22d..dd45a45b41b 100644 --- a/service/ssmsap/auth.go +++ b/service/ssmsap/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ssmsap/go.mod b/service/ssmsap/go.mod index e4f30ba8170..1f15077b8b3 100644 --- a/service/ssmsap/go.mod +++ b/service/ssmsap/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssmsap go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssmsap/go.sum b/service/ssmsap/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ssmsap/go.sum +++ b/service/ssmsap/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssmsap/go_module_metadata.go b/service/ssmsap/go_module_metadata.go index fde9132511c..435b9b5749b 100644 --- a/service/ssmsap/go_module_metadata.go +++ b/service/ssmsap/go_module_metadata.go @@ -3,4 +3,4 @@ package ssmsap // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.10.0" +const goModuleVersion = "1.10.2" diff --git a/service/ssmsap/options.go b/service/ssmsap/options.go index c4693fd1841..5ddb9a0ec11 100644 --- a/service/ssmsap/options.go +++ b/service/ssmsap/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sso/CHANGELOG.md b/service/sso/CHANGELOG.md index bf3b37c8701..73621142dc0 100644 --- a/service/sso/CHANGELOG.md +++ b/service/sso/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sso/api_client.go b/service/sso/api_client.go index 97f1e0bc972..879dc35a11d 100644 --- a/service/sso/api_client.go +++ b/service/sso/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sso/auth.go b/service/sso/auth.go index 292df01cf0d..f7702dd0d3b 100644 --- a/service/sso/auth.go +++ b/service/sso/auth.go @@ -144,7 +144,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -224,7 +224,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -273,7 +273,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sso/go.mod b/service/sso/go.mod index 47d63993d15..d266a3e4e5b 100644 --- a/service/sso/go.mod +++ b/service/sso/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/sso go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sso/go.sum b/service/sso/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sso/go.sum +++ b/service/sso/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sso/go_module_metadata.go b/service/sso/go_module_metadata.go index d778ee811e8..7322f306ea5 100644 --- a/service/sso/go_module_metadata.go +++ b/service/sso/go_module_metadata.go @@ -3,4 +3,4 @@ package sso // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/sso/options.go b/service/sso/options.go index 555f383de32..ddc5c0df369 100644 --- a/service/sso/options.go +++ b/service/sso/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssoadmin/CHANGELOG.md b/service/ssoadmin/CHANGELOG.md index 1e01b5bffde..007af501958 100644 --- a/service/ssoadmin/CHANGELOG.md +++ b/service/ssoadmin/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ssoadmin/api_client.go b/service/ssoadmin/api_client.go index d6b499c68ce..c56d7c28308 100644 --- a/service/ssoadmin/api_client.go +++ b/service/ssoadmin/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ssoadmin/auth.go b/service/ssoadmin/auth.go index d8b20b19c0e..8fb4b5fa983 100644 --- a/service/ssoadmin/auth.go +++ b/service/ssoadmin/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ssoadmin/go.mod b/service/ssoadmin/go.mod index a151d2fe4b1..cdb5a748ede 100644 --- a/service/ssoadmin/go.mod +++ b/service/ssoadmin/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssoadmin go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssoadmin/go.sum b/service/ssoadmin/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ssoadmin/go.sum +++ b/service/ssoadmin/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssoadmin/go_module_metadata.go b/service/ssoadmin/go_module_metadata.go index d03bf4401ec..4363eb37056 100644 --- a/service/ssoadmin/go_module_metadata.go +++ b/service/ssoadmin/go_module_metadata.go @@ -3,4 +3,4 @@ package ssoadmin // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/ssoadmin/options.go b/service/ssoadmin/options.go index 05d5b28ee2f..762cc1d9413 100644 --- a/service/ssoadmin/options.go +++ b/service/ssoadmin/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/ssooidc/CHANGELOG.md b/service/ssooidc/CHANGELOG.md index 61b0f803f68..446559ca96d 100644 --- a/service/ssooidc/CHANGELOG.md +++ b/service/ssooidc/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.21.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.21.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.21.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/ssooidc/api_client.go b/service/ssooidc/api_client.go index b5501b506a9..59239741a91 100644 --- a/service/ssooidc/api_client.go +++ b/service/ssooidc/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/ssooidc/auth.go b/service/ssooidc/auth.go index 2562611a471..fe88367c4c2 100644 --- a/service/ssooidc/auth.go +++ b/service/ssooidc/auth.go @@ -138,7 +138,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -218,7 +218,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -267,7 +267,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/ssooidc/go.mod b/service/ssooidc/go.mod index c2445b148c9..c5aa13fb19c 100644 --- a/service/ssooidc/go.mod +++ b/service/ssooidc/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/ssooidc go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/ssooidc/go.sum b/service/ssooidc/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/ssooidc/go.sum +++ b/service/ssooidc/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/ssooidc/go_module_metadata.go b/service/ssooidc/go_module_metadata.go index 589403156d2..ee0a973640f 100644 --- a/service/ssooidc/go_module_metadata.go +++ b/service/ssooidc/go_module_metadata.go @@ -3,4 +3,4 @@ package ssooidc // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.21.0" +const goModuleVersion = "1.21.2" diff --git a/service/ssooidc/options.go b/service/ssooidc/options.go index c1ba5619bbe..f338f7d6857 100644 --- a/service/ssooidc/options.go +++ b/service/ssooidc/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/storagegateway/CHANGELOG.md b/service/storagegateway/CHANGELOG.md index 35253db7512..5bb73f37ae9 100644 --- a/service/storagegateway/CHANGELOG.md +++ b/service/storagegateway/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.24.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.24.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.24.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/storagegateway/api_client.go b/service/storagegateway/api_client.go index b04c29cd9c9..8b22b138be7 100644 --- a/service/storagegateway/api_client.go +++ b/service/storagegateway/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/storagegateway/auth.go b/service/storagegateway/auth.go index 506cce8959b..10d491bc194 100644 --- a/service/storagegateway/auth.go +++ b/service/storagegateway/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/storagegateway/go.mod b/service/storagegateway/go.mod index 22138e9dd3d..aafd35000a1 100644 --- a/service/storagegateway/go.mod +++ b/service/storagegateway/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/storagegateway go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/storagegateway/go.sum b/service/storagegateway/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/storagegateway/go.sum +++ b/service/storagegateway/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/storagegateway/go_module_metadata.go b/service/storagegateway/go_module_metadata.go index 77cf5ea3cb8..f5e08295fd4 100644 --- a/service/storagegateway/go_module_metadata.go +++ b/service/storagegateway/go_module_metadata.go @@ -3,4 +3,4 @@ package storagegateway // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.24.0" +const goModuleVersion = "1.24.2" diff --git a/service/storagegateway/options.go b/service/storagegateway/options.go index 79a98d6e62d..d2fe242348e 100644 --- a/service/storagegateway/options.go +++ b/service/storagegateway/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/sts/CHANGELOG.md b/service/sts/CHANGELOG.md index 4c41a83fb35..0704f0a5de8 100644 --- a/service/sts/CHANGELOG.md +++ b/service/sts/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.26.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.26.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.26.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/sts/api_client.go b/service/sts/api_client.go index 2568e5ac67f..32c391e56e8 100644 --- a/service/sts/api_client.go +++ b/service/sts/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/sts/auth.go b/service/sts/auth.go index d8b6f535753..07d4dc55c59 100644 --- a/service/sts/auth.go +++ b/service/sts/auth.go @@ -154,7 +154,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -234,7 +234,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -283,7 +283,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/sts/go.mod b/service/sts/go.mod index 3be567ff2ac..6b6180dfb91 100644 --- a/service/sts/go.mod +++ b/service/sts/go.mod @@ -3,12 +3,12 @@ module github.com/aws/aws-sdk-go-v2/service/sts go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.2 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.3 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/sts/go.sum b/service/sts/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/sts/go.sum +++ b/service/sts/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/sts/go_module_metadata.go b/service/sts/go_module_metadata.go index 160ee55b1cc..7fd1c74bd6a 100644 --- a/service/sts/go_module_metadata.go +++ b/service/sts/go_module_metadata.go @@ -3,4 +3,4 @@ package sts // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.26.0" +const goModuleVersion = "1.26.2" diff --git a/service/sts/options.go b/service/sts/options.go index 1736c8355c6..2c7a03701c8 100644 --- a/service/sts/options.go +++ b/service/sts/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/support/CHANGELOG.md b/service/support/CHANGELOG.md index 99f9bafa390..1aaf37d62fa 100644 --- a/service/support/CHANGELOG.md +++ b/service/support/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/support/api_client.go b/service/support/api_client.go index 1ea66e5cca0..f80ddc8110a 100644 --- a/service/support/api_client.go +++ b/service/support/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/support/auth.go b/service/support/auth.go index 6c227314a0d..7c10a39d1f0 100644 --- a/service/support/auth.go +++ b/service/support/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/support/go.mod b/service/support/go.mod index 266126b696a..de2ca90e2dd 100644 --- a/service/support/go.mod +++ b/service/support/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/support go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/support/go.sum b/service/support/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/support/go.sum +++ b/service/support/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/support/go_module_metadata.go b/service/support/go_module_metadata.go index 7329cd69ace..166c66603a9 100644 --- a/service/support/go_module_metadata.go +++ b/service/support/go_module_metadata.go @@ -3,4 +3,4 @@ package support // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/support/options.go b/service/support/options.go index 5e98a69c011..53280949844 100644 --- a/service/support/options.go +++ b/service/support/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/supportapp/CHANGELOG.md b/service/supportapp/CHANGELOG.md index f46dbfacbfc..028ad783afe 100644 --- a/service/supportapp/CHANGELOG.md +++ b/service/supportapp/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.7.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/supportapp/api_client.go b/service/supportapp/api_client.go index 8a53bb5900c..a5a1b9e5b96 100644 --- a/service/supportapp/api_client.go +++ b/service/supportapp/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/supportapp/auth.go b/service/supportapp/auth.go index 350b133eb7c..8120bd2b0f2 100644 --- a/service/supportapp/auth.go +++ b/service/supportapp/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/supportapp/go.mod b/service/supportapp/go.mod index 24857e97122..5a647c37b94 100644 --- a/service/supportapp/go.mod +++ b/service/supportapp/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/supportapp go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/supportapp/go.sum b/service/supportapp/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/supportapp/go.sum +++ b/service/supportapp/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/supportapp/go_module_metadata.go b/service/supportapp/go_module_metadata.go index d6a9c6b22ed..0f2c6e492b9 100644 --- a/service/supportapp/go_module_metadata.go +++ b/service/supportapp/go_module_metadata.go @@ -3,4 +3,4 @@ package supportapp // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.7.2" diff --git a/service/supportapp/options.go b/service/supportapp/options.go index 6c3aed6f979..8f19d86e0e9 100644 --- a/service/supportapp/options.go +++ b/service/supportapp/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/swf/CHANGELOG.md b/service/swf/CHANGELOG.md index 69c18a53095..1dd266fb71b 100644 --- a/service/swf/CHANGELOG.md +++ b/service/swf/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/swf/api_client.go b/service/swf/api_client.go index be8b7198d5e..6675332b1e0 100644 --- a/service/swf/api_client.go +++ b/service/swf/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/swf/auth.go b/service/swf/auth.go index eb060da0f0a..52dc739a43c 100644 --- a/service/swf/auth.go +++ b/service/swf/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/swf/go.mod b/service/swf/go.mod index a5124a7b01b..03a17797a22 100644 --- a/service/swf/go.mod +++ b/service/swf/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/swf go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/swf/go.sum b/service/swf/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/swf/go.sum +++ b/service/swf/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/swf/go_module_metadata.go b/service/swf/go_module_metadata.go index c5f3ecb5371..4eae66e0be8 100644 --- a/service/swf/go_module_metadata.go +++ b/service/swf/go_module_metadata.go @@ -3,4 +3,4 @@ package swf // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/swf/options.go b/service/swf/options.go index fee1c08312e..9140fc3eebe 100644 --- a/service/swf/options.go +++ b/service/swf/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/synthetics/CHANGELOG.md b/service/synthetics/CHANGELOG.md index 2238ef6539d..e613b765604 100644 --- a/service/synthetics/CHANGELOG.md +++ b/service/synthetics/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/synthetics/api_client.go b/service/synthetics/api_client.go index bc501bd13f6..66f89be32ab 100644 --- a/service/synthetics/api_client.go +++ b/service/synthetics/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/synthetics/auth.go b/service/synthetics/auth.go index c1daa6998bf..8a905e5713e 100644 --- a/service/synthetics/auth.go +++ b/service/synthetics/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/synthetics/go.mod b/service/synthetics/go.mod index 47cc15ca166..353e1e8f79b 100644 --- a/service/synthetics/go.mod +++ b/service/synthetics/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/synthetics go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/synthetics/go.sum b/service/synthetics/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/synthetics/go.sum +++ b/service/synthetics/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/synthetics/go_module_metadata.go b/service/synthetics/go_module_metadata.go index 3c80fac2cc9..f8453d07dab 100644 --- a/service/synthetics/go_module_metadata.go +++ b/service/synthetics/go_module_metadata.go @@ -3,4 +3,4 @@ package synthetics // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/synthetics/options.go b/service/synthetics/options.go index 770816d5c88..4acc32e16c2 100644 --- a/service/synthetics/options.go +++ b/service/synthetics/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/textract/CHANGELOG.md b/service/textract/CHANGELOG.md index 6cc12d65bcf..0701d2503a1 100644 --- a/service/textract/CHANGELOG.md +++ b/service/textract/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.28.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.28.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.28.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/textract/api_client.go b/service/textract/api_client.go index ad89cd651fd..823e28ec703 100644 --- a/service/textract/api_client.go +++ b/service/textract/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/textract/auth.go b/service/textract/auth.go index 5f33af1384b..5e83cb38c43 100644 --- a/service/textract/auth.go +++ b/service/textract/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/textract/go.mod b/service/textract/go.mod index 68c4e117ac8..8abd5cc83d2 100644 --- a/service/textract/go.mod +++ b/service/textract/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/textract go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/textract/go.sum b/service/textract/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/textract/go.sum +++ b/service/textract/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/textract/go_module_metadata.go b/service/textract/go_module_metadata.go index 9ab5016c263..0082ef8693c 100644 --- a/service/textract/go_module_metadata.go +++ b/service/textract/go_module_metadata.go @@ -3,4 +3,4 @@ package textract // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.0" +const goModuleVersion = "1.28.2" diff --git a/service/textract/options.go b/service/textract/options.go index 8e050630287..42ef82af690 100644 --- a/service/textract/options.go +++ b/service/textract/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/timestreamquery/CHANGELOG.md b/service/timestreamquery/CHANGELOG.md index d2b82743dc9..399c19eeb15 100644 --- a/service/timestreamquery/CHANGELOG.md +++ b/service/timestreamquery/CHANGELOG.md @@ -1,3 +1,18 @@ +# v1.20.3 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.2 (2023-11-30.2) + +* **Bug Fix**: Respect caller region overrides in endpoint discovery. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/timestreamquery/api_client.go b/service/timestreamquery/api_client.go index 1982b9511b2..418c7191df4 100644 --- a/service/timestreamquery/api_client.go +++ b/service/timestreamquery/api_client.go @@ -154,7 +154,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -163,7 +163,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } @@ -476,7 +476,7 @@ func resolveEnableEndpointDiscovery(o *Options) { o.EndpointDiscovery.EnableEndpointDiscovery = aws.EndpointDiscoveryAuto } -func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input *DescribeEndpointsInput, key string, opt internalEndpointDiscovery.DiscoverEndpointOptions) (internalEndpointDiscovery.Endpoint, error) { +func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input *DescribeEndpointsInput, region, key string, opt internalEndpointDiscovery.DiscoverEndpointOptions) (internalEndpointDiscovery.Endpoint, error) { // assert endpoint resolver interface is of expected type. endpointResolver, ok := opt.EndpointResolverUsedForDiscovery.(EndpointResolver) if opt.EndpointResolverUsedForDiscovery != nil && !ok { @@ -485,6 +485,8 @@ func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input * } output, err := c.DescribeEndpoints(ctx, input, func(o *Options) { + o.Region = region + o.EndpointOptions.DisableHTTPS = opt.DisableHTTPS o.Logger = opt.Logger if endpointResolver != nil { diff --git a/service/timestreamquery/api_op_CancelQuery.go b/service/timestreamquery/api_op_CancelQuery.go index 98e46a3a975..6e99abe40e7 100644 --- a/service/timestreamquery/api_op_CancelQuery.go +++ b/service/timestreamquery/api_op_CancelQuery.go @@ -150,10 +150,11 @@ func addOpCancelQueryDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpCancelQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCancelQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCancelQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CancelQueryInput) if !ok { @@ -162,6 +163,7 @@ func (c *Client) fetchOpCancelQueryDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -176,7 +178,7 @@ func (c *Client) fetchOpCancelQueryDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_CreateScheduledQuery.go b/service/timestreamquery/api_op_CreateScheduledQuery.go index fd40eff1a7d..befa051e119 100644 --- a/service/timestreamquery/api_op_CreateScheduledQuery.go +++ b/service/timestreamquery/api_op_CreateScheduledQuery.go @@ -214,10 +214,11 @@ func addOpCreateScheduledQueryDiscoverEndpointMiddleware(stack *middleware.Stack DiscoverOperation: c.fetchOpCreateScheduledQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCreateScheduledQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCreateScheduledQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CreateScheduledQueryInput) if !ok { @@ -226,6 +227,7 @@ func (c *Client) fetchOpCreateScheduledQueryDiscoverEndpoint(ctx context.Context _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -240,7 +242,7 @@ func (c *Client) fetchOpCreateScheduledQueryDiscoverEndpoint(ctx context.Context fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_DeleteScheduledQuery.go b/service/timestreamquery/api_op_DeleteScheduledQuery.go index ae720bd477e..f2a93f948f2 100644 --- a/service/timestreamquery/api_op_DeleteScheduledQuery.go +++ b/service/timestreamquery/api_op_DeleteScheduledQuery.go @@ -139,10 +139,11 @@ func addOpDeleteScheduledQueryDiscoverEndpointMiddleware(stack *middleware.Stack DiscoverOperation: c.fetchOpDeleteScheduledQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDeleteScheduledQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDeleteScheduledQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DeleteScheduledQueryInput) if !ok { @@ -151,6 +152,7 @@ func (c *Client) fetchOpDeleteScheduledQueryDiscoverEndpoint(ctx context.Context _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -165,7 +167,7 @@ func (c *Client) fetchOpDeleteScheduledQueryDiscoverEndpoint(ctx context.Context fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_DescribeScheduledQuery.go b/service/timestreamquery/api_op_DescribeScheduledQuery.go index 57b1d59ae06..ac4650a5737 100644 --- a/service/timestreamquery/api_op_DescribeScheduledQuery.go +++ b/service/timestreamquery/api_op_DescribeScheduledQuery.go @@ -146,10 +146,11 @@ func addOpDescribeScheduledQueryDiscoverEndpointMiddleware(stack *middleware.Sta DiscoverOperation: c.fetchOpDescribeScheduledQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeScheduledQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeScheduledQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeScheduledQueryInput) if !ok { @@ -158,6 +159,7 @@ func (c *Client) fetchOpDescribeScheduledQueryDiscoverEndpoint(ctx context.Conte _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -172,7 +174,7 @@ func (c *Client) fetchOpDescribeScheduledQueryDiscoverEndpoint(ctx context.Conte fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_ExecuteScheduledQuery.go b/service/timestreamquery/api_op_ExecuteScheduledQuery.go index 44e15465ace..4668a545c27 100644 --- a/service/timestreamquery/api_op_ExecuteScheduledQuery.go +++ b/service/timestreamquery/api_op_ExecuteScheduledQuery.go @@ -151,10 +151,11 @@ func addOpExecuteScheduledQueryDiscoverEndpointMiddleware(stack *middleware.Stac DiscoverOperation: c.fetchOpExecuteScheduledQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpExecuteScheduledQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpExecuteScheduledQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ExecuteScheduledQueryInput) if !ok { @@ -163,6 +164,7 @@ func (c *Client) fetchOpExecuteScheduledQueryDiscoverEndpoint(ctx context.Contex _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -177,7 +179,7 @@ func (c *Client) fetchOpExecuteScheduledQueryDiscoverEndpoint(ctx context.Contex fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_ListScheduledQueries.go b/service/timestreamquery/api_op_ListScheduledQueries.go index 198c26c8116..43d981969fa 100644 --- a/service/timestreamquery/api_op_ListScheduledQueries.go +++ b/service/timestreamquery/api_op_ListScheduledQueries.go @@ -152,10 +152,11 @@ func addOpListScheduledQueriesDiscoverEndpointMiddleware(stack *middleware.Stack DiscoverOperation: c.fetchOpListScheduledQueriesDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListScheduledQueriesDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListScheduledQueriesDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListScheduledQueriesInput) if !ok { @@ -164,6 +165,7 @@ func (c *Client) fetchOpListScheduledQueriesDiscoverEndpoint(ctx context.Context _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -178,7 +180,7 @@ func (c *Client) fetchOpListScheduledQueriesDiscoverEndpoint(ctx context.Context fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_ListTagsForResource.go b/service/timestreamquery/api_op_ListTagsForResource.go index d84eec33b4f..29cfc434d41 100644 --- a/service/timestreamquery/api_op_ListTagsForResource.go +++ b/service/timestreamquery/api_op_ListTagsForResource.go @@ -157,10 +157,11 @@ func addOpListTagsForResourceDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpListTagsForResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListTagsForResourceInput) if !ok { @@ -169,6 +170,7 @@ func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -183,7 +185,7 @@ func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_PrepareQuery.go b/service/timestreamquery/api_op_PrepareQuery.go index ba6052d50c7..6d4ced4aefa 100644 --- a/service/timestreamquery/api_op_PrepareQuery.go +++ b/service/timestreamquery/api_op_PrepareQuery.go @@ -165,10 +165,11 @@ func addOpPrepareQueryDiscoverEndpointMiddleware(stack *middleware.Stack, o Opti DiscoverOperation: c.fetchOpPrepareQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpPrepareQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpPrepareQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*PrepareQueryInput) if !ok { @@ -177,6 +178,7 @@ func (c *Client) fetchOpPrepareQueryDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -191,7 +193,7 @@ func (c *Client) fetchOpPrepareQueryDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_Query.go b/service/timestreamquery/api_op_Query.go index 39c4a4e9952..6316c5c95bd 100644 --- a/service/timestreamquery/api_op_Query.go +++ b/service/timestreamquery/api_op_Query.go @@ -234,10 +234,11 @@ func addOpQueryDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c DiscoverOperation: c.fetchOpQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*QueryInput) if !ok { @@ -246,6 +247,7 @@ func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, optFns ...fun _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -260,7 +262,7 @@ func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, optFns ...fun fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_TagResource.go b/service/timestreamquery/api_op_TagResource.go index bf3b17a2b55..1d6a9000b38 100644 --- a/service/timestreamquery/api_op_TagResource.go +++ b/service/timestreamquery/api_op_TagResource.go @@ -148,10 +148,11 @@ func addOpTagResourceDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpTagResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*TagResourceInput) if !ok { @@ -160,6 +161,7 @@ func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -174,7 +176,7 @@ func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_UntagResource.go b/service/timestreamquery/api_op_UntagResource.go index 8e5af2c54ed..b14d0652a87 100644 --- a/service/timestreamquery/api_op_UntagResource.go +++ b/service/timestreamquery/api_op_UntagResource.go @@ -146,10 +146,11 @@ func addOpUntagResourceDiscoverEndpointMiddleware(stack *middleware.Stack, o Opt DiscoverOperation: c.fetchOpUntagResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UntagResourceInput) if !ok { @@ -158,6 +159,7 @@ func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFn _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -172,7 +174,7 @@ func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFn fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/api_op_UpdateScheduledQuery.go b/service/timestreamquery/api_op_UpdateScheduledQuery.go index c56ac180026..cf681bfb569 100644 --- a/service/timestreamquery/api_op_UpdateScheduledQuery.go +++ b/service/timestreamquery/api_op_UpdateScheduledQuery.go @@ -145,10 +145,11 @@ func addOpUpdateScheduledQueryDiscoverEndpointMiddleware(stack *middleware.Stack DiscoverOperation: c.fetchOpUpdateScheduledQueryDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateScheduledQueryDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateScheduledQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateScheduledQueryInput) if !ok { @@ -157,6 +158,7 @@ func (c *Client) fetchOpUpdateScheduledQueryDiscoverEndpoint(ctx context.Context _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Query.%v", identifierMap) @@ -171,7 +173,7 @@ func (c *Client) fetchOpUpdateScheduledQueryDiscoverEndpoint(ctx context.Context fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamquery/auth.go b/service/timestreamquery/auth.go index f136a04e880..f31b7ead6d2 100644 --- a/service/timestreamquery/auth.go +++ b/service/timestreamquery/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/timestreamquery/go.mod b/service/timestreamquery/go.mod index 9447bb42ed8..3e3f63fbe64 100644 --- a/service/timestreamquery/go.mod +++ b/service/timestreamquery/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamquery go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/timestreamquery/go.sum b/service/timestreamquery/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/timestreamquery/go.sum +++ b/service/timestreamquery/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamquery/go_module_metadata.go b/service/timestreamquery/go_module_metadata.go index 73b9bb08fae..c408e2de24d 100644 --- a/service/timestreamquery/go_module_metadata.go +++ b/service/timestreamquery/go_module_metadata.go @@ -3,4 +3,4 @@ package timestreamquery // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.3" diff --git a/service/timestreamquery/options.go b/service/timestreamquery/options.go index 552163e6d1a..95c40b0dbb4 100644 --- a/service/timestreamquery/options.go +++ b/service/timestreamquery/options.go @@ -220,7 +220,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/timestreamwrite/CHANGELOG.md b/service/timestreamwrite/CHANGELOG.md index 07944afe49f..1d408c48f55 100644 --- a/service/timestreamwrite/CHANGELOG.md +++ b/service/timestreamwrite/CHANGELOG.md @@ -1,3 +1,18 @@ +# v1.23.3 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.2 (2023-11-30.2) + +* **Bug Fix**: Respect caller region overrides in endpoint discovery. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/timestreamwrite/api_client.go b/service/timestreamwrite/api_client.go index 105451655ad..3a00bde6d19 100644 --- a/service/timestreamwrite/api_client.go +++ b/service/timestreamwrite/api_client.go @@ -154,7 +154,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -163,7 +163,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } @@ -476,7 +476,7 @@ func resolveEnableEndpointDiscovery(o *Options) { o.EndpointDiscovery.EnableEndpointDiscovery = aws.EndpointDiscoveryAuto } -func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input *DescribeEndpointsInput, key string, opt internalEndpointDiscovery.DiscoverEndpointOptions) (internalEndpointDiscovery.Endpoint, error) { +func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input *DescribeEndpointsInput, region, key string, opt internalEndpointDiscovery.DiscoverEndpointOptions) (internalEndpointDiscovery.Endpoint, error) { // assert endpoint resolver interface is of expected type. endpointResolver, ok := opt.EndpointResolverUsedForDiscovery.(EndpointResolver) if opt.EndpointResolverUsedForDiscovery != nil && !ok { @@ -485,6 +485,8 @@ func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input * } output, err := c.DescribeEndpoints(ctx, input, func(o *Options) { + o.Region = region + o.EndpointOptions.DisableHTTPS = opt.DisableHTTPS o.Logger = opt.Logger if endpointResolver != nil { diff --git a/service/timestreamwrite/api_op_CreateBatchLoadTask.go b/service/timestreamwrite/api_op_CreateBatchLoadTask.go index 2313de53004..9564bdf7dab 100644 --- a/service/timestreamwrite/api_op_CreateBatchLoadTask.go +++ b/service/timestreamwrite/api_op_CreateBatchLoadTask.go @@ -183,10 +183,11 @@ func addOpCreateBatchLoadTaskDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpCreateBatchLoadTaskDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCreateBatchLoadTaskDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCreateBatchLoadTaskDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CreateBatchLoadTaskInput) if !ok { @@ -195,6 +196,7 @@ func (c *Client) fetchOpCreateBatchLoadTaskDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -209,7 +211,7 @@ func (c *Client) fetchOpCreateBatchLoadTaskDiscoverEndpoint(ctx context.Context, fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_CreateDatabase.go b/service/timestreamwrite/api_op_CreateDatabase.go index eb555ee40d0..3e2f123657e 100644 --- a/service/timestreamwrite/api_op_CreateDatabase.go +++ b/service/timestreamwrite/api_op_CreateDatabase.go @@ -158,10 +158,11 @@ func addOpCreateDatabaseDiscoverEndpointMiddleware(stack *middleware.Stack, o Op DiscoverOperation: c.fetchOpCreateDatabaseDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCreateDatabaseDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCreateDatabaseDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CreateDatabaseInput) if !ok { @@ -170,6 +171,7 @@ func (c *Client) fetchOpCreateDatabaseDiscoverEndpoint(ctx context.Context, optF _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -184,7 +186,7 @@ func (c *Client) fetchOpCreateDatabaseDiscoverEndpoint(ctx context.Context, optF fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_CreateTable.go b/service/timestreamwrite/api_op_CreateTable.go index 9fa486b95f5..880a333d5d8 100644 --- a/service/timestreamwrite/api_op_CreateTable.go +++ b/service/timestreamwrite/api_op_CreateTable.go @@ -169,10 +169,11 @@ func addOpCreateTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpCreateTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*CreateTableInput) if !ok { @@ -181,6 +182,7 @@ func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -195,7 +197,7 @@ func (c *Client) fetchOpCreateTableDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_DeleteDatabase.go b/service/timestreamwrite/api_op_DeleteDatabase.go index 0bcf70799cd..ab924b7c33e 100644 --- a/service/timestreamwrite/api_op_DeleteDatabase.go +++ b/service/timestreamwrite/api_op_DeleteDatabase.go @@ -145,10 +145,11 @@ func addOpDeleteDatabaseDiscoverEndpointMiddleware(stack *middleware.Stack, o Op DiscoverOperation: c.fetchOpDeleteDatabaseDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDeleteDatabaseDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDeleteDatabaseDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DeleteDatabaseInput) if !ok { @@ -157,6 +158,7 @@ func (c *Client) fetchOpDeleteDatabaseDiscoverEndpoint(ctx context.Context, optF _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -171,7 +173,7 @@ func (c *Client) fetchOpDeleteDatabaseDiscoverEndpoint(ctx context.Context, optF fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_DeleteTable.go b/service/timestreamwrite/api_op_DeleteTable.go index 137d94d59c3..51a02dcd3c9 100644 --- a/service/timestreamwrite/api_op_DeleteTable.go +++ b/service/timestreamwrite/api_op_DeleteTable.go @@ -149,10 +149,11 @@ func addOpDeleteTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpDeleteTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DeleteTableInput) if !ok { @@ -161,6 +162,7 @@ func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -175,7 +177,7 @@ func (c *Client) fetchOpDeleteTableDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_DescribeBatchLoadTask.go b/service/timestreamwrite/api_op_DescribeBatchLoadTask.go index bfc1fca5169..5a7691acbe6 100644 --- a/service/timestreamwrite/api_op_DescribeBatchLoadTask.go +++ b/service/timestreamwrite/api_op_DescribeBatchLoadTask.go @@ -149,10 +149,11 @@ func addOpDescribeBatchLoadTaskDiscoverEndpointMiddleware(stack *middleware.Stac DiscoverOperation: c.fetchOpDescribeBatchLoadTaskDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeBatchLoadTaskDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeBatchLoadTaskDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeBatchLoadTaskInput) if !ok { @@ -161,6 +162,7 @@ func (c *Client) fetchOpDescribeBatchLoadTaskDiscoverEndpoint(ctx context.Contex _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -175,7 +177,7 @@ func (c *Client) fetchOpDescribeBatchLoadTaskDiscoverEndpoint(ctx context.Contex fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_DescribeDatabase.go b/service/timestreamwrite/api_op_DescribeDatabase.go index d1d1356e0fe..e7665f9b478 100644 --- a/service/timestreamwrite/api_op_DescribeDatabase.go +++ b/service/timestreamwrite/api_op_DescribeDatabase.go @@ -148,10 +148,11 @@ func addOpDescribeDatabaseDiscoverEndpointMiddleware(stack *middleware.Stack, o DiscoverOperation: c.fetchOpDescribeDatabaseDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeDatabaseDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeDatabaseDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeDatabaseInput) if !ok { @@ -160,6 +161,7 @@ func (c *Client) fetchOpDescribeDatabaseDiscoverEndpoint(ctx context.Context, op _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -174,7 +176,7 @@ func (c *Client) fetchOpDescribeDatabaseDiscoverEndpoint(ctx context.Context, op fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_DescribeTable.go b/service/timestreamwrite/api_op_DescribeTable.go index 37bc96087d1..ab126404f05 100644 --- a/service/timestreamwrite/api_op_DescribeTable.go +++ b/service/timestreamwrite/api_op_DescribeTable.go @@ -153,10 +153,11 @@ func addOpDescribeTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Opt DiscoverOperation: c.fetchOpDescribeTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*DescribeTableInput) if !ok { @@ -165,6 +166,7 @@ func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, optFn _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -179,7 +181,7 @@ func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, optFn fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_ListBatchLoadTasks.go b/service/timestreamwrite/api_op_ListBatchLoadTasks.go index e9385c48ac5..a704cc0545d 100644 --- a/service/timestreamwrite/api_op_ListBatchLoadTasks.go +++ b/service/timestreamwrite/api_op_ListBatchLoadTasks.go @@ -155,10 +155,11 @@ func addOpListBatchLoadTasksDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpListBatchLoadTasksDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListBatchLoadTasksDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListBatchLoadTasksDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListBatchLoadTasksInput) if !ok { @@ -167,6 +168,7 @@ func (c *Client) fetchOpListBatchLoadTasksDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -181,7 +183,7 @@ func (c *Client) fetchOpListBatchLoadTasksDiscoverEndpoint(ctx context.Context, fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_ListDatabases.go b/service/timestreamwrite/api_op_ListDatabases.go index f056dfc4ce4..8feff9dc804 100644 --- a/service/timestreamwrite/api_op_ListDatabases.go +++ b/service/timestreamwrite/api_op_ListDatabases.go @@ -151,10 +151,11 @@ func addOpListDatabasesDiscoverEndpointMiddleware(stack *middleware.Stack, o Opt DiscoverOperation: c.fetchOpListDatabasesDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListDatabasesDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListDatabasesDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListDatabasesInput) if !ok { @@ -163,6 +164,7 @@ func (c *Client) fetchOpListDatabasesDiscoverEndpoint(ctx context.Context, optFn _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -177,7 +179,7 @@ func (c *Client) fetchOpListDatabasesDiscoverEndpoint(ctx context.Context, optFn fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_ListTables.go b/service/timestreamwrite/api_op_ListTables.go index 2a6846c87af..0095ba670aa 100644 --- a/service/timestreamwrite/api_op_ListTables.go +++ b/service/timestreamwrite/api_op_ListTables.go @@ -155,10 +155,11 @@ func addOpListTablesDiscoverEndpointMiddleware(stack *middleware.Stack, o Option DiscoverOperation: c.fetchOpListTablesDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListTablesInput) if !ok { @@ -167,6 +168,7 @@ func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, optFns . _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -181,7 +183,7 @@ func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, optFns . fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_ListTagsForResource.go b/service/timestreamwrite/api_op_ListTagsForResource.go index 383ea9525a3..0d105849896 100644 --- a/service/timestreamwrite/api_op_ListTagsForResource.go +++ b/service/timestreamwrite/api_op_ListTagsForResource.go @@ -145,10 +145,11 @@ func addOpListTagsForResourceDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpListTagsForResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ListTagsForResourceInput) if !ok { @@ -157,6 +158,7 @@ func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -171,7 +173,7 @@ func (c *Client) fetchOpListTagsForResourceDiscoverEndpoint(ctx context.Context, fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_ResumeBatchLoadTask.go b/service/timestreamwrite/api_op_ResumeBatchLoadTask.go index b35ddf54d9b..0ca83f77cb3 100644 --- a/service/timestreamwrite/api_op_ResumeBatchLoadTask.go +++ b/service/timestreamwrite/api_op_ResumeBatchLoadTask.go @@ -138,10 +138,11 @@ func addOpResumeBatchLoadTaskDiscoverEndpointMiddleware(stack *middleware.Stack, DiscoverOperation: c.fetchOpResumeBatchLoadTaskDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpResumeBatchLoadTaskDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpResumeBatchLoadTaskDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*ResumeBatchLoadTaskInput) if !ok { @@ -150,6 +151,7 @@ func (c *Client) fetchOpResumeBatchLoadTaskDiscoverEndpoint(ctx context.Context, _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -164,7 +166,7 @@ func (c *Client) fetchOpResumeBatchLoadTaskDiscoverEndpoint(ctx context.Context, fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_TagResource.go b/service/timestreamwrite/api_op_TagResource.go index e98bf9d5494..cc7d24c1591 100644 --- a/service/timestreamwrite/api_op_TagResource.go +++ b/service/timestreamwrite/api_op_TagResource.go @@ -148,10 +148,11 @@ func addOpTagResourceDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpTagResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*TagResourceInput) if !ok { @@ -160,6 +161,7 @@ func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -174,7 +176,7 @@ func (c *Client) fetchOpTagResourceDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_UntagResource.go b/service/timestreamwrite/api_op_UntagResource.go index e5196178238..d68ab28b3d9 100644 --- a/service/timestreamwrite/api_op_UntagResource.go +++ b/service/timestreamwrite/api_op_UntagResource.go @@ -146,10 +146,11 @@ func addOpUntagResourceDiscoverEndpointMiddleware(stack *middleware.Stack, o Opt DiscoverOperation: c.fetchOpUntagResourceDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UntagResourceInput) if !ok { @@ -158,6 +159,7 @@ func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFn _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -172,7 +174,7 @@ func (c *Client) fetchOpUntagResourceDiscoverEndpoint(ctx context.Context, optFn fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_UpdateDatabase.go b/service/timestreamwrite/api_op_UpdateDatabase.go index 69fe3db2d7e..4204e58faa9 100644 --- a/service/timestreamwrite/api_op_UpdateDatabase.go +++ b/service/timestreamwrite/api_op_UpdateDatabase.go @@ -163,10 +163,11 @@ func addOpUpdateDatabaseDiscoverEndpointMiddleware(stack *middleware.Stack, o Op DiscoverOperation: c.fetchOpUpdateDatabaseDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateDatabaseDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateDatabaseDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateDatabaseInput) if !ok { @@ -175,6 +176,7 @@ func (c *Client) fetchOpUpdateDatabaseDiscoverEndpoint(ctx context.Context, optF _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -189,7 +191,7 @@ func (c *Client) fetchOpUpdateDatabaseDiscoverEndpoint(ctx context.Context, optF fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_UpdateTable.go b/service/timestreamwrite/api_op_UpdateTable.go index 5b34b5d609a..0da05da0d36 100644 --- a/service/timestreamwrite/api_op_UpdateTable.go +++ b/service/timestreamwrite/api_op_UpdateTable.go @@ -165,10 +165,11 @@ func addOpUpdateTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Optio DiscoverOperation: c.fetchOpUpdateTableDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*UpdateTableInput) if !ok { @@ -177,6 +178,7 @@ func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -191,7 +193,7 @@ func (c *Client) fetchOpUpdateTableDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/api_op_WriteRecords.go b/service/timestreamwrite/api_op_WriteRecords.go index 83617e7e484..b7778a6190c 100644 --- a/service/timestreamwrite/api_op_WriteRecords.go +++ b/service/timestreamwrite/api_op_WriteRecords.go @@ -196,10 +196,11 @@ func addOpWriteRecordsDiscoverEndpointMiddleware(stack *middleware.Stack, o Opti DiscoverOperation: c.fetchOpWriteRecordsDiscoverEndpoint, EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery, EndpointDiscoveryRequired: true, + Region: o.Region, }, "ResolveEndpointV2", middleware.After) } -func (c *Client) fetchOpWriteRecordsDiscoverEndpoint(ctx context.Context, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { +func (c *Client) fetchOpWriteRecordsDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) { input := getOperationInput(ctx) in, ok := input.(*WriteRecordsInput) if !ok { @@ -208,6 +209,7 @@ func (c *Client) fetchOpWriteRecordsDiscoverEndpoint(ctx context.Context, optFns _ = in identifierMap := make(map[string]string, 0) + identifierMap["sdk#Region"] = region key := fmt.Sprintf("Timestream Write.%v", identifierMap) @@ -222,7 +224,7 @@ func (c *Client) fetchOpWriteRecordsDiscoverEndpoint(ctx context.Context, optFns fn(&opt) } - endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, key, opt) + endpoint, err := c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt) if err != nil { return internalEndpointDiscovery.WeightedAddress{}, err } diff --git a/service/timestreamwrite/auth.go b/service/timestreamwrite/auth.go index 2da6d630d94..579ab8108f0 100644 --- a/service/timestreamwrite/auth.go +++ b/service/timestreamwrite/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/timestreamwrite/go.mod b/service/timestreamwrite/go.mod index 00bef6878b3..47fe412bd13 100644 --- a/service/timestreamwrite/go.mod +++ b/service/timestreamwrite/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/timestreamwrite go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.8.9 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/timestreamwrite/go.sum b/service/timestreamwrite/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/timestreamwrite/go.sum +++ b/service/timestreamwrite/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/timestreamwrite/go_module_metadata.go b/service/timestreamwrite/go_module_metadata.go index da1d5261096..076d35caba2 100644 --- a/service/timestreamwrite/go_module_metadata.go +++ b/service/timestreamwrite/go_module_metadata.go @@ -3,4 +3,4 @@ package timestreamwrite // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.3" diff --git a/service/timestreamwrite/options.go b/service/timestreamwrite/options.go index 76d820384d2..33a2025ea3b 100644 --- a/service/timestreamwrite/options.go +++ b/service/timestreamwrite/options.go @@ -220,7 +220,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/tnb/CHANGELOG.md b/service/tnb/CHANGELOG.md index dc393e442d8..7f590993c95 100644 --- a/service/tnb/CHANGELOG.md +++ b/service/tnb/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.6.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.6.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.6.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/tnb/api_client.go b/service/tnb/api_client.go index b3a0f404290..dbcee91bed9 100644 --- a/service/tnb/api_client.go +++ b/service/tnb/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/tnb/auth.go b/service/tnb/auth.go index a3caa95aa60..641c0d69834 100644 --- a/service/tnb/auth.go +++ b/service/tnb/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/tnb/go.mod b/service/tnb/go.mod index a3a35ccde68..ea5b4bdfded 100644 --- a/service/tnb/go.mod +++ b/service/tnb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/tnb go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/tnb/go.sum b/service/tnb/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/tnb/go.sum +++ b/service/tnb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/tnb/go_module_metadata.go b/service/tnb/go_module_metadata.go index 7c5f7f396a6..3b699485dcf 100644 --- a/service/tnb/go_module_metadata.go +++ b/service/tnb/go_module_metadata.go @@ -3,4 +3,4 @@ package tnb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.6.0" +const goModuleVersion = "1.6.2" diff --git a/service/tnb/options.go b/service/tnb/options.go index 35563f93e07..aca79f4d3a1 100644 --- a/service/tnb/options.go +++ b/service/tnb/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/transcribe/CHANGELOG.md b/service/transcribe/CHANGELOG.md index 8c49f905a6d..846c1fecd99 100644 --- a/service/transcribe/CHANGELOG.md +++ b/service/transcribe/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.34.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.34.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.34.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/transcribe/api_client.go b/service/transcribe/api_client.go index 3e04bfdaaac..4c3121649c4 100644 --- a/service/transcribe/api_client.go +++ b/service/transcribe/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/transcribe/auth.go b/service/transcribe/auth.go index 4ff92a8cbd3..5024b138eff 100644 --- a/service/transcribe/auth.go +++ b/service/transcribe/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/transcribe/go.mod b/service/transcribe/go.mod index 30b6711b524..f4e0732383e 100644 --- a/service/transcribe/go.mod +++ b/service/transcribe/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/transcribe go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribe/go.sum b/service/transcribe/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/transcribe/go.sum +++ b/service/transcribe/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribe/go_module_metadata.go b/service/transcribe/go_module_metadata.go index 52de59f9203..278e911b510 100644 --- a/service/transcribe/go_module_metadata.go +++ b/service/transcribe/go_module_metadata.go @@ -3,4 +3,4 @@ package transcribe // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.34.0" +const goModuleVersion = "1.34.2" diff --git a/service/transcribe/options.go b/service/transcribe/options.go index a1c8801f156..d7953fcc4a0 100644 --- a/service/transcribe/options.go +++ b/service/transcribe/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/transcribestreaming/CHANGELOG.md b/service/transcribestreaming/CHANGELOG.md index 6a065b7454b..88c41aa8f8c 100644 --- a/service/transcribestreaming/CHANGELOG.md +++ b/service/transcribestreaming/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.15.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/transcribestreaming/api_client.go b/service/transcribestreaming/api_client.go index e088294d500..a86b97217ab 100644 --- a/service/transcribestreaming/api_client.go +++ b/service/transcribestreaming/api_client.go @@ -142,7 +142,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -151,7 +151,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/transcribestreaming/auth.go b/service/transcribestreaming/auth.go index 191123b93f2..c256b3c1e0e 100644 --- a/service/transcribestreaming/auth.go +++ b/service/transcribestreaming/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/transcribestreaming/go.mod b/service/transcribestreaming/go.mod index bb724207af8..c7b01ea63a2 100644 --- a/service/transcribestreaming/go.mod +++ b/service/transcribestreaming/go.mod @@ -3,11 +3,11 @@ module github.com/aws/aws-sdk-go-v2/service/transcribestreaming go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/transcribestreaming/go.sum b/service/transcribestreaming/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/transcribestreaming/go.sum +++ b/service/transcribestreaming/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/transcribestreaming/go_module_metadata.go b/service/transcribestreaming/go_module_metadata.go index fdc46730c2b..76e83d945f5 100644 --- a/service/transcribestreaming/go_module_metadata.go +++ b/service/transcribestreaming/go_module_metadata.go @@ -3,4 +3,4 @@ package transcribestreaming // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.0" +const goModuleVersion = "1.15.2" diff --git a/service/transcribestreaming/internal/testing/go.mod b/service/transcribestreaming/internal/testing/go.mod index 901709492de..a2ae5e50a21 100644 --- a/service/transcribestreaming/internal/testing/go.mod +++ b/service/transcribestreaming/internal/testing/go.mod @@ -3,18 +3,18 @@ module github.com/aws/aws-sdk-go-v2/service/transcribestreaming/internal/testing go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.2 - github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.2.10 - github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.15.0 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.3 + github.com/aws/aws-sdk-go-v2/service/internal/eventstreamtesting v1.2.12 + github.com/aws/aws-sdk-go-v2/service/transcribestreaming v1.15.2 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) require ( - github.com/aws/aws-sdk-go-v2/credentials v1.16.7 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.16.9 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect ) diff --git a/service/transcribestreaming/internal/testing/go.sum b/service/transcribestreaming/internal/testing/go.sum index cadcc3e243b..e4450a4b44c 100644 --- a/service/transcribestreaming/internal/testing/go.sum +++ b/service/transcribestreaming/internal/testing/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c= diff --git a/service/transcribestreaming/options.go b/service/transcribestreaming/options.go index e9b73a2ea5e..62e70551a7d 100644 --- a/service/transcribestreaming/options.go +++ b/service/transcribestreaming/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/transfer/CHANGELOG.md b/service/transfer/CHANGELOG.md index d175fe5bc60..235a4a55e3e 100644 --- a/service/transfer/CHANGELOG.md +++ b/service/transfer/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.39.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.39.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.39.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/transfer/api_client.go b/service/transfer/api_client.go index ecdff83755c..77281e0948d 100644 --- a/service/transfer/api_client.go +++ b/service/transfer/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/transfer/auth.go b/service/transfer/auth.go index 3eec77b5fda..a5c9d26c463 100644 --- a/service/transfer/auth.go +++ b/service/transfer/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/transfer/go.mod b/service/transfer/go.mod index 6339cd9144a..f78d2a23cf0 100644 --- a/service/transfer/go.mod +++ b/service/transfer/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/transfer go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/service/transfer/go.sum b/service/transfer/go.sum index ed8e1c52cd2..2f43960027a 100644 --- a/service/transfer/go.sum +++ b/service/transfer/go.sum @@ -1,5 +1,5 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= diff --git a/service/transfer/go_module_metadata.go b/service/transfer/go_module_metadata.go index fee06bbe94d..3097e0d07d9 100644 --- a/service/transfer/go_module_metadata.go +++ b/service/transfer/go_module_metadata.go @@ -3,4 +3,4 @@ package transfer // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.39.0" +const goModuleVersion = "1.39.2" diff --git a/service/transfer/options.go b/service/transfer/options.go index ee599a355c2..05aeb6405fa 100644 --- a/service/transfer/options.go +++ b/service/transfer/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/translate/CHANGELOG.md b/service/translate/CHANGELOG.md index c70e6638124..7f41e13f040 100644 --- a/service/translate/CHANGELOG.md +++ b/service/translate/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.22.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.22.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.22.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/translate/api_client.go b/service/translate/api_client.go index 7e4f343cecc..fb1ec414002 100644 --- a/service/translate/api_client.go +++ b/service/translate/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/translate/auth.go b/service/translate/auth.go index d30b51ab60b..ddbd9c0ab02 100644 --- a/service/translate/auth.go +++ b/service/translate/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/translate/go.mod b/service/translate/go.mod index 8a1565b5b42..fa403d6873e 100644 --- a/service/translate/go.mod +++ b/service/translate/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/translate go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/translate/go.sum b/service/translate/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/translate/go.sum +++ b/service/translate/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/translate/go_module_metadata.go b/service/translate/go_module_metadata.go index dd845b5bb6d..c54c46944ae 100644 --- a/service/translate/go_module_metadata.go +++ b/service/translate/go_module_metadata.go @@ -3,4 +3,4 @@ package translate // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.22.0" +const goModuleVersion = "1.22.2" diff --git a/service/translate/options.go b/service/translate/options.go index 538d8f9cc67..b31fa375122 100644 --- a/service/translate/options.go +++ b/service/translate/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/trustedadvisor/CHANGELOG.md b/service/trustedadvisor/CHANGELOG.md index b2814bda329..91659416b55 100644 --- a/service/trustedadvisor/CHANGELOG.md +++ b/service/trustedadvisor/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/trustedadvisor/api_client.go b/service/trustedadvisor/api_client.go index 9766c178f59..d775a57e99f 100644 --- a/service/trustedadvisor/api_client.go +++ b/service/trustedadvisor/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/trustedadvisor/auth.go b/service/trustedadvisor/auth.go index 01d9908c3ba..0ac9bdda9a3 100644 --- a/service/trustedadvisor/auth.go +++ b/service/trustedadvisor/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/trustedadvisor/go.mod b/service/trustedadvisor/go.mod index 4bcc7daab4d..f26be94adfb 100644 --- a/service/trustedadvisor/go.mod +++ b/service/trustedadvisor/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/trustedadvisor go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/trustedadvisor/go.sum b/service/trustedadvisor/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/trustedadvisor/go.sum +++ b/service/trustedadvisor/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/trustedadvisor/go_module_metadata.go b/service/trustedadvisor/go_module_metadata.go index 7d7b55d2562..0bb79847bd1 100644 --- a/service/trustedadvisor/go_module_metadata.go +++ b/service/trustedadvisor/go_module_metadata.go @@ -3,4 +3,4 @@ package trustedadvisor // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/trustedadvisor/options.go b/service/trustedadvisor/options.go index 5044644b248..e4e944e10a2 100644 --- a/service/trustedadvisor/options.go +++ b/service/trustedadvisor/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/verifiedpermissions/CHANGELOG.md b/service/verifiedpermissions/CHANGELOG.md index 0c9333e63d8..f72ce7a8c3d 100644 --- a/service/verifiedpermissions/CHANGELOG.md +++ b/service/verifiedpermissions/CHANGELOG.md @@ -1,3 +1,14 @@ +# v1.8.0 (2023-12-01) + +* **Feature**: Adds description field to PolicyStore API's and namespaces field to GetSchema. +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.7.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/verifiedpermissions/api_client.go b/service/verifiedpermissions/api_client.go index f97243f15fa..028f71fa626 100644 --- a/service/verifiedpermissions/api_client.go +++ b/service/verifiedpermissions/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/verifiedpermissions/api_op_BatchIsAuthorized.go b/service/verifiedpermissions/api_op_BatchIsAuthorized.go index 52ec8a6ed7b..f4f251d9aa9 100644 --- a/service/verifiedpermissions/api_op_BatchIsAuthorized.go +++ b/service/verifiedpermissions/api_op_BatchIsAuthorized.go @@ -24,7 +24,9 @@ import ( // responses, along with the IDs of the policies that produced each decision. The // entities of a BatchIsAuthorized API request can contain up to 100 principals // and up to 100 resources. The requests of a BatchIsAuthorized API request can -// contain up to 30 requests. +// contain up to 30 requests. The BatchIsAuthorized operation doesn't have its own +// IAM permission. To authorize this operation for Amazon Web Services principals, +// include the permission verifiedpermissions:IsAuthorized in their IAM policies. func (c *Client) BatchIsAuthorized(ctx context.Context, params *BatchIsAuthorizedInput, optFns ...func(*Options)) (*BatchIsAuthorizedOutput, error) { if params == nil { params = &BatchIsAuthorizedInput{} diff --git a/service/verifiedpermissions/api_op_CreatePolicyStore.go b/service/verifiedpermissions/api_op_CreatePolicyStore.go index 4437b73ad1a..966f72ed9ee 100644 --- a/service/verifiedpermissions/api_op_CreatePolicyStore.go +++ b/service/verifiedpermissions/api_op_CreatePolicyStore.go @@ -58,6 +58,10 @@ type CreatePolicyStoreInput struct { // different parameters, the retry fails with an IdempotentParameterMismatch error. ClientToken *string + // Descriptive text that you can provide to help with identification of the + // current policy store. + Description *string + noSmithyDocumentSerde } diff --git a/service/verifiedpermissions/api_op_GetPolicyStore.go b/service/verifiedpermissions/api_op_GetPolicyStore.go index 6a9b96c7a81..1dc3c803fdb 100644 --- a/service/verifiedpermissions/api_op_GetPolicyStore.go +++ b/service/verifiedpermissions/api_op_GetPolicyStore.go @@ -66,6 +66,10 @@ type GetPolicyStoreOutput struct { // This member is required. ValidationSettings *types.ValidationSettings + // Descriptive text that you can provide to help with identification of the + // current policy store. + Description *string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/verifiedpermissions/api_op_GetSchema.go b/service/verifiedpermissions/api_op_GetSchema.go index 626b2c79287..bd70f3bbb0b 100644 --- a/service/verifiedpermissions/api_op_GetSchema.go +++ b/service/verifiedpermissions/api_op_GetSchema.go @@ -60,6 +60,9 @@ type GetSchemaOutput struct { // This member is required. Schema *string + // The namespaces of the entities referenced by this schema. + Namespaces []string + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/verifiedpermissions/api_op_UpdatePolicyStore.go b/service/verifiedpermissions/api_op_UpdatePolicyStore.go index 3c69ea1ed78..9ee8ff6fc99 100644 --- a/service/verifiedpermissions/api_op_UpdatePolicyStore.go +++ b/service/verifiedpermissions/api_op_UpdatePolicyStore.go @@ -45,6 +45,10 @@ type UpdatePolicyStoreInput struct { // This member is required. ValidationSettings *types.ValidationSettings + // Descriptive text that you can provide to help with identification of the + // current policy store. + Description *string + noSmithyDocumentSerde } diff --git a/service/verifiedpermissions/auth.go b/service/verifiedpermissions/auth.go index 6f606c33930..9f0ae78eebb 100644 --- a/service/verifiedpermissions/auth.go +++ b/service/verifiedpermissions/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/verifiedpermissions/deserializers.go b/service/verifiedpermissions/deserializers.go index 3af6e8eea2b..7a2e1bde128 100644 --- a/service/verifiedpermissions/deserializers.go +++ b/service/verifiedpermissions/deserializers.go @@ -4661,6 +4661,28 @@ func awsAwsjson10_deserializeDocumentPolicyStoreItem(v **types.PolicyStoreItem, sv.CreatedDate = ptr.Time(t) } + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PolicyStoreDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + + case "lastUpdatedDate": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TimestampFormat to be of type string, got %T instead", value) + } + t, err := smithytime.ParseDateTime(jtv) + if err != nil { + return err + } + sv.LastUpdatedDate = ptr.Time(t) + } + case "policyStoreId": if value != nil { jtv, ok := value.(string) @@ -6240,6 +6262,15 @@ func awsAwsjson10_deserializeOpDocumentGetPolicyStoreOutput(v **GetPolicyStoreOu sv.CreatedDate = ptr.Time(t) } + case "description": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected PolicyStoreDescription to be of type string, got %T instead", value) + } + sv.Description = ptr.String(jtv) + } + case "lastUpdatedDate": if value != nil { jtv, ok := value.(string) @@ -6417,6 +6448,11 @@ func awsAwsjson10_deserializeOpDocumentGetSchemaOutput(v **GetSchemaOutput, valu sv.LastUpdatedDate = ptr.Time(t) } + case "namespaces": + if err := awsAwsjson10_deserializeDocumentNamespaceList(&sv.Namespaces, value); err != nil { + return err + } + case "policyStoreId": if value != nil { jtv, ok := value.(string) diff --git a/service/verifiedpermissions/go.mod b/service/verifiedpermissions/go.mod index ab77686e797..c1564a88f05 100644 --- a/service/verifiedpermissions/go.mod +++ b/service/verifiedpermissions/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/verifiedpermissions go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/verifiedpermissions/go.sum b/service/verifiedpermissions/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/verifiedpermissions/go.sum +++ b/service/verifiedpermissions/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/verifiedpermissions/go_module_metadata.go b/service/verifiedpermissions/go_module_metadata.go index 9de8dc56b56..a544e84989b 100644 --- a/service/verifiedpermissions/go_module_metadata.go +++ b/service/verifiedpermissions/go_module_metadata.go @@ -3,4 +3,4 @@ package verifiedpermissions // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.7.0" +const goModuleVersion = "1.8.0" diff --git a/service/verifiedpermissions/options.go b/service/verifiedpermissions/options.go index 49eab55714c..4d5576ce0aa 100644 --- a/service/verifiedpermissions/options.go +++ b/service/verifiedpermissions/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/verifiedpermissions/serializers.go b/service/verifiedpermissions/serializers.go index 2dd38443a48..779c446ea63 100644 --- a/service/verifiedpermissions/serializers.go +++ b/service/verifiedpermissions/serializers.go @@ -2048,6 +2048,11 @@ func awsAwsjson10_serializeOpDocumentCreatePolicyStoreInput(v *CreatePolicyStore ok.String(*v.ClientToken) } + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + if v.ValidationSettings != nil { ok := object.Key("validationSettings") if err := awsAwsjson10_serializeDocumentValidationSettings(v.ValidationSettings, ok); err != nil { @@ -2493,6 +2498,11 @@ func awsAwsjson10_serializeOpDocumentUpdatePolicyStoreInput(v *UpdatePolicyStore object := value.Object() defer object.Close() + if v.Description != nil { + ok := object.Key("description") + ok.String(*v.Description) + } + if v.PolicyStoreId != nil { ok := object.Key("policyStoreId") ok.String(*v.PolicyStoreId) diff --git a/service/verifiedpermissions/types/types.go b/service/verifiedpermissions/types/types.go index ee59ba4a062..fe5d2e6fa15 100644 --- a/service/verifiedpermissions/types/types.go +++ b/service/verifiedpermissions/types/types.go @@ -675,6 +675,13 @@ type PolicyStoreItem struct { // This member is required. PolicyStoreId *string + // Descriptive text that you can provide to help with identification of the + // current policy store. + Description *string + + // The date and time the policy store was most recently updated. + LastUpdatedDate *time.Time + noSmithyDocumentSerde } diff --git a/service/voiceid/CHANGELOG.md b/service/voiceid/CHANGELOG.md index 4a13f3c9099..df73c4a3bcd 100644 --- a/service/voiceid/CHANGELOG.md +++ b/service/voiceid/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/voiceid/api_client.go b/service/voiceid/api_client.go index 81536eda071..c23c60b8d2f 100644 --- a/service/voiceid/api_client.go +++ b/service/voiceid/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/voiceid/auth.go b/service/voiceid/auth.go index 349d61d9e6c..e9c4bcd8c89 100644 --- a/service/voiceid/auth.go +++ b/service/voiceid/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/voiceid/go.mod b/service/voiceid/go.mod index 0887bd9ba1b..a606a184f73 100644 --- a/service/voiceid/go.mod +++ b/service/voiceid/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/voiceid go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/voiceid/go.sum b/service/voiceid/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/voiceid/go.sum +++ b/service/voiceid/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/voiceid/go_module_metadata.go b/service/voiceid/go_module_metadata.go index a14ac63e0d1..486cc06faa1 100644 --- a/service/voiceid/go_module_metadata.go +++ b/service/voiceid/go_module_metadata.go @@ -3,4 +3,4 @@ package voiceid // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/voiceid/options.go b/service/voiceid/options.go index 72f6cfebdd5..5c5a179a169 100644 --- a/service/voiceid/options.go +++ b/service/voiceid/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/vpclattice/CHANGELOG.md b/service/vpclattice/CHANGELOG.md index 47f1c7876ab..37d8effcbc6 100644 --- a/service/vpclattice/CHANGELOG.md +++ b/service/vpclattice/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.5.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/vpclattice/api_client.go b/service/vpclattice/api_client.go index 5d0a99bbc9b..ebdb5ebb977 100644 --- a/service/vpclattice/api_client.go +++ b/service/vpclattice/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/vpclattice/auth.go b/service/vpclattice/auth.go index dbe6802da08..083121a8be4 100644 --- a/service/vpclattice/auth.go +++ b/service/vpclattice/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/vpclattice/go.mod b/service/vpclattice/go.mod index d4984fe5e63..a9f18c95473 100644 --- a/service/vpclattice/go.mod +++ b/service/vpclattice/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/vpclattice go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/vpclattice/go.sum b/service/vpclattice/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/vpclattice/go.sum +++ b/service/vpclattice/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/vpclattice/go_module_metadata.go b/service/vpclattice/go_module_metadata.go index 3ffe86b1521..08a91f862d6 100644 --- a/service/vpclattice/go_module_metadata.go +++ b/service/vpclattice/go_module_metadata.go @@ -3,4 +3,4 @@ package vpclattice // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.0" +const goModuleVersion = "1.5.2" diff --git a/service/vpclattice/options.go b/service/vpclattice/options.go index 79428617017..1fcdc3b9bb3 100644 --- a/service/vpclattice/options.go +++ b/service/vpclattice/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/waf/CHANGELOG.md b/service/waf/CHANGELOG.md index cc02f6fb885..8dac26e6e85 100644 --- a/service/waf/CHANGELOG.md +++ b/service/waf/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/waf/api_client.go b/service/waf/api_client.go index 773fe532f96..b74b168fdc4 100644 --- a/service/waf/api_client.go +++ b/service/waf/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/waf/auth.go b/service/waf/auth.go index 3cd885c4517..e84dc5690dd 100644 --- a/service/waf/auth.go +++ b/service/waf/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/waf/go.mod b/service/waf/go.mod index feeea5aa073..6e09aad47d0 100644 --- a/service/waf/go.mod +++ b/service/waf/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/waf go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/waf/go.sum b/service/waf/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/waf/go.sum +++ b/service/waf/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/waf/go_module_metadata.go b/service/waf/go_module_metadata.go index 8a4e78faba9..67be45b076e 100644 --- a/service/waf/go_module_metadata.go +++ b/service/waf/go_module_metadata.go @@ -3,4 +3,4 @@ package waf // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/waf/options.go b/service/waf/options.go index 287bb4c3787..05ddf0f615d 100644 --- a/service/waf/options.go +++ b/service/waf/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wafregional/CHANGELOG.md b/service/wafregional/CHANGELOG.md index fb5c2d03d6c..5d497a17f6c 100644 --- a/service/wafregional/CHANGELOG.md +++ b/service/wafregional/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/wafregional/api_client.go b/service/wafregional/api_client.go index d524e9175e5..b3b65b1947c 100644 --- a/service/wafregional/api_client.go +++ b/service/wafregional/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/wafregional/auth.go b/service/wafregional/auth.go index c3e0469ed01..febdb84fdc8 100644 --- a/service/wafregional/auth.go +++ b/service/wafregional/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/wafregional/go.mod b/service/wafregional/go.mod index 0774a3835f5..4c229791471 100644 --- a/service/wafregional/go.mod +++ b/service/wafregional/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wafregional go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wafregional/go.sum b/service/wafregional/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/wafregional/go.sum +++ b/service/wafregional/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafregional/go_module_metadata.go b/service/wafregional/go_module_metadata.go index 2be22ee78b2..f2b0c5cd9d2 100644 --- a/service/wafregional/go_module_metadata.go +++ b/service/wafregional/go_module_metadata.go @@ -3,4 +3,4 @@ package wafregional // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/wafregional/options.go b/service/wafregional/options.go index 2e06b7ac32a..b1d1938c0ca 100644 --- a/service/wafregional/options.go +++ b/service/wafregional/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wafv2/CHANGELOG.md b/service/wafv2/CHANGELOG.md index f585a7c1af9..4937f419900 100644 --- a/service/wafv2/CHANGELOG.md +++ b/service/wafv2/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.43.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.43.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.43.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/wafv2/api_client.go b/service/wafv2/api_client.go index 93ee8b5cd41..b0db49f73da 100644 --- a/service/wafv2/api_client.go +++ b/service/wafv2/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/wafv2/auth.go b/service/wafv2/auth.go index 3dde61dbc6d..f8ccbcc03d7 100644 --- a/service/wafv2/auth.go +++ b/service/wafv2/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/wafv2/go.mod b/service/wafv2/go.mod index a785f7736e4..ad06a9db28e 100644 --- a/service/wafv2/go.mod +++ b/service/wafv2/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wafv2 go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wafv2/go.sum b/service/wafv2/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/wafv2/go.sum +++ b/service/wafv2/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wafv2/go_module_metadata.go b/service/wafv2/go_module_metadata.go index 4f23004f9fe..5d07d1920b0 100644 --- a/service/wafv2/go_module_metadata.go +++ b/service/wafv2/go_module_metadata.go @@ -3,4 +3,4 @@ package wafv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.43.0" +const goModuleVersion = "1.43.2" diff --git a/service/wafv2/options.go b/service/wafv2/options.go index aadd70f906a..90cff51ac47 100644 --- a/service/wafv2/options.go +++ b/service/wafv2/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wellarchitected/CHANGELOG.md b/service/wellarchitected/CHANGELOG.md index 1b550aa643c..eddd5a21ed2 100644 --- a/service/wellarchitected/CHANGELOG.md +++ b/service/wellarchitected/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.27.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.27.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.27.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/wellarchitected/api_client.go b/service/wellarchitected/api_client.go index a080474024b..cacfe4dfe67 100644 --- a/service/wellarchitected/api_client.go +++ b/service/wellarchitected/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/wellarchitected/auth.go b/service/wellarchitected/auth.go index 00424e25402..16bbd5339a6 100644 --- a/service/wellarchitected/auth.go +++ b/service/wellarchitected/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/wellarchitected/go.mod b/service/wellarchitected/go.mod index ea108e4989a..bd584fc859f 100644 --- a/service/wellarchitected/go.mod +++ b/service/wellarchitected/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wellarchitected go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wellarchitected/go.sum b/service/wellarchitected/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/wellarchitected/go.sum +++ b/service/wellarchitected/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wellarchitected/go_module_metadata.go b/service/wellarchitected/go_module_metadata.go index 2067dc3d02d..1c7a7cb183f 100644 --- a/service/wellarchitected/go_module_metadata.go +++ b/service/wellarchitected/go_module_metadata.go @@ -3,4 +3,4 @@ package wellarchitected // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.27.0" +const goModuleVersion = "1.27.2" diff --git a/service/wellarchitected/options.go b/service/wellarchitected/options.go index d6692664efa..54a42690c9d 100644 --- a/service/wellarchitected/options.go +++ b/service/wellarchitected/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/wisdom/CHANGELOG.md b/service/wisdom/CHANGELOG.md index 00ed52b8410..26f67b2bc31 100644 --- a/service/wisdom/CHANGELOG.md +++ b/service/wisdom/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.20.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.20.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.20.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/wisdom/api_client.go b/service/wisdom/api_client.go index f6054f4ee5d..def3c2fec15 100644 --- a/service/wisdom/api_client.go +++ b/service/wisdom/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/wisdom/auth.go b/service/wisdom/auth.go index 0e81e03cbf8..08050315357 100644 --- a/service/wisdom/auth.go +++ b/service/wisdom/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/wisdom/go.mod b/service/wisdom/go.mod index 39f291e0824..3c55f861955 100644 --- a/service/wisdom/go.mod +++ b/service/wisdom/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/wisdom go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/wisdom/go.sum b/service/wisdom/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/wisdom/go.sum +++ b/service/wisdom/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/wisdom/go_module_metadata.go b/service/wisdom/go_module_metadata.go index cf6fe931bbc..056ea5b5eda 100644 --- a/service/wisdom/go_module_metadata.go +++ b/service/wisdom/go_module_metadata.go @@ -3,4 +3,4 @@ package wisdom // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.20.0" +const goModuleVersion = "1.20.2" diff --git a/service/wisdom/options.go b/service/wisdom/options.go index 86966f88740..b74b5b74bd5 100644 --- a/service/wisdom/options.go +++ b/service/wisdom/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workdocs/CHANGELOG.md b/service/workdocs/CHANGELOG.md index 7d1f7415bc7..011742eb94e 100644 --- a/service/workdocs/CHANGELOG.md +++ b/service/workdocs/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.19.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.19.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.19.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/workdocs/api_client.go b/service/workdocs/api_client.go index bb3ae4cb567..6e2d5bac972 100644 --- a/service/workdocs/api_client.go +++ b/service/workdocs/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/workdocs/auth.go b/service/workdocs/auth.go index 92d4a3db279..144efcf00b4 100644 --- a/service/workdocs/auth.go +++ b/service/workdocs/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/workdocs/go.mod b/service/workdocs/go.mod index a76d691a440..cca74003323 100644 --- a/service/workdocs/go.mod +++ b/service/workdocs/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workdocs go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workdocs/go.sum b/service/workdocs/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/workdocs/go.sum +++ b/service/workdocs/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workdocs/go_module_metadata.go b/service/workdocs/go_module_metadata.go index 76c4718ca70..5cedaffddaf 100644 --- a/service/workdocs/go_module_metadata.go +++ b/service/workdocs/go_module_metadata.go @@ -3,4 +3,4 @@ package workdocs // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.19.0" +const goModuleVersion = "1.19.2" diff --git a/service/workdocs/options.go b/service/workdocs/options.go index 96292c726e2..a0f0d5ecba8 100644 --- a/service/workdocs/options.go +++ b/service/workdocs/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/worklink/CHANGELOG.md b/service/worklink/CHANGELOG.md index 0f1609985f7..ec8ca6ef4f1 100644 --- a/service/worklink/CHANGELOG.md +++ b/service/worklink/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.18.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.18.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.18.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/worklink/api_client.go b/service/worklink/api_client.go index d5522424939..0d30b7d4d79 100644 --- a/service/worklink/api_client.go +++ b/service/worklink/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/worklink/auth.go b/service/worklink/auth.go index 22982b332d8..2afb6ef6c0b 100644 --- a/service/worklink/auth.go +++ b/service/worklink/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/worklink/go.mod b/service/worklink/go.mod index 5ae71442683..a1bfb9eb36f 100644 --- a/service/worklink/go.mod +++ b/service/worklink/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/worklink go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/worklink/go.sum b/service/worklink/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/worklink/go.sum +++ b/service/worklink/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/worklink/go_module_metadata.go b/service/worklink/go_module_metadata.go index 762c9ea1393..7222efdecf1 100644 --- a/service/worklink/go_module_metadata.go +++ b/service/worklink/go_module_metadata.go @@ -3,4 +3,4 @@ package worklink // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.18.0" +const goModuleVersion = "1.18.2" diff --git a/service/worklink/options.go b/service/worklink/options.go index f1ad59d522d..8e95bde1adb 100644 --- a/service/worklink/options.go +++ b/service/worklink/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workmail/CHANGELOG.md b/service/workmail/CHANGELOG.md index d84a5f1ac23..e42bec55a2f 100644 --- a/service/workmail/CHANGELOG.md +++ b/service/workmail/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/workmail/api_client.go b/service/workmail/api_client.go index 6e0c85b8378..c0a2c9b9814 100644 --- a/service/workmail/api_client.go +++ b/service/workmail/api_client.go @@ -143,7 +143,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -152,7 +152,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/workmail/auth.go b/service/workmail/auth.go index c07fafc3c47..d3ea5209d1c 100644 --- a/service/workmail/auth.go +++ b/service/workmail/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/workmail/go.mod b/service/workmail/go.mod index f6c88ee13e4..572f3d98f79 100644 --- a/service/workmail/go.mod +++ b/service/workmail/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workmail go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workmail/go.sum b/service/workmail/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/workmail/go.sum +++ b/service/workmail/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmail/go_module_metadata.go b/service/workmail/go_module_metadata.go index e3c82df0810..600ffbe9c2e 100644 --- a/service/workmail/go_module_metadata.go +++ b/service/workmail/go_module_metadata.go @@ -3,4 +3,4 @@ package workmail // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/workmail/options.go b/service/workmail/options.go index ee931d38d7b..e76b4940b82 100644 --- a/service/workmail/options.go +++ b/service/workmail/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workmailmessageflow/CHANGELOG.md b/service/workmailmessageflow/CHANGELOG.md index 4033e1bc3d3..a21835d4080 100644 --- a/service/workmailmessageflow/CHANGELOG.md +++ b/service/workmailmessageflow/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.17.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.17.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.17.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/workmailmessageflow/api_client.go b/service/workmailmessageflow/api_client.go index f1b75d66834..ed7446509f0 100644 --- a/service/workmailmessageflow/api_client.go +++ b/service/workmailmessageflow/api_client.go @@ -140,7 +140,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -149,7 +149,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/workmailmessageflow/auth.go b/service/workmailmessageflow/auth.go index ac09568e29c..d9814e2325f 100644 --- a/service/workmailmessageflow/auth.go +++ b/service/workmailmessageflow/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/workmailmessageflow/go.mod b/service/workmailmessageflow/go.mod index 3fc0607fa03..a254249d8fa 100644 --- a/service/workmailmessageflow/go.mod +++ b/service/workmailmessageflow/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workmailmessageflow go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workmailmessageflow/go.sum b/service/workmailmessageflow/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/workmailmessageflow/go.sum +++ b/service/workmailmessageflow/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workmailmessageflow/go_module_metadata.go b/service/workmailmessageflow/go_module_metadata.go index 0d51f5e0a60..d6e6b42cd3f 100644 --- a/service/workmailmessageflow/go_module_metadata.go +++ b/service/workmailmessageflow/go_module_metadata.go @@ -3,4 +3,4 @@ package workmailmessageflow // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.17.0" +const goModuleVersion = "1.17.2" diff --git a/service/workmailmessageflow/options.go b/service/workmailmessageflow/options.go index 1d92a66ad6f..2cb23f9defb 100644 --- a/service/workmailmessageflow/options.go +++ b/service/workmailmessageflow/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workspaces/CHANGELOG.md b/service/workspaces/CHANGELOG.md index c8ba14caeb7..129228b699e 100644 --- a/service/workspaces/CHANGELOG.md +++ b/service/workspaces/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.35.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.35.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.35.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/workspaces/api_client.go b/service/workspaces/api_client.go index 272848831d6..b696b735f7f 100644 --- a/service/workspaces/api_client.go +++ b/service/workspaces/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/workspaces/auth.go b/service/workspaces/auth.go index 9a912663bdd..4f6700edaad 100644 --- a/service/workspaces/auth.go +++ b/service/workspaces/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/workspaces/go.mod b/service/workspaces/go.mod index 2b77f49da35..7c766165890 100644 --- a/service/workspaces/go.mod +++ b/service/workspaces/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspaces go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspaces/go.sum b/service/workspaces/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/workspaces/go.sum +++ b/service/workspaces/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspaces/go_module_metadata.go b/service/workspaces/go_module_metadata.go index 83cf72ab31a..ab1e7271c9c 100644 --- a/service/workspaces/go_module_metadata.go +++ b/service/workspaces/go_module_metadata.go @@ -3,4 +3,4 @@ package workspaces // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.35.0" +const goModuleVersion = "1.35.2" diff --git a/service/workspaces/options.go b/service/workspaces/options.go index c28a076775a..a4054298bfe 100644 --- a/service/workspaces/options.go +++ b/service/workspaces/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workspacesthinclient/CHANGELOG.md b/service/workspacesthinclient/CHANGELOG.md index 1c52f843bdd..d93f2b5471e 100644 --- a/service/workspacesthinclient/CHANGELOG.md +++ b/service/workspacesthinclient/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.1.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.1.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/workspacesthinclient/api_client.go b/service/workspacesthinclient/api_client.go index 754e0e9e90f..973d37a7b8b 100644 --- a/service/workspacesthinclient/api_client.go +++ b/service/workspacesthinclient/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/workspacesthinclient/auth.go b/service/workspacesthinclient/auth.go index 75bcb587e8e..6bddbe1f6e5 100644 --- a/service/workspacesthinclient/auth.go +++ b/service/workspacesthinclient/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/workspacesthinclient/go.mod b/service/workspacesthinclient/go.mod index ae6cd580fad..73c7ebb9181 100644 --- a/service/workspacesthinclient/go.mod +++ b/service/workspacesthinclient/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspacesthinclient go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspacesthinclient/go.sum b/service/workspacesthinclient/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/workspacesthinclient/go.sum +++ b/service/workspacesthinclient/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspacesthinclient/go_module_metadata.go b/service/workspacesthinclient/go_module_metadata.go index 21f8f0efa67..76f163394ab 100644 --- a/service/workspacesthinclient/go_module_metadata.go +++ b/service/workspacesthinclient/go_module_metadata.go @@ -3,4 +3,4 @@ package workspacesthinclient // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.1.0" +const goModuleVersion = "1.1.2" diff --git a/service/workspacesthinclient/options.go b/service/workspacesthinclient/options.go index 5de8f7f6a0e..f573ccf9e30 100644 --- a/service/workspacesthinclient/options.go +++ b/service/workspacesthinclient/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/workspacesweb/CHANGELOG.md b/service/workspacesweb/CHANGELOG.md index b325e831fb3..3156e5fed21 100644 --- a/service/workspacesweb/CHANGELOG.md +++ b/service/workspacesweb/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.15.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.15.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.15.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/workspacesweb/api_client.go b/service/workspacesweb/api_client.go index 14693c948ea..b49719b1780 100644 --- a/service/workspacesweb/api_client.go +++ b/service/workspacesweb/api_client.go @@ -144,7 +144,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -153,7 +153,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/workspacesweb/auth.go b/service/workspacesweb/auth.go index 712b0a94725..ecd5bcbfaf1 100644 --- a/service/workspacesweb/auth.go +++ b/service/workspacesweb/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/workspacesweb/go.mod b/service/workspacesweb/go.mod index f2bfe356e85..26d85e71d2d 100644 --- a/service/workspacesweb/go.mod +++ b/service/workspacesweb/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/workspacesweb go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/workspacesweb/go.sum b/service/workspacesweb/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/workspacesweb/go.sum +++ b/service/workspacesweb/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/workspacesweb/go_module_metadata.go b/service/workspacesweb/go_module_metadata.go index 8e9ebba7b3f..9a22de96789 100644 --- a/service/workspacesweb/go_module_metadata.go +++ b/service/workspacesweb/go_module_metadata.go @@ -3,4 +3,4 @@ package workspacesweb // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.15.0" +const goModuleVersion = "1.15.2" diff --git a/service/workspacesweb/options.go b/service/workspacesweb/options.go index 40c031182e7..91e7d3202ed 100644 --- a/service/workspacesweb/options.go +++ b/service/workspacesweb/options.go @@ -217,7 +217,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } } diff --git a/service/xray/CHANGELOG.md b/service/xray/CHANGELOG.md index a4a49d08e1e..3b4feec2dd9 100644 --- a/service/xray/CHANGELOG.md +++ b/service/xray/CHANGELOG.md @@ -1,3 +1,13 @@ +# v1.23.2 (2023-12-01) + +* **Bug Fix**: Correct wrapping of errors in authentication workflow. +* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.23.1 (2023-11-30) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.23.0 (2023-11-29) * **Feature**: Expose Options() accessor on service clients. diff --git a/service/xray/api_client.go b/service/xray/api_client.go index 1f5b7a0ab48..1281a3b40b1 100644 --- a/service/xray/api_client.go +++ b/service/xray/api_client.go @@ -139,7 +139,7 @@ func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in mi func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error { if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil { - return fmt.Errorf("add ResolveAuthScheme: %v", err) + return fmt.Errorf("add ResolveAuthScheme: %w", err) } if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil { return fmt.Errorf("add GetIdentity: %v", err) @@ -148,7 +148,7 @@ func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, o return fmt.Errorf("add ResolveEndpointV2: %v", err) } if err := stack.Finalize.Insert(&signRequestMiddleware{}, "ResolveEndpointV2", middleware.After); err != nil { - return fmt.Errorf("add Signing: %v", err) + return fmt.Errorf("add Signing: %w", err) } return nil } diff --git a/service/xray/auth.go b/service/xray/auth.go index 01d115518e9..1bfbafc95a3 100644 --- a/service/xray/auth.go +++ b/service/xray/auth.go @@ -120,7 +120,7 @@ func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in mid params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options) options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params) if err != nil { - return out, metadata, fmt.Errorf("resolve auth scheme: %v", err) + return out, metadata, fmt.Errorf("resolve auth scheme: %w", err) } scheme, ok := m.selectScheme(options) @@ -200,7 +200,7 @@ func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middlewar identity, err := resolver.GetIdentity(ctx, rscheme.IdentityProperties) if err != nil { - return out, metadata, fmt.Errorf("get identity: %v", err) + return out, metadata, fmt.Errorf("get identity: %w", err) } ctx = setIdentity(ctx, identity) @@ -249,7 +249,7 @@ func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middlewar } if err := signer.SignRequest(ctx, req, identity, rscheme.SignerProperties); err != nil { - return out, metadata, fmt.Errorf("sign request: %v", err) + return out, metadata, fmt.Errorf("sign request: %w", err) } return next.HandleFinalize(ctx, in) diff --git a/service/xray/go.mod b/service/xray/go.mod index 58a6323de9e..1de597ed18d 100644 --- a/service/xray/go.mod +++ b/service/xray/go.mod @@ -3,10 +3,10 @@ module github.com/aws/aws-sdk-go-v2/service/xray go 1.19 require ( - github.com/aws/aws-sdk-go-v2 v1.23.3 - github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.6 - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.6 - github.com/aws/smithy-go v1.18.0 + github.com/aws/aws-sdk-go-v2 v1.23.5 + github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.8 + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.8 + github.com/aws/smithy-go v1.18.1 github.com/google/go-cmp v0.5.8 ) diff --git a/service/xray/go.sum b/service/xray/go.sum index b005e723d96..2949ab2a4c2 100644 --- a/service/xray/go.sum +++ b/service/xray/go.sum @@ -1,4 +1,4 @@ -github.com/aws/smithy-go v1.18.0 h1:uWqjOwPEqjzmQXpwm/8cwUWTmFhT9Ypc8tECXrshDsI= -github.com/aws/smithy-go v1.18.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= +github.com/aws/smithy-go v1.18.1 h1:pOdBTUfXNazOlxLrgeYalVnuTpKreACHtc62xLwIB3c= +github.com/aws/smithy-go v1.18.1/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= diff --git a/service/xray/go_module_metadata.go b/service/xray/go_module_metadata.go index dc2c2a70d9d..fe23a70827d 100644 --- a/service/xray/go_module_metadata.go +++ b/service/xray/go_module_metadata.go @@ -3,4 +3,4 @@ package xray // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.23.0" +const goModuleVersion = "1.23.2" diff --git a/service/xray/options.go b/service/xray/options.go index 11ecdd21b54..c5669aafef8 100644 --- a/service/xray/options.go +++ b/service/xray/options.go @@ -213,7 +213,7 @@ func WithSigV4SigningRegion(region string) func(*Options) { } func ignoreAnonymousAuth(options *Options) { - if _, ok := options.Credentials.(aws.AnonymousCredentials); ok { + if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) { options.Credentials = nil } }