From cbd567f618083bc84f16a4191802682f2c77c771 Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Wed, 8 Nov 2023 19:37:31 +0000 Subject: [PATCH] Release v1.47.6 (2023-11-08) === ### Service Client Updates * `service/connect`: Updates service API * `service/connectcases`: Updates service API and documentation * `service/datasync`: Updates service API * `service/guardduty`: Updates service API and documentation * Added API support for new GuardDuty EKS Audit Log finding types. * `service/lambda`: Updates service API and documentation * Add Node 20 (nodejs20.x) support to AWS Lambda. * `service/models.lex.v2`: Updates service API and documentation * `service/omics`: Updates service API and documentation * `service/rds`: Updates service API, documentation, waiters, paginators, and examples * This Amazon RDS release adds support for patching the OS of an RDS Custom for Oracle DB instance. You can now upgrade the database or operating system using the modify-db-instance command. * `service/redshift-serverless`: Updates service API and documentation * `service/resiliencehub`: Updates service API and documentation * `service/sqs`: Updates service API, documentation, and paginators * This release enables customers to call SQS using AWS JSON-1.0 protocol. --- CHANGELOG.md | 20 + aws/endpoints/defaults.go | 9 + aws/version.go | 2 +- models/apis/connect/2017-08-08/api-2.json | 1 + .../connect/2017-08-08/endpoint-tests-1.json | 11 - .../apis/connectcases/2022-10-03/api-2.json | 14 + .../apis/connectcases/2022-10-03/docs-2.json | 15 +- models/apis/datasync/2018-11-09/api-2.json | 4 +- models/apis/guardduty/2017-11-28/api-2.json | 226 + models/apis/guardduty/2017-11-28/docs-2.json | 134 +- models/apis/lambda/2015-03-31/api-2.json | 3 +- models/apis/lambda/2015-03-31/docs-2.json | 12 +- .../2015-03-31/endpoint-rule-set-1.json | 40 +- .../apis/models.lex.v2/2020-08-07/api-2.json | 6 +- .../apis/models.lex.v2/2020-08-07/docs-2.json | 2 + .../2020-08-07/endpoint-rule-set-1.json | 40 +- models/apis/omics/2022-11-28/api-2.json | 18 + models/apis/omics/2022-11-28/docs-2.json | 11 +- models/apis/rds/2014-10-31/docs-2.json | 4 +- .../apis/rds/2014-10-31/endpoint-tests-1.json | 11 - .../redshift-serverless/2021-04-21/api-2.json | 3 + .../2021-04-21/docs-2.json | 3 + .../apis/resiliencehub/2020-04-30/api-2.json | 37 + .../apis/resiliencehub/2020-04-30/docs-2.json | 41 +- models/apis/sqs/2012-11-05/api-2.json | 667 +-- models/apis/sqs/2012-11-05/docs-2.json | 124 +- .../sqs/2012-11-05/endpoint-rule-set-1.json | 386 +- models/apis/sqs/2012-11-05/paginators-1.json | 6 +- models/endpoints/endpoints.json | 3 + service/connect/api.go | 7 +- service/connectcases/api.go | 83 +- service/datasync/api.go | 12 +- service/guardduty/api.go | 579 +++ service/lambda/api.go | 28 +- service/lexmodelsv2/api.go | 18 + service/omics/api.go | 36 + service/rds/api.go | 8 +- service/redshiftserverless/api.go | 30 + service/resiliencehub/api.go | 171 +- service/sqs/api.go | 3794 ++++++++++++++--- service/sqs/errors.go | 195 +- service/sqs/service.go | 15 +- 42 files changed, 5665 insertions(+), 1164 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23f1cbf1d0f..b6104bb817d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +Release v1.47.6 (2023-11-08) +=== + +### Service Client Updates +* `service/connect`: Updates service API +* `service/connectcases`: Updates service API and documentation +* `service/datasync`: Updates service API +* `service/guardduty`: Updates service API and documentation + * Added API support for new GuardDuty EKS Audit Log finding types. +* `service/lambda`: Updates service API and documentation + * Add Node 20 (nodejs20.x) support to AWS Lambda. +* `service/models.lex.v2`: Updates service API and documentation +* `service/omics`: Updates service API and documentation +* `service/rds`: Updates service API, documentation, waiters, paginators, and examples + * This Amazon RDS release adds support for patching the OS of an RDS Custom for Oracle DB instance. You can now upgrade the database or operating system using the modify-db-instance command. +* `service/redshift-serverless`: Updates service API and documentation +* `service/resiliencehub`: Updates service API and documentation +* `service/sqs`: Updates service API, documentation, and paginators + * This release enables customers to call SQS using AWS JSON-1.0 protocol. + Release v1.47.5 (2023-11-07) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 809dfca364c..1b6d24216c4 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -3166,6 +3166,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-northeast-1", }: endpoint{}, + endpointKey{ + Region: "ap-south-1", + }: endpoint{}, endpointKey{ Region: "ap-southeast-1", }: endpoint{}, @@ -3178,6 +3181,12 @@ var awsPartition = partition{ endpointKey{ Region: "eu-west-1", }: endpoint{}, + endpointKey{ + Region: "eu-west-2", + }: endpoint{}, + endpointKey{ + Region: "eu-west-3", + }: endpoint{}, endpointKey{ Region: "fips-us-east-1", }: endpoint{ diff --git a/aws/version.go b/aws/version.go index fe630791cdd..29e42ef3fff 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.47.5" +const SDKVersion = "1.47.6" diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 0a9a708f748..c589a70dc19 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -11148,6 +11148,7 @@ }, "SearchUsersRequest":{ "type":"structure", + "required":["InstanceId"], "members":{ "InstanceId":{"shape":"InstanceId"}, "NextToken":{"shape":"NextToken2500"}, diff --git a/models/apis/connect/2017-08-08/endpoint-tests-1.json b/models/apis/connect/2017-08-08/endpoint-tests-1.json index 64ee76a85b4..f84fda681e7 100644 --- a/models/apis/connect/2017-08-08/endpoint-tests-1.json +++ b/models/apis/connect/2017-08-08/endpoint-tests-1.json @@ -451,17 +451,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" diff --git a/models/apis/connectcases/2022-10-03/api-2.json b/models/apis/connectcases/2022-10-03/api-2.json index 8a35cd28a5b..912589c3165 100644 --- a/models/apis/connectcases/2022-10-03/api-2.json +++ b/models/apis/connectcases/2022-10-03/api-2.json @@ -945,6 +945,7 @@ "location":"uri", "locationName":"domainId" }, + "performedBy":{"shape":"UserUnion"}, "type":{"shape":"RelatedItemType"} } }, @@ -1986,6 +1987,7 @@ "members":{ "associationTime":{"shape":"AssociationTime"}, "content":{"shape":"RelatedItemContent"}, + "performedBy":{"shape":"UserUnion"}, "relatedItemId":{"shape":"RelatedItemId"}, "tags":{"shape":"Tags"}, "type":{"shape":"RelatedItemType"} @@ -2260,6 +2262,18 @@ "members":{ } }, + "UserArn":{ + "type":"string", + "max":500, + "min":1 + }, + "UserUnion":{ + "type":"structure", + "members":{ + "userArn":{"shape":"UserArn"} + }, + "union":true + }, "ValidationException":{ "type":"structure", "required":["message"], diff --git a/models/apis/connectcases/2022-10-03/docs-2.json b/models/apis/connectcases/2022-10-03/docs-2.json index b059f040753..59340ec8cfe 100644 --- a/models/apis/connectcases/2022-10-03/docs-2.json +++ b/models/apis/connectcases/2022-10-03/docs-2.json @@ -8,7 +8,7 @@ "CreateDomain": "

Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Amazon Connect instance can be associated with only one Cases domain.

This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect CreateIntegrationAssociation API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see Onboard to Cases.

 </important> 
", "CreateField": "

Creates a field in the Cases domain. This field is used to define the case object model (that is, defines what data can be captured on cases) in a Cases domain.

", "CreateLayout": "

Creates a layout in the Cases domain. Layouts define the following configuration in the top section and More Info tab of the Cases user interface:

Title and Status fields cannot be part of layouts since they are not configurable.

", - "CreateRelatedItem": "

Creates a related item (comments, tasks, and contacts) and associates it with a case.

A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a contactArn). All Related Items have their own internal identifier, the relatedItemArn. Examples of related items include comments and contacts.

", + "CreateRelatedItem": "

Creates a related item (comments, tasks, and contacts) and associates it with a case.

  • A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a contactArn). All Related Items have their own internal identifier, the relatedItemArn. Examples of related items include comments and contacts.

  • If you provide a value for performedBy.userArn you must also have DescribeUser permission on the ARN of the user that you provide.

 </note> 
", "CreateTemplate": "

Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases.

", "DeleteDomain": "

Deletes a Cases domain.

 <note> <p>After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance. See <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteIntegrationAssociation.html">DeleteIntegrationAssociation</a>.</p> </note> 
", "GetCase": "

Returns information about a specific case if it exists.

", @@ -1229,6 +1229,19 @@ "refs": { } }, + "UserArn": { + "base": null, + "refs": { + "UserUnion$userArn": "

Represents the Amazon Connect ARN of the user.

" + } + }, + "UserUnion": { + "base": "

Represents the identity of the person who performed the action.

", + "refs": { + "CreateRelatedItemRequest$performedBy": "

Represents the creator of the related item.

", + "SearchRelatedItemsResponseItem$performedBy": "

Represents the creator of the related item.

" + } + }, "ValidationException": { "base": "

The request isn't valid. Check the syntax and try again.

", "refs": { diff --git a/models/apis/datasync/2018-11-09/api-2.json b/models/apis/datasync/2018-11-09/api-2.json index 3f9a48a2e87..1fe510083d3 100644 --- a/models/apis/datasync/2018-11-09/api-2.json +++ b/models/apis/datasync/2018-11-09/api-2.json @@ -2404,8 +2404,8 @@ "ObjectStorageAccessKey":{ "type":"string", "max":200, - "min":1, - "pattern":"^.+$" + "min":0, + "pattern":"^.*$" }, "ObjectStorageBucketName":{ "type":"string", diff --git a/models/apis/guardduty/2017-11-28/api-2.json b/models/apis/guardduty/2017-11-28/api-2.json index 68c52e2752f..1234f2beee5 100644 --- a/models/apis/guardduty/2017-11-28/api-2.json +++ b/models/apis/guardduty/2017-11-28/api-2.json @@ -1181,6 +1181,18 @@ "RdsLoginAttemptAction":{ "shape":"RdsLoginAttemptAction", "locationName":"rdsLoginAttemptAction" + }, + "KubernetesPermissionCheckedDetails":{ + "shape":"KubernetesPermissionCheckedDetails", + "locationName":"kubernetesPermissionCheckedDetails" + }, + "KubernetesRoleBindingDetails":{ + "shape":"KubernetesRoleBindingDetails", + "locationName":"kubernetesRoleBindingDetails" + }, + "KubernetesRoleDetails":{ + "shape":"KubernetesRoleDetails", + "locationName":"kubernetesRoleDetails" } } }, @@ -1251,6 +1263,64 @@ "key":{"shape":"String"}, "value":{"shape":"String"} }, + "Anomaly":{ + "type":"structure", + "members":{ + "Profiles":{ + "shape":"AnomalyProfiles", + "locationName":"profiles" + }, + "Unusual":{ + "shape":"AnomalyUnusual", + "locationName":"unusual" + } + } + }, + "AnomalyObject":{ + "type":"structure", + "members":{ + "ProfileType":{ + "shape":"ProfileType", + "locationName":"profileType" + }, + "ProfileSubtype":{ + "shape":"ProfileSubtype", + "locationName":"profileSubtype" + }, + "Observations":{ + "shape":"Observations", + "locationName":"observations" + } + } + }, + "AnomalyProfileFeatureObjects":{ + "type":"list", + "member":{"shape":"AnomalyObject"} + }, + "AnomalyProfileFeatures":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"AnomalyProfileFeatureObjects"} + }, + "AnomalyProfiles":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"AnomalyProfileFeatures"} + }, + "AnomalyUnusual":{ + "type":"structure", + "members":{ + "Behavior":{ + "shape":"Behavior", + "locationName":"behavior" + } + } + }, + "AnomalyUnusualBehaviorFeature":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"AnomalyObject"} + }, "ArchiveFindingsRequest":{ "type":"structure", "required":[ @@ -1338,6 +1408,11 @@ "error":{"httpStatusCode":400}, "exception":true }, + "Behavior":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"AnomalyUnusualBehaviorFeature"} + }, "BlockPublicAccess":{ "type":"structure", "members":{ @@ -2553,6 +2628,15 @@ "type":"list", "member":{"shape":"Destination"} }, + "Detection":{ + "type":"structure", + "members":{ + "Anomaly":{ + "shape":"Anomaly", + "locationName":"anomaly" + } + } + }, "DetectorAdditionalConfiguration":{ "type":"structure", "members":{ @@ -3881,6 +3965,19 @@ } } }, + "ImpersonatedUser":{ + "type":"structure", + "members":{ + "Username":{ + "shape":"String", + "locationName":"username" + }, + "Groups":{ + "shape":"Groups", + "locationName":"groups" + } + } + }, "InstanceArn":{ "type":"string", "pattern":"^arn:(aws|aws-cn|aws-us-gov):[a-z]+:[a-z]+(-[0-9]+|-[a-z]+)+:([0-9]{12}):[a-z\\-]+\\/[a-zA-Z0-9]*$" @@ -4093,6 +4190,22 @@ "Parameters":{ "shape":"String", "locationName":"parameters" + }, + "Resource":{ + "shape":"String", + "locationName":"resource" + }, + "Subresource":{ + "shape":"String", + "locationName":"subresource" + }, + "Namespace":{ + "shape":"String", + "locationName":"namespace" + }, + "ResourceName":{ + "shape":"String", + "locationName":"resourceName" } } }, @@ -4158,6 +4271,69 @@ } } }, + "KubernetesPermissionCheckedDetails":{ + "type":"structure", + "members":{ + "Verb":{ + "shape":"String", + "locationName":"verb" + }, + "Resource":{ + "shape":"String", + "locationName":"resource" + }, + "Namespace":{ + "shape":"String", + "locationName":"namespace" + }, + "Allowed":{ + "shape":"Boolean", + "locationName":"allowed" + } + } + }, + "KubernetesRoleBindingDetails":{ + "type":"structure", + "members":{ + "Kind":{ + "shape":"String", + "locationName":"kind" + }, + "Name":{ + "shape":"String", + "locationName":"name" + }, + "Uid":{ + "shape":"String", + "locationName":"uid" + }, + "RoleRefName":{ + "shape":"String", + "locationName":"roleRefName" + }, + "RoleRefKind":{ + "shape":"String", + "locationName":"roleRefKind" + } + } + }, + "KubernetesRoleDetails":{ + "type":"structure", + "members":{ + "Kind":{ + "shape":"String", + "locationName":"kind" + }, + "Name":{ + "shape":"String", + "locationName":"name" + }, + "Uid":{ + "shape":"String", + "locationName":"uid" + } + } + }, "KubernetesUserDetails":{ "type":"structure", "members":{ @@ -4176,6 +4352,10 @@ "SessionName":{ "shape":"SessionNameList", "locationName":"sessionName" + }, + "ImpersonatedUser":{ + "shape":"ImpersonatedUser", + "locationName":"impersonatedUser" } } }, @@ -4209,6 +4389,18 @@ "Volumes":{ "shape":"Volumes", "locationName":"volumes" + }, + "ServiceAccountName":{ + "shape":"String", + "locationName":"serviceAccountName" + }, + "HostIPC":{ + "shape":"Boolean", + "locationName":"hostIPC" + }, + "HostPID":{ + "shape":"Boolean", + "locationName":"hostPID" } } }, @@ -5050,6 +5242,19 @@ "type":"list", "member":{"shape":"String"} }, + "ObservationTexts":{ + "type":"list", + "member":{"shape":"String"} + }, + "Observations":{ + "type":"structure", + "members":{ + "Text":{ + "shape":"ObservationTexts", + "locationName":"text" + } + } + }, "OrderBy":{ "type":"string", "enum":[ @@ -5477,6 +5682,19 @@ "type":"list", "member":{"shape":"ProductCode"} }, + "ProfileSubtype":{ + "type":"string", + "enum":[ + "FREQUENT", + "INFREQUENT", + "UNSEEN", + "RARE" + ] + }, + "ProfileType":{ + "type":"string", + "enum":["FREQUENCY"] + }, "PublicAccess":{ "type":"structure", "members":{ @@ -6104,6 +6322,10 @@ "Privileged":{ "shape":"Boolean", "locationName":"privileged" + }, + "AllowPrivilegeEscalation":{ + "shape":"Boolean", + "locationName":"allowPrivilegeEscalation" } } }, @@ -6182,6 +6404,10 @@ "RuntimeDetails":{ "shape":"RuntimeDetails", "locationName":"runtimeDetails" + }, + "Detection":{ + "shape":"Detection", + "locationName":"detection" } } }, diff --git a/models/apis/guardduty/2017-11-28/docs-2.json b/models/apis/guardduty/2017-11-28/docs-2.json index 93320eeeded..c37c7cab8e2 100644 --- a/models/apis/guardduty/2017-11-28/docs-2.json +++ b/models/apis/guardduty/2017-11-28/docs-2.json @@ -214,6 +214,49 @@ "AwsApiCallAction$AffectedResources": "

The details of the Amazon Web Services account that made the API call. This field identifies the resources that were affected by this API call.

" } }, + "Anomaly": { + "base": "

Contains information about the anomalies.

", + "refs": { + "Detection$Anomaly": "

The details about the anomalous activity that caused GuardDuty to generate the finding.

" + } + }, + "AnomalyObject": { + "base": "

Contains information about the unusual anomalies.

", + "refs": { + "AnomalyProfileFeatureObjects$member": null, + "AnomalyUnusualBehaviorFeature$value": null + } + }, + "AnomalyProfileFeatureObjects": { + "base": null, + "refs": { + "AnomalyProfileFeatures$value": null + } + }, + "AnomalyProfileFeatures": { + "base": null, + "refs": { + "AnomalyProfiles$value": null + } + }, + "AnomalyProfiles": { + "base": null, + "refs": { + "Anomaly$Profiles": "

Information about the types of profiles.

" + } + }, + "AnomalyUnusual": { + "base": "

Contains information about the behavior of the anomaly that is new to GuardDuty.

", + "refs": { + "Anomaly$Unusual": "

Information about the behavior of the anomalies.

" + } + }, + "AnomalyUnusualBehaviorFeature": { + "base": null, + "refs": { + "Behavior$value": null + } + }, "ArchiveFindingsRequest": { "base": null, "refs": { @@ -242,6 +285,12 @@ "refs": { } }, + "Behavior": { + "base": null, + "refs": { + "AnomalyUnusual$Behavior": "

The behavior of the anomalous activity that caused GuardDuty to generate the finding.

" + } + }, "BlockPublicAccess": { "base": "

Contains information on how the bucker owner's S3 Block Public Access settings are being applied to the S3 bucket. See S3 Block Public Access for more information.

", "refs": { @@ -268,7 +317,10 @@ "DnsRequestAction$Blocked": "

Indicates whether the targeted port is blocked.

", "InviteMembersRequest$DisableEmailNotification": "

A Boolean value that specifies whether you want to disable email notification to the accounts that you are inviting to GuardDuty as members.

", "KubernetesAuditLogsConfiguration$Enable": "

The status of Kubernetes audit logs as a data source.

", + "KubernetesPermissionCheckedDetails$Allowed": "

Information whether the user has the permission to call the Kubernetes API.

", "KubernetesWorkloadDetails$HostNetwork": "

Whether the hostNetwork flag is enabled for the pods included in the workload.

", + "KubernetesWorkloadDetails$HostIPC": "

Whether the host IPC flag is enabled for the pods in the workload.

", + "KubernetesWorkloadDetails$HostPID": "

Whether the host PID flag is enabled for the pods in the workload.

", "NetworkConnectionAction$Blocked": "

Indicates whether EC2 blocked the network connection to your instance.

", "OrganizationEbsVolumes$AutoEnable": "

Whether scanning EBS volumes should be auto-enabled for new members joining the organization.

", "OrganizationEbsVolumesResult$AutoEnable": "

An object that contains the status of whether scanning EBS volumes should be auto-enabled for new members joining the organization.

", @@ -281,6 +333,7 @@ "S3LogsConfiguration$Enable": "

The status of S3 data event logs as a data source.

", "ScanEc2InstanceWithFindings$EbsVolumes": "

Describes the configuration for scanning EBS volumes as data source.

", "SecurityContext$Privileged": "

Whether the container is privileged.

", + "SecurityContext$AllowPrivilegeEscalation": "

Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process.

", "Service$Archived": "

Indicates whether this finding is archived.

", "ThreatDetectedByName$Shortened": "

Flag to determine if the finding contains every single infected file-path and/or every threat.

", "UpdateDetectorRequest$Enable": "

Specifies whether the detector is enabled or not enabled.

", @@ -752,6 +805,12 @@ "ListPublishingDestinationsResponse$Destinations": "

A Destinations object that includes information about each publishing destination returned.

" } }, + "Detection": { + "base": "

Contains information about the detected behavior.

", + "refs": { + "Service$Detection": "

Contains information about the detected unusual behavior.

" + } + }, "DetectorAdditionalConfiguration": { "base": "

Information about the additional configuration for a feature in your GuardDuty account.

", "refs": { @@ -1137,7 +1196,7 @@ "FindingCriteria": { "base": "

Contains information about the criteria used for querying findings.

", "refs": { - "CreateFilterRequest$FindingCriteria": "

Represents the criteria to be used in the filter for querying findings.

You can only use the following attributes to query findings:

  • accountId

  • id

  • region

  • severity

    To filter on the basis of severity, the API and CLI use the following input list for the FindingCriteria condition:

    • Low: [\"1\", \"2\", \"3\"]

    • Medium: [\"4\", \"5\", \"6\"]

    • High: [\"7\", \"8\", \"9\"]

    For more information, see Severity levels for GuardDuty findings.

  • type

  • updatedAt

    Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on whether the value contains milliseconds.

  • resource.accessKeyDetails.accessKeyId

  • resource.accessKeyDetails.principalId

  • resource.accessKeyDetails.userName

  • resource.accessKeyDetails.userType

  • resource.instanceDetails.iamInstanceProfile.id

  • resource.instanceDetails.imageId

  • resource.instanceDetails.instanceId

  • resource.instanceDetails.tags.key

  • resource.instanceDetails.tags.value

  • resource.instanceDetails.networkInterfaces.ipv6Addresses

  • resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress

  • resource.instanceDetails.networkInterfaces.publicDnsName

  • resource.instanceDetails.networkInterfaces.publicIp

  • resource.instanceDetails.networkInterfaces.securityGroups.groupId

  • resource.instanceDetails.networkInterfaces.securityGroups.groupName

  • resource.instanceDetails.networkInterfaces.subnetId

  • resource.instanceDetails.networkInterfaces.vpcId

  • resource.instanceDetails.outpostArn

  • resource.resourceType

  • resource.s3BucketDetails.publicAccess.effectivePermissions

  • resource.s3BucketDetails.name

  • resource.s3BucketDetails.tags.key

  • resource.s3BucketDetails.tags.value

  • resource.s3BucketDetails.type

  • service.action.actionType

  • service.action.awsApiCallAction.api

  • service.action.awsApiCallAction.callerType

  • service.action.awsApiCallAction.errorCode

  • service.action.awsApiCallAction.remoteIpDetails.city.cityName

  • service.action.awsApiCallAction.remoteIpDetails.country.countryName

  • service.action.awsApiCallAction.remoteIpDetails.ipAddressV4

  • service.action.awsApiCallAction.remoteIpDetails.organization.asn

  • service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg

  • service.action.awsApiCallAction.serviceName

  • service.action.dnsRequestAction.domain

  • service.action.networkConnectionAction.blocked

  • service.action.networkConnectionAction.connectionDirection

  • service.action.networkConnectionAction.localPortDetails.port

  • service.action.networkConnectionAction.protocol

  • service.action.networkConnectionAction.remoteIpDetails.city.cityName

  • service.action.networkConnectionAction.remoteIpDetails.country.countryName

  • service.action.networkConnectionAction.remoteIpDetails.ipAddressV4

  • service.action.networkConnectionAction.remoteIpDetails.organization.asn

  • service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg

  • service.action.networkConnectionAction.remotePortDetails.port

  • service.action.awsApiCallAction.remoteAccountDetails.affiliated

  • service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4

  • service.action.kubernetesApiCallAction.requestUri

  • service.action.networkConnectionAction.localIpDetails.ipAddressV4

  • service.action.networkConnectionAction.protocol

  • service.action.awsApiCallAction.serviceName

  • service.action.awsApiCallAction.remoteAccountDetails.accountId

  • service.additionalInfo.threatListName

  • service.resourceRole

  • resource.eksClusterDetails.name

  • resource.kubernetesDetails.kubernetesWorkloadDetails.name

  • resource.kubernetesDetails.kubernetesWorkloadDetails.namespace

  • resource.kubernetesDetails.kubernetesUserDetails.username

  • resource.kubernetesDetails.kubernetesWorkloadDetails.containers.image

  • resource.kubernetesDetails.kubernetesWorkloadDetails.containers.imagePrefix

  • service.ebsVolumeScanDetails.scanId

  • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.name

  • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity

  • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash

  • resource.ecsClusterDetails.name

  • resource.ecsClusterDetails.taskDetails.containers.image

  • resource.ecsClusterDetails.taskDetails.definitionArn

  • resource.containerDetails.image

  • resource.rdsDbInstanceDetails.dbInstanceIdentifier

  • resource.rdsDbInstanceDetails.dbClusterIdentifier

  • resource.rdsDbInstanceDetails.engine

  • resource.rdsDbUserDetails.user

  • resource.rdsDbInstanceDetails.tags.key

  • resource.rdsDbInstanceDetails.tags.value

  • service.runtimeDetails.process.executableSha256

  • service.runtimeDetails.process.name

  • service.runtimeDetails.process.name

  • resource.lambdaDetails.functionName

  • resource.lambdaDetails.functionArn

  • resource.lambdaDetails.tags.key

  • resource.lambdaDetails.tags.value

", + "CreateFilterRequest$FindingCriteria": "

Represents the criteria to be used in the filter for querying findings.

You can only use the following attributes to query findings:

  • accountId

  • id

  • region

  • severity

    To filter on the basis of severity, the API and CLI use the following input list for the FindingCriteria condition:

    • Low: [\"1\", \"2\", \"3\"]

    • Medium: [\"4\", \"5\", \"6\"]

    • High: [\"7\", \"8\", \"9\"]

    For more information, see Severity levels for GuardDuty findings.

  • type

  • updatedAt

    Type: ISO 8601 string format: YYYY-MM-DDTHH:MM:SS.SSSZ or YYYY-MM-DDTHH:MM:SSZ depending on whether the value contains milliseconds.

  • resource.accessKeyDetails.accessKeyId

  • resource.accessKeyDetails.principalId

  • resource.accessKeyDetails.userName

  • resource.accessKeyDetails.userType

  • resource.instanceDetails.iamInstanceProfile.id

  • resource.instanceDetails.imageId

  • resource.instanceDetails.instanceId

  • resource.instanceDetails.tags.key

  • resource.instanceDetails.tags.value

  • resource.instanceDetails.networkInterfaces.ipv6Addresses

  • resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress

  • resource.instanceDetails.networkInterfaces.publicDnsName

  • resource.instanceDetails.networkInterfaces.publicIp

  • resource.instanceDetails.networkInterfaces.securityGroups.groupId

  • resource.instanceDetails.networkInterfaces.securityGroups.groupName

  • resource.instanceDetails.networkInterfaces.subnetId

  • resource.instanceDetails.networkInterfaces.vpcId

  • resource.instanceDetails.outpostArn

  • resource.resourceType

  • resource.s3BucketDetails.publicAccess.effectivePermissions

  • resource.s3BucketDetails.name

  • resource.s3BucketDetails.tags.key

  • resource.s3BucketDetails.tags.value

  • resource.s3BucketDetails.type

  • service.action.actionType

  • service.action.awsApiCallAction.api

  • service.action.awsApiCallAction.callerType

  • service.action.awsApiCallAction.errorCode

  • service.action.awsApiCallAction.remoteIpDetails.city.cityName

  • service.action.awsApiCallAction.remoteIpDetails.country.countryName

  • service.action.awsApiCallAction.remoteIpDetails.ipAddressV4

  • service.action.awsApiCallAction.remoteIpDetails.organization.asn

  • service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg

  • service.action.awsApiCallAction.serviceName

  • service.action.dnsRequestAction.domain

  • service.action.dnsRequestAction.domainWithSuffix

  • service.action.networkConnectionAction.blocked

  • service.action.networkConnectionAction.connectionDirection

  • service.action.networkConnectionAction.localPortDetails.port

  • service.action.networkConnectionAction.protocol

  • service.action.networkConnectionAction.remoteIpDetails.city.cityName

  • service.action.networkConnectionAction.remoteIpDetails.country.countryName

  • service.action.networkConnectionAction.remoteIpDetails.ipAddressV4

  • service.action.networkConnectionAction.remoteIpDetails.organization.asn

  • service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg

  • service.action.networkConnectionAction.remotePortDetails.port

  • service.action.awsApiCallAction.remoteAccountDetails.affiliated

  • service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4

  • service.action.kubernetesApiCallAction.namespace

  • service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn

  • service.action.kubernetesApiCallAction.requestUri

  • service.action.kubernetesApiCallAction.statusCode

  • service.action.networkConnectionAction.localIpDetails.ipAddressV4

  • service.action.networkConnectionAction.protocol

  • service.action.awsApiCallAction.serviceName

  • service.action.awsApiCallAction.remoteAccountDetails.accountId

  • service.additionalInfo.threatListName

  • service.resourceRole

  • resource.eksClusterDetails.name

  • resource.kubernetesDetails.kubernetesWorkloadDetails.name

  • resource.kubernetesDetails.kubernetesWorkloadDetails.namespace

  • resource.kubernetesDetails.kubernetesUserDetails.username

  • resource.kubernetesDetails.kubernetesWorkloadDetails.containers.image

  • resource.kubernetesDetails.kubernetesWorkloadDetails.containers.imagePrefix

  • service.ebsVolumeScanDetails.scanId

  • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.name

  • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.severity

  • service.ebsVolumeScanDetails.scanDetections.threatDetectedByName.threatNames.filePaths.hash

  • resource.ecsClusterDetails.name

  • resource.ecsClusterDetails.taskDetails.containers.image

  • resource.ecsClusterDetails.taskDetails.definitionArn

  • resource.containerDetails.image

  • resource.rdsDbInstanceDetails.dbInstanceIdentifier

  • resource.rdsDbInstanceDetails.dbClusterIdentifier

  • resource.rdsDbInstanceDetails.engine

  • resource.rdsDbUserDetails.user

  • resource.rdsDbInstanceDetails.tags.key

  • resource.rdsDbInstanceDetails.tags.value

  • service.runtimeDetails.process.executableSha256

  • service.runtimeDetails.process.name

  • service.runtimeDetails.process.name

  • resource.lambdaDetails.functionName

  • resource.lambdaDetails.functionArn

  • resource.lambdaDetails.tags.key

  • resource.lambdaDetails.tags.value

", "GetFilterResponse$FindingCriteria": "

Represents the criteria to be used in the filter for querying findings.

", "GetFindingsStatisticsRequest$FindingCriteria": "

Represents the criteria that is used for querying findings.

", "ListFindingsRequest$FindingCriteria": "

Represents the criteria used for querying findings. Valid values include:

  • JSON field name

  • accountId

  • region

  • confidence

  • id

  • resource.accessKeyDetails.accessKeyId

  • resource.accessKeyDetails.principalId

  • resource.accessKeyDetails.userName

  • resource.accessKeyDetails.userType

  • resource.instanceDetails.iamInstanceProfile.id

  • resource.instanceDetails.imageId

  • resource.instanceDetails.instanceId

  • resource.instanceDetails.networkInterfaces.ipv6Addresses

  • resource.instanceDetails.networkInterfaces.privateIpAddresses.privateIpAddress

  • resource.instanceDetails.networkInterfaces.publicDnsName

  • resource.instanceDetails.networkInterfaces.publicIp

  • resource.instanceDetails.networkInterfaces.securityGroups.groupId

  • resource.instanceDetails.networkInterfaces.securityGroups.groupName

  • resource.instanceDetails.networkInterfaces.subnetId

  • resource.instanceDetails.networkInterfaces.vpcId

  • resource.instanceDetails.tags.key

  • resource.instanceDetails.tags.value

  • resource.resourceType

  • service.action.actionType

  • service.action.awsApiCallAction.api

  • service.action.awsApiCallAction.callerType

  • service.action.awsApiCallAction.remoteIpDetails.city.cityName

  • service.action.awsApiCallAction.remoteIpDetails.country.countryName

  • service.action.awsApiCallAction.remoteIpDetails.ipAddressV4

  • service.action.awsApiCallAction.remoteIpDetails.organization.asn

  • service.action.awsApiCallAction.remoteIpDetails.organization.asnOrg

  • service.action.awsApiCallAction.serviceName

  • service.action.dnsRequestAction.domain

  • service.action.dnsRequestAction.domainWithSuffix

  • service.action.networkConnectionAction.blocked

  • service.action.networkConnectionAction.connectionDirection

  • service.action.networkConnectionAction.localPortDetails.port

  • service.action.networkConnectionAction.protocol

  • service.action.networkConnectionAction.remoteIpDetails.country.countryName

  • service.action.networkConnectionAction.remoteIpDetails.ipAddressV4

  • service.action.networkConnectionAction.remoteIpDetails.organization.asn

  • service.action.networkConnectionAction.remoteIpDetails.organization.asnOrg

  • service.action.networkConnectionAction.remotePortDetails.port

  • service.additionalInfo.threatListName

  • service.archived

    When this attribute is set to 'true', only archived findings are listed. When it's set to 'false', only unarchived findings are listed. When this attribute is not set, all existing findings are listed.

  • service.resourceRole

  • severity

  • type

  • updatedAt

    Type: Timestamp in Unix Epoch millisecond format: 1486685375000

", @@ -1394,6 +1453,7 @@ "Groups": { "base": null, "refs": { + "ImpersonatedUser$Groups": "

The group to which the user name belongs.

", "KubernetesUserDetails$Groups": "

The groups that include the user who called the Kubernetes API.

" } }, @@ -1423,6 +1483,12 @@ "InstanceDetails$IamInstanceProfile": "

The profile information of the EC2 instance.

" } }, + "ImpersonatedUser": { + "base": "

Contains information about the impersonated user.

", + "refs": { + "KubernetesUserDetails$ImpersonatedUser": "

Information about the impersonated user.

" + } + }, "InstanceArn": { "base": null, "refs": { @@ -1575,6 +1641,24 @@ "Resource$KubernetesDetails": "

Details about the Kubernetes user and workload involved in a Kubernetes finding.

" } }, + "KubernetesPermissionCheckedDetails": { + "base": "

Information about the Kubernetes API for which you check if you have permission to call.

", + "refs": { + "Action$KubernetesPermissionCheckedDetails": "

Information whether the user has the permission to use a specific Kubernetes API.

" + } + }, + "KubernetesRoleBindingDetails": { + "base": "

Contains information about the role binding that grants the permission defined in a Kubernetes role.

", + "refs": { + "Action$KubernetesRoleBindingDetails": "

Information about the role binding that grants the permission defined in a Kubernetes role.

" + } + }, + "KubernetesRoleDetails": { + "base": "

Information about the Kubernetes role name and role type.

", + "refs": { + "Action$KubernetesRoleDetails": "

Information about the Kubernetes role name and role type.

" + } + }, "KubernetesUserDetails": { "base": "

Details about the Kubernetes user involved in a Kubernetes finding.

", "refs": { @@ -1897,7 +1981,7 @@ "base": null, "refs": { "GetMembersResponse$Members": "

A list of members.

", - "ListMembersResponse$Members": "

A list of members.

" + "ListMembersResponse$Members": "

A list of members.

The values for email and invitedAt are available only if the member accounts are added by invitation.

" } }, "MemoryRegionsList": { @@ -1959,6 +2043,18 @@ "CoverageFilterCondition$NotEquals": "

Represents a not equal condition that is applied to a single field while retrieving the coverage details.

" } }, + "ObservationTexts": { + "base": null, + "refs": { + "Observations$Text": "

The text that was unusual.

" + } + }, + "Observations": { + "base": "

Contains information about the observed behavior.

", + "refs": { + "AnomalyObject$Observations": "

The recorded value.

" + } + }, "OrderBy": { "base": null, "refs": { @@ -2200,6 +2296,18 @@ "InstanceDetails$ProductCodes": "

The product code of the EC2 instance.

" } }, + "ProfileSubtype": { + "base": null, + "refs": { + "AnomalyObject$ProfileSubtype": "

The frequency of the anomaly.

" + } + }, + "ProfileType": { + "base": null, + "refs": { + "AnomalyObject$ProfileType": "

The type of behavior of the profile.

" + } + }, "PublicAccess": { "base": "

Describes the public access policies that apply to the S3 bucket.

", "refs": { @@ -2541,6 +2649,9 @@ "Administrator$InvitedAt": "

The timestamp when the invitation was sent.

", "AffectedResources$key": null, "AffectedResources$value": null, + "AnomalyProfileFeatures$key": null, + "AnomalyProfiles$key": null, + "AnomalyUnusualBehaviorFeature$key": null, "AwsApiCallAction$Api": "

The Amazon Web Services API name.

", "AwsApiCallAction$CallerType": "

The Amazon Web Services API caller type.

", "AwsApiCallAction$ErrorCode": "

The error code of the failed Amazon Web Services API action.

", @@ -2548,6 +2659,7 @@ "AwsApiCallAction$ServiceName": "

The Amazon Web Services service name whose API was invoked.

", "BadRequestException$Message": "

The error message.

", "BadRequestException$Type": "

The error type.

", + "Behavior$key": null, "City$CityName": "

The city name of the remote IP address.

", "ConflictException$Message": "

The error message.

", "ConflictException$Type": "

The error type.

", @@ -2630,6 +2742,7 @@ "HostPath$Path": "

Path of the file or directory on the host that the volume maps to.

", "IamInstanceProfile$Arn": "

The profile ARN of the EC2 instance.

", "IamInstanceProfile$Id": "

The profile ID of the EC2 instance.

", + "ImpersonatedUser$Username": "

Information about the username that was being impersonated.

", "InstanceDetails$AvailabilityZone": "

The Availability Zone of the EC2 instance.

", "InstanceDetails$ImageDescription": "

The image description of the EC2 instance.

", "InstanceDetails$ImageId": "

The image ID of the EC2 instance.

", @@ -2651,12 +2764,28 @@ "KubernetesApiCallAction$Verb": "

The Kubernetes API request HTTP verb.

", "KubernetesApiCallAction$UserAgent": "

The user agent of the caller of the Kubernetes API.

", "KubernetesApiCallAction$Parameters": "

Parameters related to the Kubernetes API call action.

", + "KubernetesApiCallAction$Resource": "

The resource component in the Kubernetes API call action.

", + "KubernetesApiCallAction$Subresource": "

The name of the sub-resource in the Kubernetes API call action.

", + "KubernetesApiCallAction$Namespace": "

The name of the namespace where the Kubernetes API call action takes place.

", + "KubernetesApiCallAction$ResourceName": "

The name of the resource in the Kubernetes API call action.

", + "KubernetesPermissionCheckedDetails$Verb": "

The verb component of the Kubernetes API call. For example, when you check whether or not you have the permission to call the CreatePod API, the verb component will be Create.

", + "KubernetesPermissionCheckedDetails$Resource": "

The Kubernetes resource with which your Kubernetes API call will interact.

", + "KubernetesPermissionCheckedDetails$Namespace": "

The namespace where the Kubernetes API action will take place.

", + "KubernetesRoleBindingDetails$Kind": "

The kind of the role. For role binding, this value will be RoleBinding.

", + "KubernetesRoleBindingDetails$Name": "

The name of the RoleBinding.

", + "KubernetesRoleBindingDetails$Uid": "

The unique identifier of the role binding.

", + "KubernetesRoleBindingDetails$RoleRefName": "

The name of the role being referenced. This must match the name of the Role or ClusterRole that you want to bind to.

", + "KubernetesRoleBindingDetails$RoleRefKind": "

The type of the role being referenced. This could be either Role or ClusterRole.

", + "KubernetesRoleDetails$Kind": "

The kind of role. For this API, the value of kind will be Role.

", + "KubernetesRoleDetails$Name": "

The name of the Kubernetes role.

", + "KubernetesRoleDetails$Uid": "

The unique identifier of the Kubernetes role name.

", "KubernetesUserDetails$Username": "

The username of the user who called the Kubernetes API.

", "KubernetesUserDetails$Uid": "

The user ID of the user who called the Kubernetes API.

", "KubernetesWorkloadDetails$Name": "

Kubernetes workload name.

", "KubernetesWorkloadDetails$Type": "

Kubernetes workload type (e.g. Pod, Deployment, etc.).

", "KubernetesWorkloadDetails$Uid": "

Kubernetes workload ID.

", "KubernetesWorkloadDetails$Namespace": "

Kubernetes namespace that the workload is part of.

", + "KubernetesWorkloadDetails$ServiceAccountName": "

The service account name that is associated with a Kubernetes workload.

", "LambdaDetails$FunctionArn": "

Amazon Resource Name (ARN) of the Lambda function.

", "LambdaDetails$FunctionName": "

Name of the Lambda function.

", "LambdaDetails$Description": "

Description of the Lambda function.

", @@ -2713,6 +2842,7 @@ "NetworkInterface$SubnetId": "

The subnet ID of the EC2 instance.

", "NetworkInterface$VpcId": "

The VPC ID of the EC2 instance.

", "NotEquals$member": null, + "ObservationTexts$member": null, "Organization$Asn": "

The Autonomous System Number (ASN) of the internet provider of the remote IP address.

", "Organization$AsnOrg": "

The organization that registered this ASN.

", "Organization$Isp": "

The ISP information for the internet provider.

", diff --git a/models/apis/lambda/2015-03-31/api-2.json b/models/apis/lambda/2015-03-31/api-2.json index c512987824e..81475f4618b 100644 --- a/models/apis/lambda/2015-03-31/api-2.json +++ b/models/apis/lambda/2015-03-31/api-2.json @@ -3864,7 +3864,8 @@ "python3.10", "java17", "ruby3.2", - "python3.11" + "python3.11", + "nodejs20.x" ] }, "RuntimeVersionArn":{ diff --git a/models/apis/lambda/2015-03-31/docs-2.json b/models/apis/lambda/2015-03-31/docs-2.json index 2edeab0f288..0dd1c62b97f 100644 --- a/models/apis/lambda/2015-03-31/docs-2.json +++ b/models/apis/lambda/2015-03-31/docs-2.json @@ -35,8 +35,8 @@ "GetPolicy": "

Returns the resource-based IAM policy for a function, version, or alias.

", "GetProvisionedConcurrencyConfig": "

Retrieves the provisioned concurrency configuration for a function's alias or version.

", "GetRuntimeManagementConfig": "

Retrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and null is returned for the ARN. For more information, see Runtime updates.

", - "Invoke": "

Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. To invoke a function asynchronously, set InvocationType to Event.

For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.

When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Error handling and automatic retries in Lambda.

For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.

The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, quota errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if running the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).

For functions with a long timeout, your client might disconnect during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.

This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.

", - "InvokeAsync": "

For asynchronous function invocation, use Invoke.

Invokes a function asynchronously.

", + "Invoke": "

Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. theInvocationType is RequestResponse). To invoke a function asynchronously, set InvocationType to Event. Lambda passes the ClientContext object to your function for synchronous invocations only.

For synchronous invocation, details about the function response, including errors, are included in the response body and headers. For either invocation type, you can find more information in the execution log and trace.

When an error occurs, your function may be invoked multiple times. Retry behavior varies by error type, client, event source, and invocation type. For example, if you invoke a function asynchronously and it returns an error, Lambda executes the function up to two more times. For more information, see Error handling and automatic retries in Lambda.

For asynchronous invocation, Lambda adds events to a queue before sending them to your function. If your function does not have enough capacity to keep up with the queue, events may be lost. Occasionally, your function may receive the same event multiple times, even if no error occurs. To retain events that were not processed, configure your function with a dead-letter queue.

The status code in the API response doesn't reflect function errors. Error codes are reserved for errors that prevent your function from executing, such as permissions errors, quota errors, or issues with your function's code and configuration. For example, Lambda returns TooManyRequestsException if running the function would cause you to exceed a concurrency limit at either the account level (ConcurrentInvocationLimitExceeded) or function level (ReservedFunctionConcurrentInvocationLimitExceeded).

For functions with a long timeout, your client might disconnect during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.

This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.

", + "InvokeAsync": "

For asynchronous function invocation, use Invoke.

Invokes a function asynchronously.

If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not propagated to the function, even if X-Ray active tracing is turned on.

", "InvokeWithResponseStream": "

Configure your Lambda functions to stream response payloads back to clients. For more information, see Configuring a Lambda function to stream responses.

This operation requires permission for the lambda:InvokeFunction action. For details on how to set up permissions for cross-account invocations, see Granting function access to other accounts.

", "ListAliases": "

Returns a list of aliases for a Lambda function.

", "ListCodeSigningConfigs": "

Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.

", @@ -629,11 +629,11 @@ } }, "EphemeralStorage": { - "base": "

The size of the function's /tmp directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.

", + "base": "

The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).

", "refs": { - "CreateFunctionRequest$EphemeralStorage": "

The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.

", - "FunctionConfiguration$EphemeralStorage": "

The size of the function’s /tmp directory in MB. The default value is 512, but it can be any whole number between 512 and 10,240 MB.

", - "UpdateFunctionConfigurationRequest$EphemeralStorage": "

The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB.

" + "CreateFunctionRequest$EphemeralStorage": "

The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).

", + "FunctionConfiguration$EphemeralStorage": "

The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).

", + "UpdateFunctionConfigurationRequest$EphemeralStorage": "

The size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).

" } }, "EphemeralStorageSize": { diff --git a/models/apis/lambda/2015-03-31/endpoint-rule-set-1.json b/models/apis/lambda/2015-03-31/endpoint-rule-set-1.json index 3aaddb79d50..bb567a82fd0 100644 --- a/models/apis/lambda/2015-03-31/endpoint-rule-set-1.json +++ b/models/apis/lambda/2015-03-31/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,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": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,11 +212,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -231,14 +227,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -252,7 +250,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -272,7 +269,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -283,14 +279,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -301,9 +299,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/models/apis/models.lex.v2/2020-08-07/api-2.json b/models/apis/models.lex.v2/2020-08-07/api-2.json index c23be29c0b7..0565bba8cb7 100644 --- a/models/apis/models.lex.v2/2020-08-07/api-2.json +++ b/models/apis/models.lex.v2/2020-08-07/api-2.json @@ -2456,7 +2456,8 @@ ], "members":{ "enabled":{"shape":"Boolean"}, - "destination":{"shape":"AudioLogDestination"} + "destination":{"shape":"AudioLogDestination"}, + "selectiveLoggingEnabled":{"shape":"BoxedBoolean"} } }, "AudioLogSettingsList":{ @@ -8014,7 +8015,8 @@ ], "members":{ "enabled":{"shape":"Boolean"}, - "destination":{"shape":"TextLogDestination"} + "destination":{"shape":"TextLogDestination"}, + "selectiveLoggingEnabled":{"shape":"BoxedBoolean"} } }, "TextLogSettingsList":{ diff --git a/models/apis/models.lex.v2/2020-08-07/docs-2.json b/models/apis/models.lex.v2/2020-08-07/docs-2.json index ece9ae292e4..685169959a0 100644 --- a/models/apis/models.lex.v2/2020-08-07/docs-2.json +++ b/models/apis/models.lex.v2/2020-08-07/docs-2.json @@ -1358,6 +1358,7 @@ "AggregatedUtterancesSummary$containsDataFromDeletedResources": "

Aggregated utterance data may contain utterances from versions of your bot that have since been deleted. When the aggregated contains this kind of data, this field is set to true.

", "AllowedInputTypes$allowAudioInput": "

Indicates whether audio input is allowed.

", "AllowedInputTypes$allowDTMFInput": "

Indicates whether DTMF input is allowed.

", + "AudioLogSetting$selectiveLoggingEnabled": "

The option to enable selective conversation log capture for audio.

", "ConditionalSpecification$active": "

Determines whether a conditional branch is active. When active is false, the conditions are not evaluated.

", "DialogAction$suppressNextMessage": "

When true the next message for the intent is not used.

", "DialogCodeHookInvocationSetting$enableCodeHookInvocation": "

Indicates whether a Lambda function should be invoked for the dialog.

", @@ -1373,6 +1374,7 @@ "PromptSpecification$allowInterrupt": "

Indicates whether the user can interrupt a speech prompt from the bot.

", "ResponseSpecification$allowInterrupt": "

Indicates whether the user can interrupt a speech response from Amazon Lex.

", "StillWaitingResponseSpecification$allowInterrupt": "

Indicates that the user can interrupt the response by speaking while the message is being played.

", + "TextLogSetting$selectiveLoggingEnabled": "

The option to enable selective conversation log capture for text.

", "WaitAndContinueSpecification$active": "

Specifies whether the bot will wait for a user to respond. When this field is false, wait and continue responses for a slot aren't used. If the active field isn't specified, the default is true.

" } }, diff --git a/models/apis/models.lex.v2/2020-08-07/endpoint-rule-set-1.json b/models/apis/models.lex.v2/2020-08-07/endpoint-rule-set-1.json index 5fb6d567373..c56e387cca3 100644 --- a/models/apis/models.lex.v2/2020-08-07/endpoint-rule-set-1.json +++ b/models/apis/models.lex.v2/2020-08-07/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,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": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,11 +212,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -231,14 +227,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -252,7 +250,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -272,7 +269,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -283,14 +279,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -301,9 +299,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/models/apis/omics/2022-11-28/api-2.json b/models/apis/omics/2022-11-28/api-2.json index e577c349a61..3ad37179eda 100644 --- a/models/apis/omics/2022-11-28/api-2.json +++ b/models/apis/omics/2022-11-28/api-2.json @@ -5631,6 +5631,9 @@ "runId": { "shape": "RunId" }, + "runOutputUri": { + "shape": "RunOutputUri" + }, "startTime": { "shape": "RunTimestamp" }, @@ -5652,6 +5655,9 @@ "tags": { "shape": "TagMap" }, + "uuid": { + "shape": "RunUuid" + }, "workflowId": { "shape": "WorkflowId" }, @@ -8289,6 +8295,12 @@ "timestampFormat": "iso8601", "type": "timestamp" }, + "RunUuid": { + "max": 128, + "min": 1, + "pattern": "[\\p{L}||\\p{M}||\\p{Z}||\\p{S}||\\p{N}||\\p{P}]+", + "type": "string" + }, "S3Destination": { "pattern": "s3://([a-z0-9][a-z0-9-.]{1,61}[a-z0-9])/?((.{1,1024})/)?", "type": "string" @@ -8945,11 +8957,17 @@ "id": { "shape": "RunId" }, + "runOutputUri": { + "shape": "RunOutputUri" + }, "status": { "shape": "RunStatus" }, "tags": { "shape": "TagMap" + }, + "uuid": { + "shape": "RunUuid" } }, "type": "structure" diff --git a/models/apis/omics/2022-11-28/docs-2.json b/models/apis/omics/2022-11-28/docs-2.json index 037e17da8a7..23d993e245d 100644 --- a/models/apis/omics/2022-11-28/docs-2.json +++ b/models/apis/omics/2022-11-28/docs-2.json @@ -2381,7 +2381,9 @@ "base": null, "refs": { "GetRunResponse$outputUri": "

The run's output URI.

", - "StartRunRequest$outputUri": "

An output URI for the run.

" + "GetRunResponse$runOutputUri": "

The destination for workflow outputs.

", + "StartRunRequest$outputUri": "

An output URI for the run.

", + "StartRunResponse$runOutputUri": "

The destination for workflow outputs.

" } }, "RunParameters": { @@ -2461,6 +2463,13 @@ "RunListItem$stopTime": "

When the run stopped.

" } }, + "RunUuid": { + "base": null, + "refs": { + "GetRunResponse$uuid": "

The universally unique identifier for a run.

", + "StartRunResponse$uuid": "

The universally unique identifier for a run.

" + } + }, "S3Destination": { "base": null, "refs": { diff --git a/models/apis/rds/2014-10-31/docs-2.json b/models/apis/rds/2014-10-31/docs-2.json index 35ce45f6e99..786a26e89b5 100644 --- a/models/apis/rds/2014-10-31/docs-2.json +++ b/models/apis/rds/2014-10-31/docs-2.json @@ -550,7 +550,7 @@ "CopyDBSnapshotMessage$CopyTags": "

Specifies whether to copy all tags from the source DB snapshot to the target DB snapshot. By default, tags aren't copied.

", "CopyDBSnapshotMessage$CopyOptionGroup": "

Specifies whether to copy the DB option group associated with the source DB snapshot to the target Amazon Web Services account and associate with the target DB snapshot. The associated option group can be copied only with cross-account snapshot copy calls.

", "CreateBlueGreenDeploymentRequest$UpgradeTargetStorageConfig": "

Whether to upgrade the storage file system configuration on the green database. This option migrates the green DB instance from the older 32-bit file system to the preferred configuration. For more information, see Upgrading the storage file system for a DB instance.

", - "CreateCustomDBEngineVersionMessage$UseAwsProvidedLatestImage": "

Reserved for future use.

", + "CreateCustomDBEngineVersionMessage$UseAwsProvidedLatestImage": "

Specifies whether to use the latest service-provided Amazon Machine Image (AMI) for the CEV. If you specify UseAwsProvidedLatestImage, you can't also specify ImageId.

", "CreateDBClusterMessage$StorageEncrypted": "

Specifies whether the DB cluster is encrypted.

Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

", "CreateDBClusterMessage$EnableIAMDatabaseAuthentication": "

Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.

For more information, see IAM Database Authentication in the Amazon Aurora User Guide.

Valid for Cluster Type: Aurora DB clusters only

", "CreateDBClusterMessage$DeletionProtection": "

Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.

Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters

", @@ -5306,7 +5306,7 @@ "refs": { "CreateCustomDBEngineVersionMessage$DatabaseInstallationFilesS3Prefix": "

The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket name is 123456789012/cev1. If this setting isn't specified, no prefix is assumed.

", "CreateCustomDBEngineVersionMessage$ImageId": "

The ID of the Amazon Machine Image (AMI). For RDS Custom for SQL Server, an AMI ID is required to create a CEV. For RDS Custom for Oracle, the default is the most recent AMI available, but you can specify an AMI ID that was used in a different Oracle CEV. Find the AMIs used by your CEVs by calling the DescribeDBEngineVersions operation.

", - "CreateCustomDBEngineVersionMessage$SourceCustomDbEngineVersionIdentifier": "

Reserved for future use.

" + "CreateCustomDBEngineVersionMessage$SourceCustomDbEngineVersionIdentifier": "

The ARN of a CEV to use as a source for creating a new CEV. You can specify a different Amazon Machine Imagine (AMI) by using either Source or UseAwsProvidedLatestImage. You can't specify a different JSON manifest when you specify SourceCustomDbEngineVersionIdentifier.

" } }, "StringList": { diff --git a/models/apis/rds/2014-10-31/endpoint-tests-1.json b/models/apis/rds/2014-10-31/endpoint-tests-1.json index 8ac5ed557d2..8b0bc663a10 100644 --- a/models/apis/rds/2014-10-31/endpoint-tests-1.json +++ b/models/apis/rds/2014-10-31/endpoint-tests-1.json @@ -685,17 +685,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" diff --git a/models/apis/redshift-serverless/2021-04-21/api-2.json b/models/apis/redshift-serverless/2021-04-21/api-2.json index 817526658db..9da1cac4a8d 100644 --- a/models/apis/redshift-serverless/2021-04-21/api-2.json +++ b/models/apis/redshift-serverless/2021-04-21/api-2.json @@ -896,6 +896,7 @@ "baseCapacity":{"shape":"Integer"}, "configParameters":{"shape":"ConfigParameterList"}, "enhancedVpcRouting":{"shape":"Boolean"}, + "maxCapacity":{"shape":"Integer"}, "namespaceName":{"shape":"NamespaceName"}, "port":{"shape":"Integer"}, "publiclyAccessible":{"shape":"Boolean"}, @@ -1920,6 +1921,7 @@ "baseCapacity":{"shape":"Integer"}, "configParameters":{"shape":"ConfigParameterList"}, "enhancedVpcRouting":{"shape":"Boolean"}, + "maxCapacity":{"shape":"Integer"}, "port":{"shape":"Integer"}, "publiclyAccessible":{"shape":"Boolean"}, "securityGroupIds":{"shape":"SecurityGroupIdList"}, @@ -2022,6 +2024,7 @@ "customDomainName":{"shape":"CustomDomainName"}, "endpoint":{"shape":"Endpoint"}, "enhancedVpcRouting":{"shape":"Boolean"}, + "maxCapacity":{"shape":"Integer"}, "namespaceName":{"shape":"String"}, "patchVersion":{"shape":"String"}, "port":{"shape":"Integer"}, diff --git a/models/apis/redshift-serverless/2021-04-21/docs-2.json b/models/apis/redshift-serverless/2021-04-21/docs-2.json index 59abdb73518..08fe6f4e07c 100644 --- a/models/apis/redshift-serverless/2021-04-21/docs-2.json +++ b/models/apis/redshift-serverless/2021-04-21/docs-2.json @@ -466,6 +466,7 @@ "ConvertRecoveryPointToSnapshotRequest$retentionPeriod": "

How long to retain the snapshot.

", "CreateSnapshotRequest$retentionPeriod": "

How long to retain the created snapshot.

", "CreateWorkgroupRequest$baseCapacity": "

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

", + "CreateWorkgroupRequest$maxCapacity": "

The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.

", "CreateWorkgroupRequest$port": "

The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.

", "DeleteNamespaceRequest$finalSnapshotRetentionPeriod": "

How long to retain the final snapshot.

", "Endpoint$port": "

The port that Amazon Redshift Serverless listens on.

", @@ -475,8 +476,10 @@ "Snapshot$snapshotRetentionPeriod": "

The period of time, in days, of how long the snapshot is retained.

", "UpdateSnapshotRequest$retentionPeriod": "

The new retention period of the snapshot.

", "UpdateWorkgroupRequest$baseCapacity": "

The new base data warehouse capacity in Redshift Processing Units (RPUs).

", + "UpdateWorkgroupRequest$maxCapacity": "

The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.

", "UpdateWorkgroupRequest$port": "

The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.

", "Workgroup$baseCapacity": "

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

", + "Workgroup$maxCapacity": "

The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.

", "Workgroup$port": "

The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default is 5439.

" } }, diff --git a/models/apis/resiliencehub/2020-04-30/api-2.json b/models/apis/resiliencehub/2020-04-30/api-2.json index c184cf1f431..caffe5bcfe1 100644 --- a/models/apis/resiliencehub/2020-04-30/api-2.json +++ b/models/apis/resiliencehub/2020-04-30/api-2.json @@ -1030,6 +1030,7 @@ "name":{"shape":"String500"}, "prerequisite":{"shape":"String500"}, "recommendationId":{"shape":"Uuid"}, + "recommendationStatus":{"shape":"RecommendationStatus"}, "referenceId":{"shape":"SpecReferenceId"}, "type":{"shape":"AlarmType"} } @@ -2705,6 +2706,7 @@ "terraformSourceName":{"shape":"String255"} } }, + "Long":{"type":"long"}, "LongOptional":{ "type":"long", "box":true @@ -2859,6 +2861,15 @@ "type":"list", "member":{"shape":"RecommendationItem"} }, + "RecommendationStatus":{ + "type":"string", + "enum":[ + "Implemented", + "Inactive", + "NotImplemented", + "Excluded" + ] + }, "RecommendationTemplate":{ "type":"structure", "required":[ @@ -2975,10 +2986,20 @@ "score" ], "members":{ + "componentScore":{"shape":"ScoringComponentResiliencyScores"}, "disruptionScore":{"shape":"DisruptionResiliencyScore"}, "score":{"shape":"Double"} } }, + "ResiliencyScoreType":{ + "type":"string", + "enum":[ + "Compliance", + "Test", + "Alarm", + "Sop" + ] + }, "ResolveAppVersionResourcesRequest":{ "type":"structure", "required":[ @@ -3126,6 +3147,20 @@ "min":0, "pattern":"^((https://([^/]+)\\.s3((-|\\.)[^/]+)?\\.amazonaws\\.com(.cn)?)|(s3://([^/]+)))/\\S{1,2000}$" }, + "ScoringComponentResiliencyScore":{ + "type":"structure", + "members":{ + "excludedCount":{"shape":"Long"}, + "outstandingCount":{"shape":"Long"}, + "possibleScore":{"shape":"Double"}, + "score":{"shape":"Double"} + } + }, + "ScoringComponentResiliencyScores":{ + "type":"map", + "key":{"shape":"ResiliencyScoreType"}, + "value":{"shape":"ScoringComponentResiliencyScore"} + }, "Seconds":{ "type":"integer", "min":0 @@ -3155,6 +3190,7 @@ "name":{"shape":"DocumentName"}, "prerequisite":{"shape":"String500"}, "recommendationId":{"shape":"Uuid"}, + "recommendationStatus":{"shape":"RecommendationStatus"}, "referenceId":{"shape":"SpecReferenceId"}, "serviceType":{"shape":"SopServiceType"} } @@ -3306,6 +3342,7 @@ "name":{"shape":"DocumentName"}, "prerequisite":{"shape":"String500"}, "recommendationId":{"shape":"Uuid"}, + "recommendationStatus":{"shape":"RecommendationStatus"}, "referenceId":{"shape":"SpecReferenceId"}, "risk":{"shape":"TestRisk"}, "type":{"shape":"TestType"} diff --git a/models/apis/resiliencehub/2020-04-30/docs-2.json b/models/apis/resiliencehub/2020-04-30/docs-2.json index e9b107f060e..e25aba96728 100644 --- a/models/apis/resiliencehub/2020-04-30/docs-2.json +++ b/models/apis/resiliencehub/2020-04-30/docs-2.json @@ -837,7 +837,9 @@ "AppSummary$resiliencyScore": "

The current resiliency score for the application.

", "Cost$amount": "

The cost amount.

", "DisruptionResiliencyScore$value": null, - "ResiliencyScore$score": "

The outage score for a valid key.

" + "ResiliencyScore$score": "

The outage score for a valid key.

", + "ScoringComponentResiliencyScore$possibleScore": "

Maximum possible score that can be obtained for the scoring component. If the Possible score is 20 points, it indicates the maximum possible score you can achieve for your application when you run a new assessment after implementing all the Resilience Hub recommendations.

", + "ScoringComponentResiliencyScore$score": "

Resiliency score of your application.

" } }, "DriftStatus": { @@ -1067,7 +1069,7 @@ "IamRoleName": { "base": null, "refs": { - "PermissionModel$invokerRoleName": "

Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by Resilience Hub Service Principle to obtain a read-only access to your application resources while running an assessment.

You must have iam:passRole permission for this role while creating or updating the application.

" + "PermissionModel$invokerRoleName": "

Existing Amazon Web Services IAM role name in the primary Amazon Web Services account that will be assumed by Resilience Hub Service Principle to obtain a read-only access to your application resources while running an assessment.

  • You must have iam:passRole permission for this role while creating or updating the application.

  • Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters.

" } }, "ImportResourcesToDraftAppVersionRequest": { @@ -1291,6 +1293,13 @@ "UpdateAppVersionResourceRequest$logicalResourceId": "

Logical identifier of the resource.

" } }, + "Long": { + "base": null, + "refs": { + "ScoringComponentResiliencyScore$excludedCount": "

Number of recommendations that were excluded from the assessment.

For example, if the Excluded count for Resilience Hub recommended Amazon CloudWatch alarms is 7, it indicates that 7 Amazon CloudWatch alarms are excluded from the assessment.

", + "ScoringComponentResiliencyScore$outstandingCount": "

Number of issues that must be resolved to obtain the maximum possible score for the scoring component. For SOPs, alarms, and FIS experiments, these are the number of recommendations that must be implemented. For compliance, it is the number of Application Components that has breached the resiliency policy.

For example, if the Outstanding count for Resilience Hub recommended Amazon CloudWatch alarms is 5, it indicates that 5 Amazon CloudWatch alarms must be fixed to achieve the maximum possible score.

" + } + }, "LongOptional": { "base": null, "refs": { @@ -1462,6 +1471,14 @@ "TestRecommendation$items": "

The test recommendation items.

" } }, + "RecommendationStatus": { + "base": null, + "refs": { + "AlarmRecommendation$recommendationStatus": "

Status of the recommended Amazon CloudWatch alarm.

", + "SopRecommendation$recommendationStatus": "

Status of the recommended standard operating procedure.

", + "TestRecommendation$recommendationStatus": "

Status of the recommended test.

" + } + }, "RecommendationTemplate": { "base": "

Defines a recommendation template created with the CreateRecommendationTemplate action.

", "refs": { @@ -1544,6 +1561,12 @@ "AppComponentCompliance$resiliencyScore": "

The current resiliency score for the application.

" } }, + "ResiliencyScoreType": { + "base": null, + "refs": { + "ScoringComponentResiliencyScores$key": null + } + }, "ResolveAppVersionResourcesRequest": { "base": null, "refs": { @@ -1656,6 +1679,18 @@ "TerraformSource$s3StateFileUrl": "

The URL of the Terraform s3 state file you need to import.

" } }, + "ScoringComponentResiliencyScore": { + "base": "

Resiliency score of each scoring component. For more information about scoring component, see Calculating resiliency score.

", + "refs": { + "ScoringComponentResiliencyScores$value": null + } + }, + "ScoringComponentResiliencyScores": { + "base": null, + "refs": { + "ResiliencyScore$componentScore": "

The score generated by Resilience Hub for the scoring component after running an assessment.

For example, if the score is 25 points, it indicates the overall score of your application generated by Resilience Hub after running an assessment.

" + } + }, "Seconds": { "base": null, "refs": { @@ -1767,7 +1802,7 @@ "LogicalResourceId$identifier": "

Identifier of the resource.

", "LogicalResourceId$logicalStackName": "

The name of the CloudFormation stack this resource belongs to.

", "LogicalResourceId$terraformSourceName": "

The name of the Terraform S3 state file this resource belongs to.

", - "PhysicalResource$resourceType": "

Type of resource.

", + "PhysicalResource$resourceType": "

The type of resource.

", "PhysicalResourceId$identifier": "

Identifier of the physical resource.

", "ResolveAppVersionResourcesResponse$resolutionId": "

The identifier for a specific resolution.

", "ResourceError$logicalResourceId": "

Identifier of the logical resource.

", diff --git a/models/apis/sqs/2012-11-05/api-2.json b/models/apis/sqs/2012-11-05/api-2.json index d7e94cfe6a4..9df920838aa 100644 --- a/models/apis/sqs/2012-11-05/api-2.json +++ b/models/apis/sqs/2012-11-05/api-2.json @@ -2,14 +2,17 @@ "version":"2.0", "metadata":{ "apiVersion":"2012-11-05", + "awsQueryCompatible":{ + }, "endpointPrefix":"sqs", - "protocol":"query", + "jsonVersion":"1.0", + "protocol":"json", "serviceAbbreviation":"Amazon SQS", "serviceFullName":"Amazon Simple Queue Service", "serviceId":"SQS", "signatureVersion":"v4", - "uid":"sqs-2012-11-05", - "xmlNamespace":"http://queue.amazonaws.com/doc/2012-11-05/" + "targetPrefix":"AmazonSQS", + "uid":"sqs-2012-11-05" }, "operations":{ "AddPermission":{ @@ -20,7 +23,12 @@ }, "input":{"shape":"AddPermissionRequest"}, "errors":[ - {"shape":"OverLimit"} + {"shape":"OverLimit"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"}, + {"shape":"UnsupportedOperation"} ] }, "CancelMessageMoveTask":{ @@ -30,12 +38,12 @@ "requestUri":"/" }, "input":{"shape":"CancelMessageMoveTaskRequest"}, - "output":{ - "shape":"CancelMessageMoveTaskResult", - "resultWrapper":"CancelMessageMoveTaskResult" - }, + "output":{"shape":"CancelMessageMoveTaskResult"}, "errors":[ {"shape":"ResourceNotFoundException"}, + {"shape":"RequestThrottled"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"}, {"shape":"UnsupportedOperation"} ] }, @@ -48,7 +56,12 @@ "input":{"shape":"ChangeMessageVisibilityRequest"}, "errors":[ {"shape":"MessageNotInflight"}, - {"shape":"ReceiptHandleIsInvalid"} + {"shape":"ReceiptHandleIsInvalid"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"} ] }, "ChangeMessageVisibilityBatch":{ @@ -58,15 +71,17 @@ "requestUri":"/" }, "input":{"shape":"ChangeMessageVisibilityBatchRequest"}, - "output":{ - "shape":"ChangeMessageVisibilityBatchResult", - "resultWrapper":"ChangeMessageVisibilityBatchResult" - }, + "output":{"shape":"ChangeMessageVisibilityBatchResult"}, "errors":[ {"shape":"TooManyEntriesInBatchRequest"}, {"shape":"EmptyBatchRequest"}, {"shape":"BatchEntryIdsNotDistinct"}, - {"shape":"InvalidBatchEntryId"} + {"shape":"InvalidBatchEntryId"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"} ] }, "CreateQueue":{ @@ -76,13 +91,16 @@ "requestUri":"/" }, "input":{"shape":"CreateQueueRequest"}, - "output":{ - "shape":"CreateQueueResult", - "resultWrapper":"CreateQueueResult" - }, + "output":{"shape":"CreateQueueResult"}, "errors":[ {"shape":"QueueDeletedRecently"}, - {"shape":"QueueNameExists"} + {"shape":"QueueNameExists"}, + {"shape":"RequestThrottled"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidAttributeName"}, + {"shape":"InvalidAttributeValue"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidSecurity"} ] }, "DeleteMessage":{ @@ -94,7 +112,12 @@ "input":{"shape":"DeleteMessageRequest"}, "errors":[ {"shape":"InvalidIdFormat"}, - {"shape":"ReceiptHandleIsInvalid"} + {"shape":"ReceiptHandleIsInvalid"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidSecurity"}, + {"shape":"InvalidAddress"} ] }, "DeleteMessageBatch":{ @@ -104,15 +127,17 @@ "requestUri":"/" }, "input":{"shape":"DeleteMessageBatchRequest"}, - "output":{ - "shape":"DeleteMessageBatchResult", - "resultWrapper":"DeleteMessageBatchResult" - }, + "output":{"shape":"DeleteMessageBatchResult"}, "errors":[ {"shape":"TooManyEntriesInBatchRequest"}, {"shape":"EmptyBatchRequest"}, {"shape":"BatchEntryIdsNotDistinct"}, - {"shape":"InvalidBatchEntryId"} + {"shape":"InvalidBatchEntryId"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"} ] }, "DeleteQueue":{ @@ -121,7 +146,14 @@ "method":"POST", "requestUri":"/" }, - "input":{"shape":"DeleteQueueRequest"} + "input":{"shape":"DeleteQueueRequest"}, + "errors":[ + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidAddress"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidSecurity"} + ] }, "GetQueueAttributes":{ "name":"GetQueueAttributes", @@ -130,12 +162,14 @@ "requestUri":"/" }, "input":{"shape":"GetQueueAttributesRequest"}, - "output":{ - "shape":"GetQueueAttributesResult", - "resultWrapper":"GetQueueAttributesResult" - }, + "output":{"shape":"GetQueueAttributesResult"}, "errors":[ - {"shape":"InvalidAttributeName"} + {"shape":"InvalidAttributeName"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidSecurity"}, + {"shape":"InvalidAddress"} ] }, "GetQueueUrl":{ @@ -145,12 +179,13 @@ "requestUri":"/" }, "input":{"shape":"GetQueueUrlRequest"}, - "output":{ - "shape":"GetQueueUrlResult", - "resultWrapper":"GetQueueUrlResult" - }, + "output":{"shape":"GetQueueUrlResult"}, "errors":[ - {"shape":"QueueDoesNotExist"} + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"}, + {"shape":"UnsupportedOperation"} ] }, "ListDeadLetterSourceQueues":{ @@ -160,12 +195,13 @@ "requestUri":"/" }, "input":{"shape":"ListDeadLetterSourceQueuesRequest"}, - "output":{ - "shape":"ListDeadLetterSourceQueuesResult", - "resultWrapper":"ListDeadLetterSourceQueuesResult" - }, + "output":{"shape":"ListDeadLetterSourceQueuesResult"}, "errors":[ - {"shape":"QueueDoesNotExist"} + {"shape":"QueueDoesNotExist"}, + {"shape":"RequestThrottled"}, + {"shape":"InvalidSecurity"}, + {"shape":"InvalidAddress"}, + {"shape":"UnsupportedOperation"} ] }, "ListMessageMoveTasks":{ @@ -175,12 +211,12 @@ "requestUri":"/" }, "input":{"shape":"ListMessageMoveTasksRequest"}, - "output":{ - "shape":"ListMessageMoveTasksResult", - "resultWrapper":"ListMessageMoveTasksResult" - }, + "output":{"shape":"ListMessageMoveTasksResult"}, "errors":[ {"shape":"ResourceNotFoundException"}, + {"shape":"RequestThrottled"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"}, {"shape":"UnsupportedOperation"} ] }, @@ -191,10 +227,14 @@ "requestUri":"/" }, "input":{"shape":"ListQueueTagsRequest"}, - "output":{ - "shape":"ListQueueTagsResult", - "resultWrapper":"ListQueueTagsResult" - } + "output":{"shape":"ListQueueTagsResult"}, + "errors":[ + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"UnsupportedOperation"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"} + ] }, "ListQueues":{ "name":"ListQueues", @@ -203,10 +243,13 @@ "requestUri":"/" }, "input":{"shape":"ListQueuesRequest"}, - "output":{ - "shape":"ListQueuesResult", - "resultWrapper":"ListQueuesResult" - } + "output":{"shape":"ListQueuesResult"}, + "errors":[ + {"shape":"RequestThrottled"}, + {"shape":"InvalidSecurity"}, + {"shape":"InvalidAddress"}, + {"shape":"UnsupportedOperation"} + ] }, "PurgeQueue":{ "name":"PurgeQueue", @@ -217,7 +260,11 @@ "input":{"shape":"PurgeQueueRequest"}, "errors":[ {"shape":"QueueDoesNotExist"}, - {"shape":"PurgeQueueInProgress"} + {"shape":"PurgeQueueInProgress"}, + {"shape":"RequestThrottled"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"}, + {"shape":"UnsupportedOperation"} ] }, "ReceiveMessage":{ @@ -227,12 +274,21 @@ "requestUri":"/" }, "input":{"shape":"ReceiveMessageRequest"}, - "output":{ - "shape":"ReceiveMessageResult", - "resultWrapper":"ReceiveMessageResult" - }, + "output":{"shape":"ReceiveMessageResult"}, "errors":[ - {"shape":"OverLimit"} + {"shape":"UnsupportedOperation"}, + {"shape":"OverLimit"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidSecurity"}, + {"shape":"KmsDisabled"}, + {"shape":"KmsInvalidState"}, + {"shape":"KmsNotFound"}, + {"shape":"KmsOptInRequired"}, + {"shape":"KmsThrottled"}, + {"shape":"KmsAccessDenied"}, + {"shape":"KmsInvalidKeyUsage"}, + {"shape":"InvalidAddress"} ] }, "RemovePermission":{ @@ -241,7 +297,14 @@ "method":"POST", "requestUri":"/" }, - "input":{"shape":"RemovePermissionRequest"} + "input":{"shape":"RemovePermissionRequest"}, + "errors":[ + {"shape":"InvalidAddress"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidSecurity"}, + {"shape":"UnsupportedOperation"} + ] }, "SendMessage":{ "name":"SendMessage", @@ -250,13 +313,21 @@ "requestUri":"/" }, "input":{"shape":"SendMessageRequest"}, - "output":{ - "shape":"SendMessageResult", - "resultWrapper":"SendMessageResult" - }, + "output":{"shape":"SendMessageResult"}, "errors":[ {"shape":"InvalidMessageContents"}, - {"shape":"UnsupportedOperation"} + {"shape":"UnsupportedOperation"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidSecurity"}, + {"shape":"KmsDisabled"}, + {"shape":"KmsInvalidState"}, + {"shape":"KmsNotFound"}, + {"shape":"KmsOptInRequired"}, + {"shape":"KmsThrottled"}, + {"shape":"KmsAccessDenied"}, + {"shape":"KmsInvalidKeyUsage"}, + {"shape":"InvalidAddress"} ] }, "SendMessageBatch":{ @@ -266,17 +337,25 @@ "requestUri":"/" }, "input":{"shape":"SendMessageBatchRequest"}, - "output":{ - "shape":"SendMessageBatchResult", - "resultWrapper":"SendMessageBatchResult" - }, + "output":{"shape":"SendMessageBatchResult"}, "errors":[ {"shape":"TooManyEntriesInBatchRequest"}, {"shape":"EmptyBatchRequest"}, {"shape":"BatchEntryIdsNotDistinct"}, {"shape":"BatchRequestTooLong"}, {"shape":"InvalidBatchEntryId"}, - {"shape":"UnsupportedOperation"} + {"shape":"UnsupportedOperation"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidSecurity"}, + {"shape":"KmsDisabled"}, + {"shape":"KmsInvalidState"}, + {"shape":"KmsNotFound"}, + {"shape":"KmsOptInRequired"}, + {"shape":"KmsThrottled"}, + {"shape":"KmsAccessDenied"}, + {"shape":"KmsInvalidKeyUsage"}, + {"shape":"InvalidAddress"} ] }, "SetQueueAttributes":{ @@ -287,7 +366,14 @@ }, "input":{"shape":"SetQueueAttributesRequest"}, "errors":[ - {"shape":"InvalidAttributeName"} + {"shape":"InvalidAttributeName"}, + {"shape":"InvalidAttributeValue"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"UnsupportedOperation"}, + {"shape":"OverLimit"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"} ] }, "StartMessageMoveTask":{ @@ -297,12 +383,12 @@ "requestUri":"/" }, "input":{"shape":"StartMessageMoveTaskRequest"}, - "output":{ - "shape":"StartMessageMoveTaskResult", - "resultWrapper":"StartMessageMoveTaskResult" - }, + "output":{"shape":"StartMessageMoveTaskResult"}, "errors":[ {"shape":"ResourceNotFoundException"}, + {"shape":"RequestThrottled"}, + {"shape":"InvalidAddress"}, + {"shape":"InvalidSecurity"}, {"shape":"UnsupportedOperation"} ] }, @@ -312,7 +398,14 @@ "method":"POST", "requestUri":"/" }, - "input":{"shape":"TagQueueRequest"} + "input":{"shape":"TagQueueRequest"}, + "errors":[ + {"shape":"InvalidAddress"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidSecurity"}, + {"shape":"UnsupportedOperation"} + ] }, "UntagQueue":{ "name":"UntagQueue", @@ -320,24 +413,25 @@ "method":"POST", "requestUri":"/" }, - "input":{"shape":"UntagQueueRequest"} + "input":{"shape":"UntagQueueRequest"}, + "errors":[ + {"shape":"InvalidAddress"}, + {"shape":"RequestThrottled"}, + {"shape":"QueueDoesNotExist"}, + {"shape":"InvalidSecurity"}, + {"shape":"UnsupportedOperation"} + ] } }, "shapes":{ "AWSAccountIdList":{ "type":"list", - "member":{ - "shape":"String", - "locationName":"AWSAccountId" - }, + "member":{"shape":"String"}, "flattened":true }, "ActionNameList":{ "type":"list", - "member":{ - "shape":"String", - "locationName":"ActionName" - }, + "member":{"shape":"String"}, "flattened":true }, "AddPermissionRequest":{ @@ -357,31 +451,20 @@ }, "AttributeNameList":{ "type":"list", - "member":{ - "shape":"QueueAttributeName", - "locationName":"AttributeName" - }, + "member":{"shape":"QueueAttributeName"}, "flattened":true }, "BatchEntryIdsNotDistinct":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.BatchEntryIdsNotDistinct", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, "BatchRequestTooLong":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.BatchRequestTooLong", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, @@ -401,19 +484,13 @@ }, "BatchResultErrorEntryList":{ "type":"list", - "member":{ - "shape":"BatchResultErrorEntry", - "locationName":"BatchResultErrorEntry" - }, + "member":{"shape":"BatchResultErrorEntry"}, "flattened":true }, "Binary":{"type":"blob"}, "BinaryList":{ "type":"list", - "member":{ - "shape":"Binary", - "locationName":"BinaryListValue" - } + "member":{"shape":"Binary"} }, "Boolean":{"type":"boolean"}, "BoxedInteger":{ @@ -453,15 +530,12 @@ "members":{ "Id":{"shape":"String"}, "ReceiptHandle":{"shape":"String"}, - "VisibilityTimeout":{"shape":"Integer"} + "VisibilityTimeout":{"shape":"NullableInteger"} } }, "ChangeMessageVisibilityBatchRequestEntryList":{ "type":"list", - "member":{ - "shape":"ChangeMessageVisibilityBatchRequestEntry", - "locationName":"ChangeMessageVisibilityBatchRequestEntry" - }, + "member":{"shape":"ChangeMessageVisibilityBatchRequestEntry"}, "flattened":true }, "ChangeMessageVisibilityBatchResult":{ @@ -484,10 +558,7 @@ }, "ChangeMessageVisibilityBatchResultEntryList":{ "type":"list", - "member":{ - "shape":"ChangeMessageVisibilityBatchResultEntry", - "locationName":"ChangeMessageVisibilityBatchResultEntry" - }, + "member":{"shape":"ChangeMessageVisibilityBatchResultEntry"}, "flattened":true }, "ChangeMessageVisibilityRequest":{ @@ -500,7 +571,7 @@ "members":{ "QueueUrl":{"shape":"String"}, "ReceiptHandle":{"shape":"String"}, - "VisibilityTimeout":{"shape":"Integer"} + "VisibilityTimeout":{"shape":"NullableInteger"} } }, "CreateQueueRequest":{ @@ -508,14 +579,8 @@ "required":["QueueName"], "members":{ "QueueName":{"shape":"String"}, - "Attributes":{ - "shape":"QueueAttributeMap", - "locationName":"Attribute" - }, - "tags":{ - "shape":"TagMap", - "locationName":"Tag" - } + "Attributes":{"shape":"QueueAttributeMap"}, + "tags":{"shape":"TagMap"} } }, "CreateQueueResult":{ @@ -548,10 +613,7 @@ }, "DeleteMessageBatchRequestEntryList":{ "type":"list", - "member":{ - "shape":"DeleteMessageBatchRequestEntry", - "locationName":"DeleteMessageBatchRequestEntry" - }, + "member":{"shape":"DeleteMessageBatchRequestEntry"}, "flattened":true }, "DeleteMessageBatchResult":{ @@ -574,10 +636,7 @@ }, "DeleteMessageBatchResultEntryList":{ "type":"list", - "member":{ - "shape":"DeleteMessageBatchResultEntry", - "locationName":"DeleteMessageBatchResultEntry" - }, + "member":{"shape":"DeleteMessageBatchResultEntry"}, "flattened":true }, "DeleteMessageRequest":{ @@ -601,14 +660,11 @@ "EmptyBatchRequest":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.EmptyBatchRequest", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, + "ExceptionMessage":{"type":"string"}, "GetQueueAttributesRequest":{ "type":"structure", "required":["QueueUrl"], @@ -620,10 +676,7 @@ "GetQueueAttributesResult":{ "type":"structure", "members":{ - "Attributes":{ - "shape":"QueueAttributeMap", - "locationName":"Attribute" - } + "Attributes":{"shape":"QueueAttributeMap"} } }, "GetQueueUrlRequest":{ @@ -640,21 +693,31 @@ "QueueUrl":{"shape":"String"} } }, - "Integer":{"type":"integer"}, + "InvalidAddress":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, "InvalidAttributeName":{ "type":"structure", "members":{ + "message":{"shape":"ExceptionMessage"} }, "exception":true }, - "InvalidBatchEntryId":{ + "InvalidAttributeValue":{ "type":"structure", "members":{ + "message":{"shape":"ExceptionMessage"} }, - "error":{ - "code":"AWS.SimpleQueueService.InvalidBatchEntryId", - "httpStatusCode":400, - "senderFault":true + "exception":true + }, + "InvalidBatchEntryId":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} }, "exception":true }, @@ -662,11 +725,70 @@ "type":"structure", "members":{ }, + "deprecated":true, + "deprecatedMessage":"exception has been included in ReceiptHandleIsInvalid", "exception":true }, "InvalidMessageContents":{ "type":"structure", "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "InvalidSecurity":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "KmsAccessDenied":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "KmsDisabled":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "KmsInvalidKeyUsage":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "KmsInvalidState":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "KmsNotFound":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "KmsOptInRequired":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "KmsThrottled":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} }, "exception":true }, @@ -692,35 +814,35 @@ "required":["SourceArn"], "members":{ "SourceArn":{"shape":"String"}, - "MaxResults":{"shape":"Integer"} + "MaxResults":{"shape":"NullableInteger"} } }, "ListMessageMoveTasksResult":{ "type":"structure", "members":{ - "Results":{"shape":"ListMessageMoveTasksResultEntryList"} + "Results":{ + "shape":"ListMessageMoveTasksResultEntryList", + "flattened":true + } } }, "ListMessageMoveTasksResultEntry":{ "type":"structure", "members":{ "TaskHandle":{"shape":"String"}, - "Status":{"shape":"String"}, + "Status":{"shape":"TaskStatus"}, "SourceArn":{"shape":"String"}, "DestinationArn":{"shape":"String"}, - "MaxNumberOfMessagesPerSecond":{"shape":"Integer"}, + "MaxNumberOfMessagesPerSecond":{"shape":"NullableInteger"}, "ApproximateNumberOfMessagesMoved":{"shape":"Long"}, - "ApproximateNumberOfMessagesToMove":{"shape":"Long"}, + "ApproximateNumberOfMessagesToMove":{"shape":"NullableLong"}, "FailureReason":{"shape":"String"}, "StartedTimestamp":{"shape":"Long"} } }, "ListMessageMoveTasksResultEntryList":{ "type":"list", - "member":{ - "shape":"ListMessageMoveTasksResultEntry", - "locationName":"ListMessageMoveTasksResultEntry" - }, + "member":{"shape":"ListMessageMoveTasksResultEntry"}, "flattened":true }, "ListQueueTagsRequest":{ @@ -733,10 +855,7 @@ "ListQueueTagsResult":{ "type":"structure", "members":{ - "Tags":{ - "shape":"TagMap", - "locationName":"Tag" - } + "Tags":{"shape":"TagMap"} } }, "ListQueuesRequest":{ @@ -762,24 +881,15 @@ "ReceiptHandle":{"shape":"String"}, "MD5OfBody":{"shape":"String"}, "Body":{"shape":"String"}, - "Attributes":{ - "shape":"MessageSystemAttributeMap", - "locationName":"Attribute" - }, + "Attributes":{"shape":"MessageSystemAttributeMap"}, "MD5OfMessageAttributes":{"shape":"String"}, - "MessageAttributes":{ - "shape":"MessageBodyAttributeMap", - "locationName":"MessageAttribute" - } + "MessageAttributes":{"shape":"MessageBodyAttributeMap"} } }, "MessageAttributeName":{"type":"string"}, "MessageAttributeNameList":{ "type":"list", - "member":{ - "shape":"MessageAttributeName", - "locationName":"MessageAttributeName" - }, + "member":{"shape":"MessageAttributeName"}, "flattened":true }, "MessageAttributeValue":{ @@ -790,72 +900,43 @@ "BinaryValue":{"shape":"Binary"}, "StringListValues":{ "shape":"StringList", - "flattened":true, - "locationName":"StringListValue" + "flattened":true }, "BinaryListValues":{ "shape":"BinaryList", - "flattened":true, - "locationName":"BinaryListValue" + "flattened":true }, "DataType":{"shape":"String"} } }, "MessageBodyAttributeMap":{ "type":"map", - "key":{ - "shape":"String", - "locationName":"Name" - }, - "value":{ - "shape":"MessageAttributeValue", - "locationName":"Value" - }, + "key":{"shape":"String"}, + "value":{"shape":"MessageAttributeValue"}, "flattened":true }, "MessageBodySystemAttributeMap":{ "type":"map", - "key":{ - "shape":"MessageSystemAttributeNameForSends", - "locationName":"Name" - }, - "value":{ - "shape":"MessageSystemAttributeValue", - "locationName":"Value" - }, + "key":{"shape":"MessageSystemAttributeNameForSends"}, + "value":{"shape":"MessageSystemAttributeValue"}, "flattened":true }, "MessageList":{ "type":"list", - "member":{ - "shape":"Message", - "locationName":"Message" - }, + "member":{"shape":"Message"}, "flattened":true }, "MessageNotInflight":{ "type":"structure", "members":{ }, - "error":{ - "code":"AWS.SimpleQueueService.MessageNotInflight", - "httpStatusCode":400, - "senderFault":true - }, "exception":true }, "MessageSystemAttributeMap":{ "type":"map", - "key":{ - "shape":"MessageSystemAttributeName", - "locationName":"Name" - }, - "value":{ - "shape":"String", - "locationName":"Value" - }, - "flattened":true, - "locationName":"Attribute" + "key":{"shape":"MessageSystemAttributeName"}, + "value":{"shape":"String"}, + "flattened":true }, "MessageSystemAttributeName":{ "type":"string", @@ -883,36 +964,28 @@ "BinaryValue":{"shape":"Binary"}, "StringListValues":{ "shape":"StringList", - "flattened":true, - "locationName":"StringListValue" + "flattened":true }, "BinaryListValues":{ "shape":"BinaryList", - "flattened":true, - "locationName":"BinaryListValue" + "flattened":true }, "DataType":{"shape":"String"} } }, + "NullableInteger":{"type":"integer"}, + "NullableLong":{"type":"long"}, "OverLimit":{ "type":"structure", "members":{ - }, - "error":{ - "code":"OverLimit", - "httpStatusCode":403, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, "PurgeQueueInProgress":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.PurgeQueueInProgress", - "httpStatusCode":403, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, @@ -925,16 +998,9 @@ }, "QueueAttributeMap":{ "type":"map", - "key":{ - "shape":"QueueAttributeName", - "locationName":"Name" - }, - "value":{ - "shape":"String", - "locationName":"Value" - }, - "flattened":true, - "locationName":"Attribute" + "key":{"shape":"QueueAttributeName"}, + "value":{"shape":"String"}, + "flattened":true }, "QueueAttributeName":{ "type":"string", @@ -966,47 +1032,33 @@ "QueueDeletedRecently":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.QueueDeletedRecently", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, "QueueDoesNotExist":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.NonExistentQueue", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, "QueueNameExists":{ "type":"structure", "members":{ - }, - "error":{ - "code":"QueueAlreadyExists", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, "QueueUrlList":{ "type":"list", - "member":{ - "shape":"String", - "locationName":"QueueUrl" - }, + "member":{"shape":"String"}, "flattened":true }, "ReceiptHandleIsInvalid":{ "type":"structure", "members":{ + "message":{"shape":"ExceptionMessage"} }, "exception":true }, @@ -1017,9 +1069,9 @@ "QueueUrl":{"shape":"String"}, "AttributeNames":{"shape":"AttributeNameList"}, "MessageAttributeNames":{"shape":"MessageAttributeNameList"}, - "MaxNumberOfMessages":{"shape":"Integer"}, - "VisibilityTimeout":{"shape":"Integer"}, - "WaitTimeSeconds":{"shape":"Integer"}, + "MaxNumberOfMessages":{"shape":"NullableInteger"}, + "VisibilityTimeout":{"shape":"NullableInteger"}, + "WaitTimeSeconds":{"shape":"NullableInteger"}, "ReceiveRequestAttemptId":{"shape":"String"} } }, @@ -1040,14 +1092,17 @@ "Label":{"shape":"String"} } }, - "ResourceNotFoundException":{ + "RequestThrottled":{ "type":"structure", "members":{ + "message":{"shape":"ExceptionMessage"} }, - "error":{ - "code":"ResourceNotFoundException", - "httpStatusCode":404, - "senderFault":true + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} }, "exception":true }, @@ -1071,25 +1126,16 @@ "members":{ "Id":{"shape":"String"}, "MessageBody":{"shape":"String"}, - "DelaySeconds":{"shape":"Integer"}, - "MessageAttributes":{ - "shape":"MessageBodyAttributeMap", - "locationName":"MessageAttribute" - }, - "MessageSystemAttributes":{ - "shape":"MessageBodySystemAttributeMap", - "locationName":"MessageSystemAttribute" - }, + "DelaySeconds":{"shape":"NullableInteger"}, + "MessageAttributes":{"shape":"MessageBodyAttributeMap"}, + "MessageSystemAttributes":{"shape":"MessageBodySystemAttributeMap"}, "MessageDeduplicationId":{"shape":"String"}, "MessageGroupId":{"shape":"String"} } }, "SendMessageBatchRequestEntryList":{ "type":"list", - "member":{ - "shape":"SendMessageBatchRequestEntry", - "locationName":"SendMessageBatchRequestEntry" - }, + "member":{"shape":"SendMessageBatchRequestEntry"}, "flattened":true }, "SendMessageBatchResult":{ @@ -1121,10 +1167,7 @@ }, "SendMessageBatchResultEntryList":{ "type":"list", - "member":{ - "shape":"SendMessageBatchResultEntry", - "locationName":"SendMessageBatchResultEntry" - }, + "member":{"shape":"SendMessageBatchResultEntry"}, "flattened":true }, "SendMessageRequest":{ @@ -1136,15 +1179,9 @@ "members":{ "QueueUrl":{"shape":"String"}, "MessageBody":{"shape":"String"}, - "DelaySeconds":{"shape":"Integer"}, - "MessageAttributes":{ - "shape":"MessageBodyAttributeMap", - "locationName":"MessageAttribute" - }, - "MessageSystemAttributes":{ - "shape":"MessageBodySystemAttributeMap", - "locationName":"MessageSystemAttribute" - }, + "DelaySeconds":{"shape":"NullableInteger"}, + "MessageAttributes":{"shape":"MessageBodyAttributeMap"}, + "MessageSystemAttributes":{"shape":"MessageBodySystemAttributeMap"}, "MessageDeduplicationId":{"shape":"String"}, "MessageGroupId":{"shape":"String"} } @@ -1167,10 +1204,7 @@ ], "members":{ "QueueUrl":{"shape":"String"}, - "Attributes":{ - "shape":"QueueAttributeMap", - "locationName":"Attribute" - } + "Attributes":{"shape":"QueueAttributeMap"} } }, "StartMessageMoveTaskRequest":{ @@ -1179,7 +1213,7 @@ "members":{ "SourceArn":{"shape":"String"}, "DestinationArn":{"shape":"String"}, - "MaxNumberOfMessagesPerSecond":{"shape":"Integer"} + "MaxNumberOfMessagesPerSecond":{"shape":"NullableInteger"} } }, "StartMessageMoveTaskResult":{ @@ -1191,32 +1225,19 @@ "String":{"type":"string"}, "StringList":{ "type":"list", - "member":{ - "shape":"String", - "locationName":"StringListValue" - } + "member":{"shape":"String"} }, "TagKey":{"type":"string"}, "TagKeyList":{ "type":"list", - "member":{ - "shape":"TagKey", - "locationName":"TagKey" - }, + "member":{"shape":"TagKey"}, "flattened":true }, "TagMap":{ "type":"map", - "key":{ - "shape":"TagKey", - "locationName":"Key" - }, - "value":{ - "shape":"TagValue", - "locationName":"Value" - }, - "flattened":true, - "locationName":"Tag" + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "flattened":true }, "TagQueueRequest":{ "type":"structure", @@ -1230,26 +1251,28 @@ } }, "TagValue":{"type":"string"}, + "TaskStatus":{ + "type":"string", + "enum":[ + "RUNNING", + "FAILED", + "CANCELLING", + "CANCELLED", + "COMPLETED" + ] + }, "Token":{"type":"string"}, "TooManyEntriesInBatchRequest":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.TooManyEntriesInBatchRequest", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, "UnsupportedOperation":{ "type":"structure", "members":{ - }, - "error":{ - "code":"AWS.SimpleQueueService.UnsupportedOperation", - "httpStatusCode":400, - "senderFault":true + "message":{"shape":"ExceptionMessage"} }, "exception":true }, diff --git a/models/apis/sqs/2012-11-05/docs-2.json b/models/apis/sqs/2012-11-05/docs-2.json index 6de88964329..64cfd6a491f 100644 --- a/models/apis/sqs/2012-11-05/docs-2.json +++ b/models/apis/sqs/2012-11-05/docs-2.json @@ -211,6 +211,37 @@ "refs": { } }, + "ExceptionMessage": { + "base": null, + "refs": { + "BatchEntryIdsNotDistinct$message": null, + "BatchRequestTooLong$message": null, + "EmptyBatchRequest$message": null, + "InvalidAddress$message": null, + "InvalidAttributeName$message": null, + "InvalidAttributeValue$message": null, + "InvalidBatchEntryId$message": null, + "InvalidMessageContents$message": null, + "InvalidSecurity$message": null, + "KmsAccessDenied$message": null, + "KmsDisabled$message": null, + "KmsInvalidKeyUsage$message": null, + "KmsInvalidState$message": null, + "KmsNotFound$message": null, + "KmsOptInRequired$message": null, + "KmsThrottled$message": null, + "OverLimit$message": null, + "PurgeQueueInProgress$message": null, + "QueueDeletedRecently$message": null, + "QueueDoesNotExist$message": null, + "QueueNameExists$message": null, + "ReceiptHandleIsInvalid$message": null, + "RequestThrottled$message": null, + "ResourceNotFoundException$message": null, + "TooManyEntriesInBatchRequest$message": null, + "UnsupportedOperation$message": null + } + }, "GetQueueAttributesRequest": { "base": "

", "refs": { @@ -231,19 +262,9 @@ "refs": { } }, - "Integer": { - "base": null, + "InvalidAddress": { + "base": "

The accountId is invalid.

", "refs": { - "ChangeMessageVisibilityBatchRequestEntry$VisibilityTimeout": "

The new value (in seconds) for the message's visibility timeout.

", - "ChangeMessageVisibilityRequest$VisibilityTimeout": "

The new value for the message's visibility timeout (in seconds). Values range: 0 to 43200. Maximum: 12 hours.

", - "ListMessageMoveTasksRequest$MaxResults": "

The maximum number of results to include in the response. The default is 1, which provides the most recent message movement task. The upper limit is 10.

", - "ListMessageMoveTasksResultEntry$MaxNumberOfMessagesPerSecond": "

The number of messages to be moved per second (the message movement rate), if it has been specified in the StartMessageMoveTask request. If a MaxNumberOfMessagesPerSecond has not been specified in the StartMessageMoveTask request, this field value will be NULL.

", - "ReceiveMessageRequest$MaxNumberOfMessages": "

The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.

", - "ReceiveMessageRequest$VisibilityTimeout": "

The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request.

", - "ReceiveMessageRequest$WaitTimeSeconds": "

The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages.

To avoid HTTP errors, ensure that the HTTP response timeout for ReceiveMessage requests is longer than the WaitTimeSeconds parameter. For example, with the Java SDK, you can set HTTP transport settings using the NettyNioAsyncHttpClient for asynchronous clients, or the ApacheHttpClient for synchronous clients.

", - "SendMessageBatchRequestEntry$DelaySeconds": "

The length of time, in seconds, for which a specific message is delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue is applied.

When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level.

", - "SendMessageRequest$DelaySeconds": "

The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue applies.

When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level.

", - "StartMessageMoveTaskRequest$MaxNumberOfMessagesPerSecond": "

The number of messages to be moved per second (the message movement rate). You can use this field to define a fixed message movement rate. The maximum value for messages per second is 500. If this field is left blank, the system will optimize the rate based on the queue message backlog size, which may vary throughout the duration of the message movement task.

" } }, "InvalidAttributeName": { @@ -251,6 +272,11 @@ "refs": { } }, + "InvalidAttributeValue": { + "base": "

A queue attribute value is invalid.

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

The Id of a batch entry in a batch request doesn't abide by the specification.

", "refs": { @@ -266,6 +292,46 @@ "refs": { } }, + "InvalidSecurity": { + "base": "

When the request to a queue is not HTTPS and SigV4.

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

The caller doesn't have the required KMS access.

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

The request was denied due to request throttling.

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

The request was rejected for one of the following reasons:

  • The KeyUsage value of the KMS key is incompatible with the API operation.

  • The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the KMS key (KeySpec).

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

The request was rejected because the state of the specified resource is not valid for this request.

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

The request was rejected because the specified entity or resource could not be found.

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

The request was rejected because the specified key policy isn't syntactically or semantically correct.

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

Amazon Web Services KMS throttles requests for the following conditions.

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

", "refs": { @@ -323,7 +389,6 @@ "refs": { "CancelMessageMoveTaskResult$ApproximateNumberOfMessagesMoved": "

The approximate number of messages already moved to the destination queue.

", "ListMessageMoveTasksResultEntry$ApproximateNumberOfMessagesMoved": "

The approximate number of messages already moved to the destination queue.

", - "ListMessageMoveTasksResultEntry$ApproximateNumberOfMessagesToMove": "

The number of messages to be moved from the source queue. This number is obtained at the time of starting the message movement task.

", "ListMessageMoveTasksResultEntry$StartedTimestamp": "

The timestamp of starting the message movement task.

" } }, @@ -401,6 +466,27 @@ "MessageBodySystemAttributeMap$value": null } }, + "NullableInteger": { + "base": null, + "refs": { + "ChangeMessageVisibilityBatchRequestEntry$VisibilityTimeout": "

The new value (in seconds) for the message's visibility timeout.

", + "ChangeMessageVisibilityRequest$VisibilityTimeout": "

The new value for the message's visibility timeout (in seconds). Values range: 0 to 43200. Maximum: 12 hours.

", + "ListMessageMoveTasksRequest$MaxResults": "

The maximum number of results to include in the response. The default is 1, which provides the most recent message movement task. The upper limit is 10.

", + "ListMessageMoveTasksResultEntry$MaxNumberOfMessagesPerSecond": "

The number of messages to be moved per second (the message movement rate), if it has been specified in the StartMessageMoveTask request. If a MaxNumberOfMessagesPerSecond has not been specified in the StartMessageMoveTask request, this field value will be NULL.

", + "ReceiveMessageRequest$MaxNumberOfMessages": "

The maximum number of messages to return. Amazon SQS never returns more messages than this value (however, fewer messages might be returned). Valid values: 1 to 10. Default: 1.

", + "ReceiveMessageRequest$VisibilityTimeout": "

The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request.

", + "ReceiveMessageRequest$WaitTimeSeconds": "

The duration (in seconds) for which the call waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages.

To avoid HTTP errors, ensure that the HTTP response timeout for ReceiveMessage requests is longer than the WaitTimeSeconds parameter. For example, with the Java SDK, you can set HTTP transport settings using the NettyNioAsyncHttpClient for asynchronous clients, or the ApacheHttpClient for synchronous clients.

", + "SendMessageBatchRequestEntry$DelaySeconds": "

The length of time, in seconds, for which a specific message is delayed. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue is applied.

When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level.

", + "SendMessageRequest$DelaySeconds": "

The length of time, in seconds, for which to delay a specific message. Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive DelaySeconds value become available for processing after the delay period is finished. If you don't specify a value, the default value for the queue applies.

When you set FifoQueue, you can't set DelaySeconds per message. You can set this parameter only on a queue level.

", + "StartMessageMoveTaskRequest$MaxNumberOfMessagesPerSecond": "

The number of messages to be moved per second (the message movement rate). You can use this field to define a fixed message movement rate. The maximum value for messages per second is 500. If this field is left blank, the system will optimize the rate based on the queue message backlog size, which may vary throughout the duration of the message movement task.

" + } + }, + "NullableLong": { + "base": null, + "refs": { + "ListMessageMoveTasksResultEntry$ApproximateNumberOfMessagesToMove": "

The number of messages to be moved from the source queue. This number is obtained at the time of starting the message movement task.

" + } + }, "OverLimit": { "base": "

The specified action violates a limit. For example, ReceiveMessage returns this error if the maximum number of in flight messages is reached and AddPermission returns this error if the maximum number of permissions for the queue is reached.

", "refs": { @@ -473,6 +559,11 @@ "refs": { } }, + "RequestThrottled": { + "base": "

The request was denied due to request throttling.

  • The rate of requests per second exceeds the Amazon Web Services KMS request quota for an account and Region.

  • A burst or sustained high rate of requests to change the state of the same KMS key. This condition is often known as a \"hot key.\"

  • Requests for operations on KMS keys in a Amazon Web Services CloudHSM key store might be throttled at a lower-than-expected rate when the Amazon Web Services CloudHSM cluster associated with the Amazon Web Services CloudHSM key store is processing numerous commands, including those unrelated to the Amazon Web Services CloudHSM key store.

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

One or more specified resources don't exist.

", "refs": { @@ -570,7 +661,6 @@ "ListDeadLetterSourceQueuesRequest$QueueUrl": "

The URL of a dead-letter queue.

Queue URLs and names are case-sensitive.

", "ListMessageMoveTasksRequest$SourceArn": "

The ARN of the queue whose message movement tasks are to be listed.

", "ListMessageMoveTasksResultEntry$TaskHandle": "

An identifier associated with a message movement task. When this field is returned in the response of the ListMessageMoveTasks action, it is only populated for tasks that are in RUNNING status.

", - "ListMessageMoveTasksResultEntry$Status": "

The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED.

", "ListMessageMoveTasksResultEntry$SourceArn": "

The ARN of the queue that contains the messages to be moved to another queue.

", "ListMessageMoveTasksResultEntry$DestinationArn": "

The ARN of the destination queue if it has been specified in the StartMessageMoveTask request. If a DestinationArn has not been specified in the StartMessageMoveTask request, this field value will be NULL.

", "ListMessageMoveTasksResultEntry$FailureReason": "

The task failure reason (only included if the task status is FAILED).

", @@ -662,6 +752,12 @@ "TagMap$value": null } }, + "TaskStatus": { + "base": null, + "refs": { + "ListMessageMoveTasksResultEntry$Status": "

The status of the message movement task. Possible values are: RUNNING, COMPLETED, CANCELLING, CANCELLED, and FAILED.

" + } + }, "Token": { "base": null, "refs": { diff --git a/models/apis/sqs/2012-11-05/endpoint-rule-set-1.json b/models/apis/sqs/2012-11-05/endpoint-rule-set-1.json index be5ff550059..71953c74973 100644 --- a/models/apis/sqs/2012-11-05/endpoint-rule-set-1.json +++ b/models/apis/sqs/2012-11-05/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,318 +57,283 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] }, true ] } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "booleanEquals", + "fn": "stringEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "supportsFIPS" + "name" ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - "aws-us-gov", - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] - } - ] - } - ], - "endpoint": { - "url": "https://sqs.{Region}.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" }, - { - "conditions": [], - "endpoint": { - "url": "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "aws-us-gov" ] } - ] + ], + "endpoint": { + "url": "https://sqs.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" }, { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], - "type": "tree", + ], "rules": [ { "conditions": [], "endpoint": { - "url": "https://sqs.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://sqs.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/sqs/2012-11-05/paginators-1.json b/models/apis/sqs/2012-11-05/paginators-1.json index 7cae474a572..077e1f76e56 100644 --- a/models/apis/sqs/2012-11-05/paginators-1.json +++ b/models/apis/sqs/2012-11-05/paginators-1.json @@ -2,15 +2,15 @@ "pagination": { "ListDeadLetterSourceQueues": { "input_token": "NextToken", - "limit_key": "MaxResults", "output_token": "NextToken", + "limit_key": "MaxResults", "result_key": "queueUrls" }, "ListQueues": { "input_token": "NextToken", - "limit_key": "MaxResults", "output_token": "NextToken", + "limit_key": "MaxResults", "result_key": "QueueUrls" } } -} \ No newline at end of file +} diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 64ce87947db..1e5bf3a76a8 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -1767,10 +1767,13 @@ "apprunner" : { "endpoints" : { "ap-northeast-1" : { }, + "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, "eu-central-1" : { }, "eu-west-1" : { }, + "eu-west-2" : { }, + "eu-west-3" : { }, "fips-us-east-1" : { "credentialScope" : { "region" : "us-east-1" diff --git a/service/connect/api.go b/service/connect/api.go index 3ba3f770468..45b9f000435 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -55261,7 +55261,9 @@ type SearchUsersInput struct { // in the Amazon Resource Name (ARN) of the instance. // // InstanceID is a required field. The "Required: No" below is incorrect. - InstanceId *string `min:"1" type:"string"` + // + // InstanceId is a required field + InstanceId *string `min:"1" type:"string" required:"true"` // The maximum number of results to return per page. MaxResults *int64 `min:"1" type:"integer"` @@ -55302,6 +55304,9 @@ func (s SearchUsersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *SearchUsersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SearchUsersInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } if s.InstanceId != nil && len(*s.InstanceId) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } diff --git a/service/connectcases/api.go b/service/connectcases/api.go index 09a659f10f2..a59f89d515c 100644 --- a/service/connectcases/api.go +++ b/service/connectcases/api.go @@ -685,10 +685,17 @@ func (c *ConnectCases) CreateRelatedItemRequest(input *CreateRelatedItemInput) ( // Creates a related item (comments, tasks, and contacts) and associates it // with a case. // -// A Related Item is a resource that is associated with a case. It may or may -// not have an external identifier linking it to an external resource (for example, -// a contactArn). All Related Items have their own internal identifier, the -// relatedItemArn. Examples of related items include comments and contacts. +// - A Related Item is a resource that is associated with a case. It may +// or may not have an external identifier linking it to an external resource +// (for example, a contactArn). All Related Items have their own internal +// identifier, the relatedItemArn. Examples of related items include comments +// and contacts. +// +// - If you provide a value for performedBy.userArn you must also have DescribeUser +// (https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribeUser.html) +// permission on the ARN of the user that you provide. +// +//
// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4904,6 +4911,9 @@ type CreateRelatedItemInput struct { // DomainId is a required field DomainId *string `location:"uri" locationName:"domainId" min:"1" type:"string" required:"true"` + // Represents the creator of the related item. + PerformedBy *UserUnion `locationName:"performedBy" type:"structure"` + // The type of a related item. // // Type is a required field @@ -4954,6 +4964,11 @@ func (s *CreateRelatedItemInput) Validate() error { invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) } } + if s.PerformedBy != nil { + if err := s.PerformedBy.Validate(); err != nil { + invalidParams.AddNested("PerformedBy", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4979,6 +4994,12 @@ func (s *CreateRelatedItemInput) SetDomainId(v string) *CreateRelatedItemInput { return s } +// SetPerformedBy sets the PerformedBy field's value. +func (s *CreateRelatedItemInput) SetPerformedBy(v *UserUnion) *CreateRelatedItemInput { + s.PerformedBy = v + return s +} + // SetType sets the Type field's value. func (s *CreateRelatedItemInput) SetType(v string) *CreateRelatedItemInput { s.Type = &v @@ -8846,6 +8867,9 @@ type SearchRelatedItemsResponseItem struct { // Content is a required field Content *RelatedItemContent `locationName:"content" type:"structure" required:"true"` + // Represents the creator of the related item. + PerformedBy *UserUnion `locationName:"performedBy" type:"structure"` + // Unique identifier of a related item. // // RelatedItemId is a required field @@ -8891,6 +8915,12 @@ func (s *SearchRelatedItemsResponseItem) SetContent(v *RelatedItemContent) *Sear return s } +// SetPerformedBy sets the PerformedBy field's value. +func (s *SearchRelatedItemsResponseItem) SetPerformedBy(v *UserUnion) *SearchRelatedItemsResponseItem { + s.PerformedBy = v + return s +} + // SetRelatedItemId sets the RelatedItemId field's value. func (s *SearchRelatedItemsResponseItem) SetRelatedItemId(v string) *SearchRelatedItemsResponseItem { s.RelatedItemId = &v @@ -9877,6 +9907,51 @@ func (s UpdateTemplateOutput) GoString() string { return s.String() } +// Represents the identity of the person who performed the action. +type UserUnion struct { + _ struct{} `type:"structure"` + + // Represents the Amazon Connect ARN of the user. + UserArn *string `locationName:"userArn" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UserUnion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UserUnion) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UserUnion) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UserUnion"} + if s.UserArn != nil && len(*s.UserArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserArn sets the UserArn field's value. +func (s *UserUnion) SetUserArn(v string) *UserUnion { + s.UserArn = &v + return s +} + // The request isn't valid. Check the syntax and try again. type ValidationException struct { _ struct{} `type:"structure"` diff --git a/service/datasync/api.go b/service/datasync/api.go index dbcc360a42c..6ed3171ee15 100644 --- a/service/datasync/api.go +++ b/service/datasync/api.go @@ -7678,7 +7678,7 @@ type CreateLocationObjectStorageInput struct { // Specifies the access key (for example, a user name) if credentials are required // to authenticate with the object storage server. - AccessKey *string `min:"1" type:"string"` + AccessKey *string `type:"string"` // Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can // securely connect with your location. @@ -7762,9 +7762,6 @@ func (s CreateLocationObjectStorageInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateLocationObjectStorageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateLocationObjectStorageInput"} - if s.AccessKey != nil && len(*s.AccessKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccessKey", 1)) - } if s.AgentArns == nil { invalidParams.Add(request.NewErrParamRequired("AgentArns")) } @@ -10150,7 +10147,7 @@ type DescribeLocationObjectStorageOutput struct { // The access key (for example, a user name) required to authenticate with the // object storage system. - AccessKey *string `min:"1" type:"string"` + AccessKey *string `type:"string"` // The ARNs of the DataSync agents that can securely connect with your location. AgentArns []*string `min:"1" type:"list"` @@ -16915,7 +16912,7 @@ type UpdateLocationObjectStorageInput struct { // Specifies the access key (for example, a user name) if credentials are required // to authenticate with the object storage server. - AccessKey *string `min:"1" type:"string"` + AccessKey *string `type:"string"` // Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can // securely connect with your location. @@ -16979,9 +16976,6 @@ func (s UpdateLocationObjectStorageInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateLocationObjectStorageInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateLocationObjectStorageInput"} - if s.AccessKey != nil && len(*s.AccessKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccessKey", 1)) - } if s.AgentArns != nil && len(s.AgentArns) < 1 { invalidParams.Add(request.NewErrParamMinLen("AgentArns", 1)) } diff --git a/service/guardduty/api.go b/service/guardduty/api.go index 0b5eea5df18..1d995dc8def 100644 --- a/service/guardduty/api.go +++ b/service/guardduty/api.go @@ -7130,6 +7130,17 @@ type Action struct { // Information about the Kubernetes API call action described in this finding. KubernetesApiCallAction *KubernetesApiCallAction `locationName:"kubernetesApiCallAction" type:"structure"` + // Information whether the user has the permission to use a specific Kubernetes + // API. + KubernetesPermissionCheckedDetails *KubernetesPermissionCheckedDetails `locationName:"kubernetesPermissionCheckedDetails" type:"structure"` + + // Information about the role binding that grants the permission defined in + // a Kubernetes role. + KubernetesRoleBindingDetails *KubernetesRoleBindingDetails `locationName:"kubernetesRoleBindingDetails" type:"structure"` + + // Information about the Kubernetes role name and role type. + KubernetesRoleDetails *KubernetesRoleDetails `locationName:"kubernetesRoleDetails" type:"structure"` + // Information about the NETWORK_CONNECTION action described in this finding. NetworkConnectionAction *NetworkConnectionAction `locationName:"networkConnectionAction" type:"structure"` @@ -7182,6 +7193,24 @@ func (s *Action) SetKubernetesApiCallAction(v *KubernetesApiCallAction) *Action return s } +// SetKubernetesPermissionCheckedDetails sets the KubernetesPermissionCheckedDetails field's value. +func (s *Action) SetKubernetesPermissionCheckedDetails(v *KubernetesPermissionCheckedDetails) *Action { + s.KubernetesPermissionCheckedDetails = v + return s +} + +// SetKubernetesRoleBindingDetails sets the KubernetesRoleBindingDetails field's value. +func (s *Action) SetKubernetesRoleBindingDetails(v *KubernetesRoleBindingDetails) *Action { + s.KubernetesRoleBindingDetails = v + return s +} + +// SetKubernetesRoleDetails sets the KubernetesRoleDetails field's value. +func (s *Action) SetKubernetesRoleDetails(v *KubernetesRoleDetails) *Action { + s.KubernetesRoleDetails = v + return s +} + // SetNetworkConnectionAction sets the NetworkConnectionAction field's value. func (s *Action) SetNetworkConnectionAction(v *NetworkConnectionAction) *Action { s.NetworkConnectionAction = v @@ -7343,6 +7372,130 @@ func (s *Administrator) SetRelationshipStatus(v string) *Administrator { return s } +// Contains information about the anomalies. +type Anomaly struct { + _ struct{} `type:"structure"` + + // Information about the types of profiles. + Profiles map[string]map[string][]*AnomalyObject `locationName:"profiles" type:"map"` + + // Information about the behavior of the anomalies. + Unusual *AnomalyUnusual `locationName:"unusual" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Anomaly) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Anomaly) GoString() string { + return s.String() +} + +// SetProfiles sets the Profiles field's value. +func (s *Anomaly) SetProfiles(v map[string]map[string][]*AnomalyObject) *Anomaly { + s.Profiles = v + return s +} + +// SetUnusual sets the Unusual field's value. +func (s *Anomaly) SetUnusual(v *AnomalyUnusual) *Anomaly { + s.Unusual = v + return s +} + +// Contains information about the unusual anomalies. +type AnomalyObject struct { + _ struct{} `type:"structure"` + + // The recorded value. + Observations *Observations `locationName:"observations" type:"structure"` + + // The frequency of the anomaly. + ProfileSubtype *string `locationName:"profileSubtype" type:"string" enum:"ProfileSubtype"` + + // The type of behavior of the profile. + ProfileType *string `locationName:"profileType" type:"string" enum:"ProfileType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnomalyObject) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnomalyObject) GoString() string { + return s.String() +} + +// SetObservations sets the Observations field's value. +func (s *AnomalyObject) SetObservations(v *Observations) *AnomalyObject { + s.Observations = v + return s +} + +// SetProfileSubtype sets the ProfileSubtype field's value. +func (s *AnomalyObject) SetProfileSubtype(v string) *AnomalyObject { + s.ProfileSubtype = &v + return s +} + +// SetProfileType sets the ProfileType field's value. +func (s *AnomalyObject) SetProfileType(v string) *AnomalyObject { + s.ProfileType = &v + return s +} + +// Contains information about the behavior of the anomaly that is new to GuardDuty. +type AnomalyUnusual struct { + _ struct{} `type:"structure"` + + // The behavior of the anomalous activity that caused GuardDuty to generate + // the finding. + Behavior map[string]map[string]*AnomalyObject `locationName:"behavior" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnomalyUnusual) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnomalyUnusual) GoString() string { + return s.String() +} + +// SetBehavior sets the Behavior field's value. +func (s *AnomalyUnusual) SetBehavior(v map[string]map[string]*AnomalyObject) *AnomalyUnusual { + s.Behavior = v + return s +} + type ArchiveFindingsInput struct { _ struct{} `type:"structure"` @@ -8847,6 +9000,8 @@ type CreateFilterInput struct { // // * service.action.dnsRequestAction.domain // + // * service.action.dnsRequestAction.domainWithSuffix + // // * service.action.networkConnectionAction.blocked // // * service.action.networkConnectionAction.connectionDirection @@ -8871,8 +9026,14 @@ type CreateFilterInput struct { // // * service.action.kubernetesApiCallAction.remoteIpDetails.ipAddressV4 // + // * service.action.kubernetesApiCallAction.namespace + // + // * service.action.kubernetesApiCallAction.remoteIpDetails.organization.asn + // // * service.action.kubernetesApiCallAction.requestUri // + // * service.action.kubernetesApiCallAction.statusCode + // // * service.action.networkConnectionAction.localIpDetails.ipAddressV4 // // * service.action.networkConnectionAction.protocol @@ -11358,6 +11519,39 @@ func (s *DestinationProperties) SetKmsKeyArn(v string) *DestinationProperties { return s } +// Contains information about the detected behavior. +type Detection struct { + _ struct{} `type:"structure"` + + // The details about the anomalous activity that caused GuardDuty to generate + // the finding. + Anomaly *Anomaly `locationName:"anomaly" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Detection) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Detection) GoString() string { + return s.String() +} + +// SetAnomaly sets the Anomaly field's value. +func (s *Detection) SetAnomaly(v *Anomaly) *Detection { + s.Anomaly = v + return s +} + // Information about the additional configuration for a feature in your GuardDuty // account. type DetectorAdditionalConfiguration struct { @@ -14881,6 +15075,47 @@ func (s *IamInstanceProfile) SetId(v string) *IamInstanceProfile { return s } +// Contains information about the impersonated user. +type ImpersonatedUser struct { + _ struct{} `type:"structure"` + + // The group to which the user name belongs. + Groups []*string `locationName:"groups" type:"list"` + + // Information about the username that was being impersonated. + Username *string `locationName:"username" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ImpersonatedUser) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ImpersonatedUser) GoString() string { + return s.String() +} + +// SetGroups sets the Groups field's value. +func (s *ImpersonatedUser) SetGroups(v []*string) *ImpersonatedUser { + s.Groups = v + return s +} + +// SetUsername sets the Username field's value. +func (s *ImpersonatedUser) SetUsername(v string) *ImpersonatedUser { + s.Username = &v + return s +} + // Contains information about the details of an instance. type InstanceDetails struct { _ struct{} `type:"structure"` @@ -15276,6 +15511,9 @@ func (s *InviteMembersOutput) SetUnprocessedAccounts(v []*UnprocessedAccount) *I type KubernetesApiCallAction struct { _ struct{} `type:"structure"` + // The name of the namespace where the Kubernetes API call action takes place. + Namespace *string `locationName:"namespace" type:"string"` + // Parameters related to the Kubernetes API call action. Parameters *string `locationName:"parameters" type:"string"` @@ -15285,6 +15523,12 @@ type KubernetesApiCallAction struct { // The Kubernetes API request URI. RequestUri *string `locationName:"requestUri" type:"string"` + // The resource component in the Kubernetes API call action. + Resource *string `locationName:"resource" type:"string"` + + // The name of the resource in the Kubernetes API call action. + ResourceName *string `locationName:"resourceName" type:"string"` + // The IP of the Kubernetes API caller and the IPs of any proxies or load balancers // between the caller and the API endpoint. SourceIps []*string `locationName:"sourceIps" type:"list"` @@ -15292,6 +15536,9 @@ type KubernetesApiCallAction struct { // The resulting HTTP response code of the Kubernetes API call action. StatusCode *int64 `locationName:"statusCode" type:"integer"` + // The name of the sub-resource in the Kubernetes API call action. + Subresource *string `locationName:"subresource" type:"string"` + // The user agent of the caller of the Kubernetes API. UserAgent *string `locationName:"userAgent" type:"string"` @@ -15317,6 +15564,12 @@ func (s KubernetesApiCallAction) GoString() string { return s.String() } +// SetNamespace sets the Namespace field's value. +func (s *KubernetesApiCallAction) SetNamespace(v string) *KubernetesApiCallAction { + s.Namespace = &v + return s +} + // SetParameters sets the Parameters field's value. func (s *KubernetesApiCallAction) SetParameters(v string) *KubernetesApiCallAction { s.Parameters = &v @@ -15335,6 +15588,18 @@ func (s *KubernetesApiCallAction) SetRequestUri(v string) *KubernetesApiCallActi return s } +// SetResource sets the Resource field's value. +func (s *KubernetesApiCallAction) SetResource(v string) *KubernetesApiCallAction { + s.Resource = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *KubernetesApiCallAction) SetResourceName(v string) *KubernetesApiCallAction { + s.ResourceName = &v + return s +} + // SetSourceIps sets the SourceIps field's value. func (s *KubernetesApiCallAction) SetSourceIps(v []*string) *KubernetesApiCallAction { s.SourceIps = v @@ -15347,6 +15612,12 @@ func (s *KubernetesApiCallAction) SetStatusCode(v int64) *KubernetesApiCallActio return s } +// SetSubresource sets the Subresource field's value. +func (s *KubernetesApiCallAction) SetSubresource(v string) *KubernetesApiCallAction { + s.Subresource = &v + return s +} + // SetUserAgent sets the UserAgent field's value. func (s *KubernetesApiCallAction) SetUserAgent(v string) *KubernetesApiCallAction { s.UserAgent = &v @@ -15602,6 +15873,188 @@ func (s *KubernetesDetails) SetKubernetesWorkloadDetails(v *KubernetesWorkloadDe return s } +// Information about the Kubernetes API for which you check if you have permission +// to call. +type KubernetesPermissionCheckedDetails struct { + _ struct{} `type:"structure"` + + // Information whether the user has the permission to call the Kubernetes API. + Allowed *bool `locationName:"allowed" type:"boolean"` + + // The namespace where the Kubernetes API action will take place. + Namespace *string `locationName:"namespace" type:"string"` + + // The Kubernetes resource with which your Kubernetes API call will interact. + Resource *string `locationName:"resource" type:"string"` + + // The verb component of the Kubernetes API call. For example, when you check + // whether or not you have the permission to call the CreatePod API, the verb + // component will be Create. + Verb *string `locationName:"verb" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KubernetesPermissionCheckedDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KubernetesPermissionCheckedDetails) GoString() string { + return s.String() +} + +// SetAllowed sets the Allowed field's value. +func (s *KubernetesPermissionCheckedDetails) SetAllowed(v bool) *KubernetesPermissionCheckedDetails { + s.Allowed = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *KubernetesPermissionCheckedDetails) SetNamespace(v string) *KubernetesPermissionCheckedDetails { + s.Namespace = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *KubernetesPermissionCheckedDetails) SetResource(v string) *KubernetesPermissionCheckedDetails { + s.Resource = &v + return s +} + +// SetVerb sets the Verb field's value. +func (s *KubernetesPermissionCheckedDetails) SetVerb(v string) *KubernetesPermissionCheckedDetails { + s.Verb = &v + return s +} + +// Contains information about the role binding that grants the permission defined +// in a Kubernetes role. +type KubernetesRoleBindingDetails struct { + _ struct{} `type:"structure"` + + // The kind of the role. For role binding, this value will be RoleBinding. + Kind *string `locationName:"kind" type:"string"` + + // The name of the RoleBinding. + Name *string `locationName:"name" type:"string"` + + // The type of the role being referenced. This could be either Role or ClusterRole. + RoleRefKind *string `locationName:"roleRefKind" type:"string"` + + // The name of the role being referenced. This must match the name of the Role + // or ClusterRole that you want to bind to. + RoleRefName *string `locationName:"roleRefName" type:"string"` + + // The unique identifier of the role binding. + Uid *string `locationName:"uid" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KubernetesRoleBindingDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KubernetesRoleBindingDetails) GoString() string { + return s.String() +} + +// SetKind sets the Kind field's value. +func (s *KubernetesRoleBindingDetails) SetKind(v string) *KubernetesRoleBindingDetails { + s.Kind = &v + return s +} + +// SetName sets the Name field's value. +func (s *KubernetesRoleBindingDetails) SetName(v string) *KubernetesRoleBindingDetails { + s.Name = &v + return s +} + +// SetRoleRefKind sets the RoleRefKind field's value. +func (s *KubernetesRoleBindingDetails) SetRoleRefKind(v string) *KubernetesRoleBindingDetails { + s.RoleRefKind = &v + return s +} + +// SetRoleRefName sets the RoleRefName field's value. +func (s *KubernetesRoleBindingDetails) SetRoleRefName(v string) *KubernetesRoleBindingDetails { + s.RoleRefName = &v + return s +} + +// SetUid sets the Uid field's value. +func (s *KubernetesRoleBindingDetails) SetUid(v string) *KubernetesRoleBindingDetails { + s.Uid = &v + return s +} + +// Information about the Kubernetes role name and role type. +type KubernetesRoleDetails struct { + _ struct{} `type:"structure"` + + // The kind of role. For this API, the value of kind will be Role. + Kind *string `locationName:"kind" type:"string"` + + // The name of the Kubernetes role. + Name *string `locationName:"name" type:"string"` + + // The unique identifier of the Kubernetes role name. + Uid *string `locationName:"uid" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KubernetesRoleDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KubernetesRoleDetails) GoString() string { + return s.String() +} + +// SetKind sets the Kind field's value. +func (s *KubernetesRoleDetails) SetKind(v string) *KubernetesRoleDetails { + s.Kind = &v + return s +} + +// SetName sets the Name field's value. +func (s *KubernetesRoleDetails) SetName(v string) *KubernetesRoleDetails { + s.Name = &v + return s +} + +// SetUid sets the Uid field's value. +func (s *KubernetesRoleDetails) SetUid(v string) *KubernetesRoleDetails { + s.Uid = &v + return s +} + // Details about the Kubernetes user involved in a Kubernetes finding. type KubernetesUserDetails struct { _ struct{} `type:"structure"` @@ -15609,6 +16062,9 @@ type KubernetesUserDetails struct { // The groups that include the user who called the Kubernetes API. Groups []*string `locationName:"groups" type:"list"` + // Information about the impersonated user. + ImpersonatedUser *ImpersonatedUser `locationName:"impersonatedUser" type:"structure"` + // Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned // to that role. SessionName []*string `locationName:"sessionName" type:"list"` @@ -15644,6 +16100,12 @@ func (s *KubernetesUserDetails) SetGroups(v []*string) *KubernetesUserDetails { return s } +// SetImpersonatedUser sets the ImpersonatedUser field's value. +func (s *KubernetesUserDetails) SetImpersonatedUser(v *ImpersonatedUser) *KubernetesUserDetails { + s.ImpersonatedUser = v + return s +} + // SetSessionName sets the SessionName field's value. func (s *KubernetesUserDetails) SetSessionName(v []*string) *KubernetesUserDetails { s.SessionName = v @@ -15669,15 +16131,24 @@ type KubernetesWorkloadDetails struct { // Containers running as part of the Kubernetes workload. Containers []*Container `locationName:"containers" type:"list"` + // Whether the host IPC flag is enabled for the pods in the workload. + HostIPC *bool `locationName:"hostIPC" type:"boolean"` + // Whether the hostNetwork flag is enabled for the pods included in the workload. HostNetwork *bool `locationName:"hostNetwork" type:"boolean"` + // Whether the host PID flag is enabled for the pods in the workload. + HostPID *bool `locationName:"hostPID" type:"boolean"` + // Kubernetes workload name. Name *string `locationName:"name" type:"string"` // Kubernetes namespace that the workload is part of. Namespace *string `locationName:"namespace" type:"string"` + // The service account name that is associated with a Kubernetes workload. + ServiceAccountName *string `locationName:"serviceAccountName" type:"string"` + // Kubernetes workload type (e.g. Pod, Deployment, etc.). Type *string `locationName:"type" type:"string"` @@ -15712,12 +16183,24 @@ func (s *KubernetesWorkloadDetails) SetContainers(v []*Container) *KubernetesWor return s } +// SetHostIPC sets the HostIPC field's value. +func (s *KubernetesWorkloadDetails) SetHostIPC(v bool) *KubernetesWorkloadDetails { + s.HostIPC = &v + return s +} + // SetHostNetwork sets the HostNetwork field's value. func (s *KubernetesWorkloadDetails) SetHostNetwork(v bool) *KubernetesWorkloadDetails { s.HostNetwork = &v return s } +// SetHostPID sets the HostPID field's value. +func (s *KubernetesWorkloadDetails) SetHostPID(v bool) *KubernetesWorkloadDetails { + s.HostPID = &v + return s +} + // SetName sets the Name field's value. func (s *KubernetesWorkloadDetails) SetName(v string) *KubernetesWorkloadDetails { s.Name = &v @@ -15730,6 +16213,12 @@ func (s *KubernetesWorkloadDetails) SetNamespace(v string) *KubernetesWorkloadDe return s } +// SetServiceAccountName sets the ServiceAccountName field's value. +func (s *KubernetesWorkloadDetails) SetServiceAccountName(v string) *KubernetesWorkloadDetails { + s.ServiceAccountName = &v + return s +} + // SetType sets the Type field's value. func (s *KubernetesWorkloadDetails) SetType(v string) *KubernetesWorkloadDetails { s.Type = &v @@ -16853,6 +17342,9 @@ type ListMembersOutput struct { _ struct{} `type:"structure"` // A list of members. + // + // The values for email and invitedAt are available only if the member accounts + // are added by invitation. Members []*Member `locationName:"members" type:"list"` // The pagination parameter to be used on the next list operation to retrieve @@ -18168,6 +18660,38 @@ func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface { return s } +// Contains information about the observed behavior. +type Observations struct { + _ struct{} `type:"structure"` + + // The text that was unusual. + Text []*string `locationName:"text" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Observations) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Observations) GoString() string { + return s.String() +} + +// SetText sets the Text field's value. +func (s *Observations) SetText(v []*string) *Observations { + s.Text = v + return s +} + // Contains information about the ISP organization of the remote IP address. type Organization struct { _ struct{} `type:"structure"` @@ -21112,6 +21636,10 @@ func (s *ScannedItemCount) SetVolumes(v int64) *ScannedItemCount { type SecurityContext struct { _ struct{} `type:"structure"` + // Whether or not a container or a Kubernetes pod is allowed to gain more privileges + // than its parent process. + AllowPrivilegeEscalation *bool `locationName:"allowPrivilegeEscalation" type:"boolean"` + // Whether the container is privileged. Privileged *bool `locationName:"privileged" type:"boolean"` } @@ -21134,6 +21662,12 @@ func (s SecurityContext) GoString() string { return s.String() } +// SetAllowPrivilegeEscalation sets the AllowPrivilegeEscalation field's value. +func (s *SecurityContext) SetAllowPrivilegeEscalation(v bool) *SecurityContext { + s.AllowPrivilegeEscalation = &v + return s +} + // SetPrivileged sets the Privileged field's value. func (s *SecurityContext) SetPrivileged(v bool) *SecurityContext { s.Privileged = &v @@ -21197,6 +21731,9 @@ type Service struct { // The total count of the occurrences of this finding type. Count *int64 `locationName:"count" type:"integer"` + // Contains information about the detected unusual behavior. + Detection *Detection `locationName:"detection" type:"structure"` + // The detector ID for the GuardDuty service. DetectorId *string `locationName:"detectorId" min:"1" type:"string"` @@ -21274,6 +21811,12 @@ func (s *Service) SetCount(v int64) *Service { return s } +// SetDetection sets the Detection field's value. +func (s *Service) SetDetection(v *Detection) *Service { + s.Detection = v + return s +} + // SetDetectorId sets the DetectorId field's value. func (s *Service) SetDetectorId(v string) *Service { s.DetectorId = &v @@ -24547,6 +25090,42 @@ func OrgFeatureStatus_Values() []string { } } +const ( + // ProfileSubtypeFrequent is a ProfileSubtype enum value + ProfileSubtypeFrequent = "FREQUENT" + + // ProfileSubtypeInfrequent is a ProfileSubtype enum value + ProfileSubtypeInfrequent = "INFREQUENT" + + // ProfileSubtypeUnseen is a ProfileSubtype enum value + ProfileSubtypeUnseen = "UNSEEN" + + // ProfileSubtypeRare is a ProfileSubtype enum value + ProfileSubtypeRare = "RARE" +) + +// ProfileSubtype_Values returns all elements of the ProfileSubtype enum +func ProfileSubtype_Values() []string { + return []string{ + ProfileSubtypeFrequent, + ProfileSubtypeInfrequent, + ProfileSubtypeUnseen, + ProfileSubtypeRare, + } +} + +const ( + // ProfileTypeFrequency is a ProfileType enum value + ProfileTypeFrequency = "FREQUENCY" +) + +// ProfileType_Values returns all elements of the ProfileType enum +func ProfileType_Values() []string { + return []string{ + ProfileTypeFrequency, + } +} + const ( // PublishingStatusPendingVerification is a PublishingStatus enum value PublishingStatusPendingVerification = "PENDING_VERIFICATION" diff --git a/service/lambda/api.go b/service/lambda/api.go index ec5524668bb..45fd2d00093 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -3254,8 +3254,10 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // Invoke API operation for AWS Lambda. // // Invokes a Lambda function. You can invoke a function synchronously (and wait -// for the response), or asynchronously. To invoke a function asynchronously, -// set InvocationType to Event. +// for the response), or asynchronously. By default, Lambda invokes your function +// synchronously (i.e. theInvocationType is RequestResponse). To invoke a function +// asynchronously, set InvocationType to Event. Lambda passes the ClientContext +// object to your function for synchronous invocations only. // // For synchronous invocation (https://docs.aws.amazon.com/lambda/latest/dg/invocation-sync.html), // details about the function response, including errors, are included in the @@ -3486,6 +3488,10 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // // Invokes a function asynchronously. // +// If you do use the InvokeAsync action, note that it doesn't support the use +// of X-Ray active tracing. Trace ID is not propagated to the function, even +// if X-Ray active tracing is turned on. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -9225,7 +9231,8 @@ type CreateFunctionInput struct { Environment *Environment `type:"structure"` // The size of the function's /tmp directory in MB. The default value is 512, - // but can be any whole number between 512 and 10,240 MB. + // but can be any whole number between 512 and 10,240 MB. For more information, + // see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). EphemeralStorage *EphemeralStorage `type:"structure"` // Connection settings for an Amazon EFS file system. @@ -11411,7 +11418,8 @@ func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentRes } // The size of the function's /tmp directory in MB. The default value is 512, -// but it can be any whole number between 512 and 10,240 MB. +// but can be any whole number between 512 and 10,240 MB. For more information, +// see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). type EphemeralStorage struct { _ struct{} `type:"structure"` @@ -12090,8 +12098,9 @@ type FunctionConfiguration struct { // Omitted from CloudTrail logs. Environment *EnvironmentResponse `type:"structure"` - // The size of the function’s /tmp directory in MB. The default value is 512, - // but it can be any whole number between 512 and 10,240 MB. + // The size of the function's /tmp directory in MB. The default value is 512, + // but can be any whole number between 512 and 10,240 MB. For more information, + // see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). EphemeralStorage *EphemeralStorage `type:"structure"` // Connection settings for an Amazon EFS file system (https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html). @@ -21788,7 +21797,8 @@ type UpdateFunctionConfigurationInput struct { Environment *Environment `type:"structure"` // The size of the function's /tmp directory in MB. The default value is 512, - // but can be any whole number between 512 and 10,240 MB. + // but can be any whole number between 512 and 10,240 MB. For more information, + // see Configuring ephemeral storage (console) (https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-ephemeral-storage). EphemeralStorage *EphemeralStorage `type:"structure"` // Connection settings for an Amazon EFS file system. @@ -22998,6 +23008,9 @@ const ( // RuntimePython311 is a Runtime enum value RuntimePython311 = "python3.11" + + // RuntimeNodejs20X is a Runtime enum value + RuntimeNodejs20X = "nodejs20.x" ) // Runtime_Values returns all elements of the Runtime enum @@ -23035,6 +23048,7 @@ func Runtime_Values() []string { RuntimeJava17, RuntimeRuby32, RuntimePython311, + RuntimeNodejs20X, } } diff --git a/service/lexmodelsv2/api.go b/service/lexmodelsv2/api.go index d938ed53441..078ad2b7d3d 100644 --- a/service/lexmodelsv2/api.go +++ b/service/lexmodelsv2/api.go @@ -13368,6 +13368,9 @@ type AudioLogSetting struct { // // Enabled is a required field Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` + + // The option to enable selective conversation log capture for audio. + SelectiveLoggingEnabled *bool `locationName:"selectiveLoggingEnabled" type:"boolean"` } // String returns the string representation. @@ -13421,6 +13424,12 @@ func (s *AudioLogSetting) SetEnabled(v bool) *AudioLogSetting { return s } +// SetSelectiveLoggingEnabled sets the SelectiveLoggingEnabled field's value. +func (s *AudioLogSetting) SetSelectiveLoggingEnabled(v bool) *AudioLogSetting { + s.SelectiveLoggingEnabled = &v + return s +} + // Specifies the audio input specifications. type AudioSpecification struct { _ struct{} `type:"structure"` @@ -40756,6 +40765,9 @@ type TextLogSetting struct { // // Enabled is a required field Enabled *bool `locationName:"enabled" type:"boolean" required:"true"` + + // The option to enable selective conversation log capture for text. + SelectiveLoggingEnabled *bool `locationName:"selectiveLoggingEnabled" type:"boolean"` } // String returns the string representation. @@ -40809,6 +40821,12 @@ func (s *TextLogSetting) SetEnabled(v bool) *TextLogSetting { return s } +// SetSelectiveLoggingEnabled sets the SelectiveLoggingEnabled field's value. +func (s *TextLogSetting) SetSelectiveLoggingEnabled(v bool) *TextLogSetting { + s.SelectiveLoggingEnabled = &v + return s +} + // Your request rate is too high. Reduce the frequency of requests. type ThrottlingException struct { _ struct{} `type:"structure"` diff --git a/service/omics/api.go b/service/omics/api.go index 04237f2b77b..6f4f4a31498 100644 --- a/service/omics/api.go +++ b/service/omics/api.go @@ -16212,6 +16212,9 @@ type GetRunOutput struct { // The run's ID. RunId *string `locationName:"runId" min:"1" type:"string"` + // The destination for workflow outputs. + RunOutputUri *string `locationName:"runOutputUri" min:"1" type:"string"` + // When the run started. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"` @@ -16233,6 +16236,9 @@ type GetRunOutput struct { // The run's tags. Tags map[string]*string `locationName:"tags" type:"map"` + // The universally unique identifier for a run. + Uuid *string `locationName:"uuid" min:"1" type:"string"` + // The run's workflow ID. WorkflowId *string `locationName:"workflowId" min:"1" type:"string"` @@ -16360,6 +16366,12 @@ func (s *GetRunOutput) SetRunId(v string) *GetRunOutput { return s } +// SetRunOutputUri sets the RunOutputUri field's value. +func (s *GetRunOutput) SetRunOutputUri(v string) *GetRunOutput { + s.RunOutputUri = &v + return s +} + // SetStartTime sets the StartTime field's value. func (s *GetRunOutput) SetStartTime(v time.Time) *GetRunOutput { s.StartTime = &v @@ -16402,6 +16414,12 @@ func (s *GetRunOutput) SetTags(v map[string]*string) *GetRunOutput { return s } +// SetUuid sets the Uuid field's value. +func (s *GetRunOutput) SetUuid(v string) *GetRunOutput { + s.Uuid = &v + return s +} + // SetWorkflowId sets the WorkflowId field's value. func (s *GetRunOutput) SetWorkflowId(v string) *GetRunOutput { s.WorkflowId = &v @@ -24355,11 +24373,17 @@ type StartRunOutput struct { // The run's ID. Id *string `locationName:"id" min:"1" type:"string"` + // The destination for workflow outputs. + RunOutputUri *string `locationName:"runOutputUri" min:"1" type:"string"` + // The run's status. Status *string `locationName:"status" min:"1" type:"string" enum:"RunStatus"` // The run's tags. Tags map[string]*string `locationName:"tags" type:"map"` + + // The universally unique identifier for a run. + Uuid *string `locationName:"uuid" min:"1" type:"string"` } // String returns the string representation. @@ -24392,6 +24416,12 @@ func (s *StartRunOutput) SetId(v string) *StartRunOutput { return s } +// SetRunOutputUri sets the RunOutputUri field's value. +func (s *StartRunOutput) SetRunOutputUri(v string) *StartRunOutput { + s.RunOutputUri = &v + return s +} + // SetStatus sets the Status field's value. func (s *StartRunOutput) SetStatus(v string) *StartRunOutput { s.Status = &v @@ -24404,6 +24434,12 @@ func (s *StartRunOutput) SetTags(v map[string]*string) *StartRunOutput { return s } +// SetUuid sets the Uuid field's value. +func (s *StartRunOutput) SetUuid(v string) *StartRunOutput { + s.Uuid = &v + return s +} + type StartVariantImportJobInput struct { _ struct{} `type:"structure"` diff --git a/service/rds/api.go b/service/rds/api.go index b7e31895b7f..4a5a72782fe 100644 --- a/service/rds/api.go +++ b/service/rds/api.go @@ -20196,14 +20196,18 @@ type CreateCustomDBEngineVersionInput struct { // in the Amazon RDS User Guide. Manifest *string `min:"1" type:"string"` - // Reserved for future use. + // The ARN of a CEV to use as a source for creating a new CEV. You can specify + // a different Amazon Machine Imagine (AMI) by using either Source or UseAwsProvidedLatestImage. + // You can't specify a different JSON manifest when you specify SourceCustomDbEngineVersionIdentifier. SourceCustomDbEngineVersionIdentifier *string `min:"1" type:"string"` // A list of tags. For more information, see Tagging Amazon RDS Resources (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) // in the Amazon RDS User Guide. Tags []*Tag `locationNameList:"Tag" type:"list"` - // Reserved for future use. + // Specifies whether to use the latest service-provided Amazon Machine Image + // (AMI) for the CEV. If you specify UseAwsProvidedLatestImage, you can't also + // specify ImageId. UseAwsProvidedLatestImage *bool `type:"boolean"` } diff --git a/service/redshiftserverless/api.go b/service/redshiftserverless/api.go index ecb60e353ad..19405e3013d 100644 --- a/service/redshiftserverless/api.go +++ b/service/redshiftserverless/api.go @@ -5608,6 +5608,10 @@ type CreateWorkgroupInput struct { // your VPC instead of over the internet. EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` + // The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve + // queries. The max capacity is specified in RPUs. + MaxCapacity *int64 `locationName:"maxCapacity" type:"integer"` + // The name of the namespace to associate with the workgroup. // // NamespaceName is a required field @@ -5704,6 +5708,12 @@ func (s *CreateWorkgroupInput) SetEnhancedVpcRouting(v bool) *CreateWorkgroupInp return s } +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *CreateWorkgroupInput) SetMaxCapacity(v int64) *CreateWorkgroupInput { + s.MaxCapacity = &v + return s +} + // SetNamespaceName sets the NamespaceName field's value. func (s *CreateWorkgroupInput) SetNamespaceName(v string) *CreateWorkgroupInput { s.NamespaceName = &v @@ -11071,6 +11081,10 @@ type UpdateWorkgroupInput struct { // your VPC. EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` + // The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve + // queries. The max capacity is specified in RPUs. + MaxCapacity *int64 `locationName:"maxCapacity" type:"integer"` + // The custom port to use when connecting to a workgroup. Valid port ranges // are 5431-5455 and 8191-8215. The default is 5439. Port *int64 `locationName:"port" type:"integer"` @@ -11144,6 +11158,12 @@ func (s *UpdateWorkgroupInput) SetEnhancedVpcRouting(v bool) *UpdateWorkgroupInp return s } +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *UpdateWorkgroupInput) SetMaxCapacity(v int64) *UpdateWorkgroupInput { + s.MaxCapacity = &v + return s +} + // SetPort sets the Port field's value. func (s *UpdateWorkgroupInput) SetPort(v int64) *UpdateWorkgroupInput { s.Port = &v @@ -11491,6 +11511,10 @@ type Workgroup struct { // your VPC. EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` + // The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve + // queries. The max capacity is specified in RPUs. + MaxCapacity *int64 `locationName:"maxCapacity" type:"integer"` + // The namespace the workgroup is associated with. NamespaceName *string `locationName:"namespaceName" type:"string"` @@ -11597,6 +11621,12 @@ func (s *Workgroup) SetEnhancedVpcRouting(v bool) *Workgroup { return s } +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *Workgroup) SetMaxCapacity(v int64) *Workgroup { + s.MaxCapacity = &v + return s +} + // SetNamespaceName sets the NamespaceName field's value. func (s *Workgroup) SetNamespaceName(v string) *Workgroup { s.NamespaceName = &v diff --git a/service/resiliencehub/api.go b/service/resiliencehub/api.go index 08ec90f8b8f..051f4b89945 100644 --- a/service/resiliencehub/api.go +++ b/service/resiliencehub/api.go @@ -6671,6 +6671,9 @@ type AlarmRecommendation struct { // RecommendationId is a required field RecommendationId *string `locationName:"recommendationId" type:"string" required:"true"` + // Status of the recommended Amazon CloudWatch alarm. + RecommendationStatus *string `locationName:"recommendationStatus" type:"string" enum:"RecommendationStatus"` + // Reference identifier of the alarm recommendation. // // ReferenceId is a required field @@ -6742,6 +6745,12 @@ func (s *AlarmRecommendation) SetRecommendationId(v string) *AlarmRecommendation return s } +// SetRecommendationStatus sets the RecommendationStatus field's value. +func (s *AlarmRecommendation) SetRecommendationStatus(v string) *AlarmRecommendation { + s.RecommendationStatus = &v + return s +} + // SetReferenceId sets the ReferenceId field's value. func (s *AlarmRecommendation) SetReferenceId(v string) *AlarmRecommendation { s.ReferenceId = &v @@ -14472,8 +14481,10 @@ type PermissionModel struct { // account that will be assumed by Resilience Hub Service Principle to obtain // a read-only access to your application resources while running an assessment. // - // You must have iam:passRole permission for this role while creating or updating - // the application. + // * You must have iam:passRole permission for this role while creating or + // updating the application. + // + // * Currently, invokerRoleName accepts only [A-Za-z0-9_+=,.@-] characters. InvokerRoleName *string `locationName:"invokerRoleName" type:"string"` // Defines how Resilience Hub scans your resources. It can scan for the resources @@ -14574,7 +14585,7 @@ type PhysicalResource struct { // The name of the resource. ResourceName *string `locationName:"resourceName" type:"string"` - // Type of resource. + // The type of resource. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -15708,6 +15719,13 @@ func (s *ResiliencyPolicy) SetTier(v string) *ResiliencyPolicy { type ResiliencyScore struct { _ struct{} `type:"structure"` + // The score generated by Resilience Hub for the scoring component after running + // an assessment. + // + // For example, if the score is 25 points, it indicates the overall score of + // your application generated by Resilience Hub after running an assessment. + ComponentScore map[string]*ScoringComponentResiliencyScore `locationName:"componentScore" type:"map"` + // The disruption score for a valid key. // // DisruptionScore is a required field @@ -15737,6 +15755,12 @@ func (s ResiliencyScore) GoString() string { return s.String() } +// SetComponentScore sets the ComponentScore field's value. +func (s *ResiliencyScore) SetComponentScore(v map[string]*ScoringComponentResiliencyScore) *ResiliencyScore { + s.ComponentScore = v + return s +} + // SetDisruptionScore sets the DisruptionScore field's value. func (s *ResiliencyScore) SetDisruptionScore(v map[string]*float64) *ResiliencyScore { s.DisruptionScore = v @@ -16236,6 +16260,81 @@ func (s *S3Location) SetPrefix(v string) *S3Location { return s } +// Resiliency score of each scoring component. For more information about scoring +// component, see Calculating resiliency score (https://docs.aws.amazon.com/resilience-hub/latest/userguide/calculate-score.html). +type ScoringComponentResiliencyScore struct { + _ struct{} `type:"structure"` + + // Number of recommendations that were excluded from the assessment. + // + // For example, if the Excluded count for Resilience Hub recommended Amazon + // CloudWatch alarms is 7, it indicates that 7 Amazon CloudWatch alarms are + // excluded from the assessment. + ExcludedCount *int64 `locationName:"excludedCount" type:"long"` + + // Number of issues that must be resolved to obtain the maximum possible score + // for the scoring component. For SOPs, alarms, and FIS experiments, these are + // the number of recommendations that must be implemented. For compliance, it + // is the number of Application Components that has breached the resiliency + // policy. + // + // For example, if the Outstanding count for Resilience Hub recommended Amazon + // CloudWatch alarms is 5, it indicates that 5 Amazon CloudWatch alarms must + // be fixed to achieve the maximum possible score. + OutstandingCount *int64 `locationName:"outstandingCount" type:"long"` + + // Maximum possible score that can be obtained for the scoring component. If + // the Possible score is 20 points, it indicates the maximum possible score + // you can achieve for your application when you run a new assessment after + // implementing all the Resilience Hub recommendations. + PossibleScore *float64 `locationName:"possibleScore" type:"double"` + + // Resiliency score of your application. + Score *float64 `locationName:"score" type:"double"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScoringComponentResiliencyScore) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScoringComponentResiliencyScore) GoString() string { + return s.String() +} + +// SetExcludedCount sets the ExcludedCount field's value. +func (s *ScoringComponentResiliencyScore) SetExcludedCount(v int64) *ScoringComponentResiliencyScore { + s.ExcludedCount = &v + return s +} + +// SetOutstandingCount sets the OutstandingCount field's value. +func (s *ScoringComponentResiliencyScore) SetOutstandingCount(v int64) *ScoringComponentResiliencyScore { + s.OutstandingCount = &v + return s +} + +// SetPossibleScore sets the PossibleScore field's value. +func (s *ScoringComponentResiliencyScore) SetPossibleScore(v float64) *ScoringComponentResiliencyScore { + s.PossibleScore = &v + return s +} + +// SetScore sets the Score field's value. +func (s *ScoringComponentResiliencyScore) SetScore(v float64) *ScoringComponentResiliencyScore { + s.Score = &v + return s +} + // This exception occurs when you have exceeded your service quota. To perform // the requested action, remove some of the relevant resources, or use Service // Quotas to request a service quota increase. @@ -16326,6 +16425,9 @@ type SopRecommendation struct { // RecommendationId is a required field RecommendationId *string `locationName:"recommendationId" type:"string" required:"true"` + // Status of the recommended standard operating procedure. + RecommendationStatus *string `locationName:"recommendationStatus" type:"string" enum:"RecommendationStatus"` + // Reference identifier for the SOP recommendation. // // ReferenceId is a required field @@ -16391,6 +16493,12 @@ func (s *SopRecommendation) SetRecommendationId(v string) *SopRecommendation { return s } +// SetRecommendationStatus sets the RecommendationStatus field's value. +func (s *SopRecommendation) SetRecommendationStatus(v string) *SopRecommendation { + s.RecommendationStatus = &v + return s +} + // SetReferenceId sets the ReferenceId field's value. func (s *SopRecommendation) SetReferenceId(v string) *SopRecommendation { s.ReferenceId = &v @@ -16712,6 +16820,9 @@ type TestRecommendation struct { // Identifier for the test recommendation. RecommendationId *string `locationName:"recommendationId" type:"string"` + // Status of the recommended test. + RecommendationStatus *string `locationName:"recommendationStatus" type:"string" enum:"RecommendationStatus"` + // Reference identifier for the test recommendation. // // ReferenceId is a required field @@ -16790,6 +16901,12 @@ func (s *TestRecommendation) SetRecommendationId(v string) *TestRecommendation { return s } +// SetRecommendationStatus sets the RecommendationStatus field's value. +func (s *TestRecommendation) SetRecommendationStatus(v string) *TestRecommendation { + s.RecommendationStatus = &v + return s +} + // SetReferenceId sets the ReferenceId field's value. func (s *TestRecommendation) SetReferenceId(v string) *TestRecommendation { s.ReferenceId = &v @@ -18503,6 +18620,30 @@ func RecommendationComplianceStatus_Values() []string { } } +const ( + // RecommendationStatusImplemented is a RecommendationStatus enum value + RecommendationStatusImplemented = "Implemented" + + // RecommendationStatusInactive is a RecommendationStatus enum value + RecommendationStatusInactive = "Inactive" + + // RecommendationStatusNotImplemented is a RecommendationStatus enum value + RecommendationStatusNotImplemented = "NotImplemented" + + // RecommendationStatusExcluded is a RecommendationStatus enum value + RecommendationStatusExcluded = "Excluded" +) + +// RecommendationStatus_Values returns all elements of the RecommendationStatus enum +func RecommendationStatus_Values() []string { + return []string{ + RecommendationStatusImplemented, + RecommendationStatusInactive, + RecommendationStatusNotImplemented, + RecommendationStatusExcluded, + } +} + const ( // RecommendationTemplateStatusPending is a RecommendationTemplateStatus enum value RecommendationTemplateStatusPending = "Pending" @@ -18579,6 +18720,30 @@ func ResiliencyPolicyTier_Values() []string { } } +const ( + // ResiliencyScoreTypeCompliance is a ResiliencyScoreType enum value + ResiliencyScoreTypeCompliance = "Compliance" + + // ResiliencyScoreTypeTest is a ResiliencyScoreType enum value + ResiliencyScoreTypeTest = "Test" + + // ResiliencyScoreTypeAlarm is a ResiliencyScoreType enum value + ResiliencyScoreTypeAlarm = "Alarm" + + // ResiliencyScoreTypeSop is a ResiliencyScoreType enum value + ResiliencyScoreTypeSop = "Sop" +) + +// ResiliencyScoreType_Values returns all elements of the ResiliencyScoreType enum +func ResiliencyScoreType_Values() []string { + return []string{ + ResiliencyScoreTypeCompliance, + ResiliencyScoreTypeTest, + ResiliencyScoreTypeAlarm, + ResiliencyScoreTypeSop, + } +} + const ( // ResourceImportStatusTypePending is a ResourceImportStatusType enum value ResourceImportStatusTypePending = "Pending" diff --git a/service/sqs/api.go b/service/sqs/api.go index 33020b3113f..cc789fe1621 100644 --- a/service/sqs/api.go +++ b/service/sqs/api.go @@ -9,7 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/query" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opAddPermission = "AddPermission" @@ -50,7 +50,7 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ output = &AddPermissionOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -89,13 +89,41 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Queue Service's // API operation AddPermission for usage and error information. // -// Returned Error Codes: -// - ErrCodeOverLimit "OverLimit" +// Returned Error Types: +// +// - OverLimit // The specified action violates a limit. For example, ReceiveMessage returns // this error if the maximum number of in flight messages is reached and AddPermission // returns this error if the maximum number of permissions for the queue is // reached. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/AddPermission func (c *SQS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { req, out := c.AddPermissionRequest(input) @@ -185,12 +213,33 @@ func (c *SQS) CancelMessageMoveTaskRequest(input *CancelMessageMoveTaskInput) (r // See the AWS API reference guide for Amazon Simple Queue Service's // API operation CancelMessageMoveTask for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeResourceNotFoundException "ResourceNotFoundException" +// - ResourceNotFoundException // One or more specified resources don't exist. // -// - ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation // Error code 400. Unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/CancelMessageMoveTask @@ -253,7 +302,7 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput output = &ChangeMessageVisibilityOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -321,14 +370,41 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ChangeMessageVisibility for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeMessageNotInflight "AWS.SimpleQueueService.MessageNotInflight" +// - MessageNotInflight // The specified message isn't in flight. // -// - ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" +// - ReceiptHandleIsInvalid // The specified receipt handle isn't valid. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibility func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*ChangeMessageVisibilityOutput, error) { req, out := c.ChangeMessageVisibilityRequest(input) @@ -410,20 +486,47 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ChangeMessageVisibilityBatch for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" +// - TooManyEntriesInBatchRequest // The batch request contains more entries than permissible. // -// - ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" +// - EmptyBatchRequest // The batch request doesn't contain any entries. // -// - ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" +// - BatchEntryIdsNotDistinct // Two or more batch entries in the request have the same Id. // -// - ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" +// - InvalidBatchEntryId // The Id of a batch entry in a batch request doesn't abide by the specification. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibilityBatch func (c *SQS) ChangeMessageVisibilityBatch(input *ChangeMessageVisibilityBatchInput) (*ChangeMessageVisibilityBatchOutput, error) { req, out := c.ChangeMessageVisibilityBatchRequest(input) @@ -534,17 +637,47 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Queue Service's // API operation CreateQueue for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeQueueDeletedRecently "AWS.SimpleQueueService.QueueDeletedRecently" +// - QueueDeletedRecently // You must wait 60 seconds after deleting a queue before you can create another // queue with the same name. // -// - ErrCodeQueueNameExists "QueueAlreadyExists" +// - QueueNameExists // A queue with this name already exists. Amazon SQS returns this error only // if the request includes attributes whose values differ from those of the // existing queue. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidAttributeName +// The specified attribute doesn't exist. +// +// - InvalidAttributeValue +// A queue attribute value is invalid. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/CreateQueue func (c *SQS) CreateQueue(input *CreateQueueInput) (*CreateQueueOutput, error) { req, out := c.CreateQueueRequest(input) @@ -605,7 +738,7 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ output = &DeleteMessageOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -639,14 +772,41 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Queue Service's // API operation DeleteMessage for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeInvalidIdFormat "InvalidIdFormat" +// - InvalidIdFormat // The specified receipt handle isn't valid for the current version. // -// - ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" +// - ReceiptHandleIsInvalid // The specified receipt handle isn't valid. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - InvalidAddress +// The accountId is invalid. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessage func (c *SQS) DeleteMessage(input *DeleteMessageInput) (*DeleteMessageOutput, error) { req, out := c.DeleteMessageRequest(input) @@ -727,20 +887,47 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // See the AWS API reference guide for Amazon Simple Queue Service's // API operation DeleteMessageBatch for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" +// - TooManyEntriesInBatchRequest // The batch request contains more entries than permissible. // -// - ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" +// - EmptyBatchRequest // The batch request doesn't contain any entries. // -// - ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" +// - BatchEntryIdsNotDistinct // Two or more batch entries in the request have the same Id. // -// - ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" +// - InvalidBatchEntryId // The Id of a batch entry in a batch request doesn't abide by the specification. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessageBatch func (c *SQS) DeleteMessageBatch(input *DeleteMessageBatchInput) (*DeleteMessageBatchOutput, error) { req, out := c.DeleteMessageBatchRequest(input) @@ -801,7 +988,7 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, output = &DeleteQueueOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -832,6 +1019,36 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation DeleteQueue for usage and error information. +// +// Returned Error Types: +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidAddress +// The accountId is invalid. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteQueue func (c *SQS) DeleteQueue(input *DeleteQueueInput) (*DeleteQueueOutput, error) { req, out := c.DeleteQueueRequest(input) @@ -909,10 +1126,38 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // See the AWS API reference guide for Amazon Simple Queue Service's // API operation GetQueueAttributes for usage and error information. // -// Returned Error Codes: -// - ErrCodeInvalidAttributeName "InvalidAttributeName" +// Returned Error Types: +// +// - InvalidAttributeName // The specified attribute doesn't exist. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - InvalidAddress +// The accountId is invalid. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueAttributes func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) { req, out := c.GetQueueAttributesRequest(input) @@ -994,10 +1239,35 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Queue Service's // API operation GetQueueUrl for usage and error information. // -// Returned Error Codes: -// - ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" +// Returned Error Types: +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist // The specified queue doesn't exist. // +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrl func (c *SQS) GetQueueUrl(input *GetQueueUrlInput) (*GetQueueUrlOutput, error) { req, out := c.GetQueueUrlRequest(input) @@ -1091,10 +1361,35 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ListDeadLetterSourceQueues for usage and error information. // -// Returned Error Codes: -// - ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" +// Returned Error Types: +// +// - QueueDoesNotExist // The specified queue doesn't exist. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - InvalidAddress +// The accountId is invalid. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListDeadLetterSourceQueues func (c *SQS) ListDeadLetterSourceQueues(input *ListDeadLetterSourceQueuesInput) (*ListDeadLetterSourceQueuesOutput, error) { req, out := c.ListDeadLetterSourceQueuesRequest(input) @@ -1233,12 +1528,33 @@ func (c *SQS) ListMessageMoveTasksRequest(input *ListMessageMoveTasksInput) (req // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ListMessageMoveTasks for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeResourceNotFoundException "ResourceNotFoundException" +// - ResourceNotFoundException // One or more specified resources don't exist. // -// - ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation // Error code 400. Unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListMessageMoveTasks @@ -1320,6 +1636,36 @@ func (c *SQS) ListQueueTagsRequest(input *ListQueueTagsInput) (req *request.Requ // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ListQueueTags for usage and error information. +// +// Returned Error Types: +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListQueueTags func (c *SQS) ListQueueTags(input *ListQueueTagsInput) (*ListQueueTagsOutput, error) { req, out := c.ListQueueTagsRequest(input) @@ -1413,6 +1759,33 @@ func (c *SQS) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, o // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ListQueues for usage and error information. +// +// Returned Error Types: +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - InvalidAddress +// The accountId is invalid. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListQueues func (c *SQS) ListQueues(input *ListQueuesInput) (*ListQueuesOutput, error) { req, out := c.ListQueuesRequest(input) @@ -1524,7 +1897,7 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o output = &PurgeQueueOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -1552,16 +1925,40 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // See the AWS API reference guide for Amazon Simple Queue Service's // API operation PurgeQueue for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" +// - QueueDoesNotExist // The specified queue doesn't exist. // -// - ErrCodePurgeQueueInProgress "AWS.SimpleQueueService.PurgeQueueInProgress" +// - PurgeQueueInProgress // Indicates that the specified queue previously received a PurgeQueue request // within the last 60 seconds (the time it can take to delete the messages in // the queue). // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/PurgeQueue func (c *SQS) PurgeQueue(input *PurgeQueueInput) (*PurgeQueueOutput, error) { req, out := c.PurgeQueueRequest(input) @@ -1682,13 +2079,70 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re // See the AWS API reference guide for Amazon Simple Queue Service's // API operation ReceiveMessage for usage and error information. // -// Returned Error Codes: -// - ErrCodeOverLimit "OverLimit" +// Returned Error Types: +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - OverLimit // The specified action violates a limit. For example, ReceiveMessage returns // this error if the maximum number of in flight messages is reached and AddPermission // returns this error if the maximum number of permissions for the queue is // reached. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - KmsDisabled +// The request was denied due to request throttling. +// +// - KmsInvalidState +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// - KmsNotFound +// The request was rejected because the specified entity or resource could not +// be found. +// +// - KmsOptInRequired +// The request was rejected because the specified key policy isn't syntactically +// or semantically correct. +// +// - KmsThrottled +// Amazon Web Services KMS throttles requests for the following conditions. +// +// - KmsAccessDenied +// The caller doesn't have the required KMS access. +// +// - KmsInvalidKeyUsage +// The request was rejected for one of the following reasons: +// +// - The KeyUsage value of the KMS key is incompatible with the API operation. +// +// - The encryption algorithm or signing algorithm specified for the operation +// is incompatible with the type of key material in the KMS key (KeySpec). +// +// - InvalidAddress +// The accountId is invalid. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ReceiveMessage func (c *SQS) ReceiveMessage(input *ReceiveMessageInput) (*ReceiveMessageOutput, error) { req, out := c.ReceiveMessageRequest(input) @@ -1749,7 +2203,7 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques output = &RemovePermissionOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -1774,6 +2228,36 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation RemovePermission for usage and error information. +// +// Returned Error Types: +// +// - InvalidAddress +// The accountId is invalid. +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/RemovePermission func (c *SQS) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { req, out := c.RemovePermissionRequest(input) @@ -1856,14 +2340,67 @@ func (c *SQS) SendMessageRequest(input *SendMessageInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Queue Service's // API operation SendMessage for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeInvalidMessageContents "InvalidMessageContents" +// - InvalidMessageContents // The message contains characters outside the allowed set. // -// - ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" +// - UnsupportedOperation // Error code 400. Unsupported operation. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - KmsDisabled +// The request was denied due to request throttling. +// +// - KmsInvalidState +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// - KmsNotFound +// The request was rejected because the specified entity or resource could not +// be found. +// +// - KmsOptInRequired +// The request was rejected because the specified key policy isn't syntactically +// or semantically correct. +// +// - KmsThrottled +// Amazon Web Services KMS throttles requests for the following conditions. +// +// - KmsAccessDenied +// The caller doesn't have the required KMS access. +// +// - KmsInvalidKeyUsage +// The request was rejected for one of the following reasons: +// +// - The KeyUsage value of the KMS key is incompatible with the API operation. +// +// - The encryption algorithm or signing algorithm specified for the operation +// is incompatible with the type of key material in the KMS key (KeySpec). +// +// - InvalidAddress +// The accountId is invalid. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessage func (c *SQS) SendMessage(input *SendMessageInput) (*SendMessageOutput, error) { req, out := c.SendMessageRequest(input) @@ -1962,26 +2499,79 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // See the AWS API reference guide for Amazon Simple Queue Service's // API operation SendMessageBatch for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeTooManyEntriesInBatchRequest "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" +// - TooManyEntriesInBatchRequest // The batch request contains more entries than permissible. // -// - ErrCodeEmptyBatchRequest "AWS.SimpleQueueService.EmptyBatchRequest" +// - EmptyBatchRequest // The batch request doesn't contain any entries. // -// - ErrCodeBatchEntryIdsNotDistinct "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" +// - BatchEntryIdsNotDistinct // Two or more batch entries in the request have the same Id. // -// - ErrCodeBatchRequestTooLong "AWS.SimpleQueueService.BatchRequestTooLong" +// - BatchRequestTooLong // The length of all the messages put together is more than the limit. // -// - ErrCodeInvalidBatchEntryId "AWS.SimpleQueueService.InvalidBatchEntryId" +// - InvalidBatchEntryId // The Id of a batch entry in a batch request doesn't abide by the specification. // -// - ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" +// - UnsupportedOperation // Error code 400. Unsupported operation. // +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - KmsDisabled +// The request was denied due to request throttling. +// +// - KmsInvalidState +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// - KmsNotFound +// The request was rejected because the specified entity or resource could not +// be found. +// +// - KmsOptInRequired +// The request was rejected because the specified key policy isn't syntactically +// or semantically correct. +// +// - KmsThrottled +// Amazon Web Services KMS throttles requests for the following conditions. +// +// - KmsAccessDenied +// The caller doesn't have the required KMS access. +// +// - KmsInvalidKeyUsage +// The request was rejected for one of the following reasons: +// +// - The KeyUsage value of the KMS key is incompatible with the API operation. +// +// - The encryption algorithm or signing algorithm specified for the operation +// is incompatible with the type of key material in the KMS key (KeySpec). +// +// - InvalidAddress +// The accountId is invalid. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatch func (c *SQS) SendMessageBatch(input *SendMessageBatchInput) (*SendMessageBatchOutput, error) { req, out := c.SendMessageBatchRequest(input) @@ -2042,7 +2632,7 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re output = &SetQueueAttributesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -2074,10 +2664,47 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // See the AWS API reference guide for Amazon Simple Queue Service's // API operation SetQueueAttributes for usage and error information. // -// Returned Error Codes: -// - ErrCodeInvalidAttributeName "InvalidAttributeName" +// Returned Error Types: +// +// - InvalidAttributeName // The specified attribute doesn't exist. // +// - InvalidAttributeValue +// A queue attribute value is invalid. +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// - OverLimit +// The specified action violates a limit. For example, ReceiveMessage returns +// this error if the maximum number of in flight messages is reached and AddPermission +// returns this error if the maximum number of permissions for the queue is +// reached. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SetQueueAttributes func (c *SQS) SetQueueAttributes(input *SetQueueAttributesInput) (*SetQueueAttributesOutput, error) { req, out := c.SetQueueAttributesRequest(input) @@ -2169,12 +2796,33 @@ func (c *SQS) StartMessageMoveTaskRequest(input *StartMessageMoveTaskInput) (req // See the AWS API reference guide for Amazon Simple Queue Service's // API operation StartMessageMoveTask for usage and error information. // -// Returned Error Codes: +// Returned Error Types: // -// - ErrCodeResourceNotFoundException "ResourceNotFoundException" +// - ResourceNotFoundException // One or more specified resources don't exist. // -// - ErrCodeUnsupportedOperation "AWS.SimpleQueueService.UnsupportedOperation" +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - InvalidAddress +// The accountId is invalid. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation // Error code 400. Unsupported operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/StartMessageMoveTask @@ -2237,7 +2885,7 @@ func (c *SQS) TagQueueRequest(input *TagQueueInput) (req *request.Request, outpu output = &TagQueueOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -2272,6 +2920,36 @@ func (c *SQS) TagQueueRequest(input *TagQueueInput) (req *request.Request, outpu // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation TagQueue for usage and error information. +// +// Returned Error Types: +// +// - InvalidAddress +// The accountId is invalid. +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/TagQueue func (c *SQS) TagQueue(input *TagQueueInput) (*TagQueueOutput, error) { req, out := c.TagQueueRequest(input) @@ -2332,7 +3010,7 @@ func (c *SQS) UntagQueueRequest(input *UntagQueueInput) (req *request.Request, o output = &UntagQueueOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } @@ -2352,18 +3030,48 @@ func (c *SQS) UntagQueueRequest(input *UntagQueueInput) (req *request.Request, o // // See the AWS API reference guide for Amazon Simple Queue Service's // API operation UntagQueue for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/UntagQueue -func (c *SQS) UntagQueue(input *UntagQueueInput) (*UntagQueueOutput, error) { - req, out := c.UntagQueueRequest(input) - return out, req.Send() -} - -// UntagQueueWithContext is the same as UntagQueue with the addition of -// the ability to pass a context and additional request options. // -// See UntagQueue for details on how to use this API operation. +// Returned Error Types: // -// The context must be non-nil and will be used for request cancellation. If +// - InvalidAddress +// The accountId is invalid. +// +// - RequestThrottled +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +// +// - QueueDoesNotExist +// The specified queue doesn't exist. +// +// - InvalidSecurity +// When the request to a queue is not HTTPS and SigV4. +// +// - UnsupportedOperation +// Error code 400. Unsupported operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/UntagQueue +func (c *SQS) UntagQueue(input *UntagQueueInput) (*UntagQueueOutput, error) { + req, out := c.UntagQueueRequest(input) + return out, req.Send() +} + +// UntagQueueWithContext is the same as UntagQueue with the addition of +// the ability to pass a context and additional request options. +// +// See UntagQueue for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. @@ -2384,7 +3092,7 @@ type AddPermissionInput struct { // in the Amazon SQS Developer Guide. // // AWSAccountIds is a required field - AWSAccountIds []*string `locationNameList:"AWSAccountId" type:"list" flattened:"true" required:"true"` + AWSAccountIds []*string `type:"list" flattened:"true" required:"true"` // The action the client wants to allow for the specified principal. Valid values: // the name of any action or *. @@ -2398,7 +3106,7 @@ type AddPermissionInput struct { // SendMessageBatch, DeleteMessageBatch, and ChangeMessageVisibilityBatch. // // Actions is a required field - Actions []*string `locationNameList:"ActionName" type:"list" flattened:"true" required:"true"` + Actions []*string `type:"list" flattened:"true" required:"true"` // The unique identification of the permission you're setting (for example, // AliceSendMessage). Maximum 80 characters. Allowed characters include alphanumeric @@ -2501,6 +3209,154 @@ func (s AddPermissionOutput) GoString() string { return s.String() } +// Two or more batch entries in the request have the same Id. +type BatchEntryIdsNotDistinct struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchEntryIdsNotDistinct) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchEntryIdsNotDistinct) GoString() string { + return s.String() +} + +func newErrorBatchEntryIdsNotDistinct(v protocol.ResponseMetadata) error { + return &BatchEntryIdsNotDistinct{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorBatchEntryIdsNotDistinct(v protocol.ResponseMetadata, code string) error { + return &BatchEntryIdsNotDistinct{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *BatchEntryIdsNotDistinct) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "BatchEntryIdsNotDistinct" +} + +// Message returns the exception's message. +func (s *BatchEntryIdsNotDistinct) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BatchEntryIdsNotDistinct) OrigErr() error { + return nil +} + +func (s *BatchEntryIdsNotDistinct) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *BatchEntryIdsNotDistinct) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BatchEntryIdsNotDistinct) RequestID() string { + return s.RespMetadata.RequestID +} + +// The length of all the messages put together is more than the limit. +type BatchRequestTooLong struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchRequestTooLong) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchRequestTooLong) GoString() string { + return s.String() +} + +func newErrorBatchRequestTooLong(v protocol.ResponseMetadata) error { + return &BatchRequestTooLong{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorBatchRequestTooLong(v protocol.ResponseMetadata, code string) error { + return &BatchRequestTooLong{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *BatchRequestTooLong) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "BatchRequestTooLong" +} + +// Message returns the exception's message. +func (s *BatchRequestTooLong) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BatchRequestTooLong) OrigErr() error { + return nil +} + +func (s *BatchRequestTooLong) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *BatchRequestTooLong) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BatchRequestTooLong) RequestID() string { + return s.RespMetadata.RequestID +} + // Gives a detailed description of the result of an action on each entry in // the request. type BatchResultErrorEntry struct { @@ -2651,7 +3507,7 @@ type ChangeMessageVisibilityBatchInput struct { // must be changed. // // Entries is a required field - Entries []*ChangeMessageVisibilityBatchRequestEntry `locationNameList:"ChangeMessageVisibilityBatchRequestEntry" type:"list" flattened:"true" required:"true"` + Entries []*ChangeMessageVisibilityBatchRequestEntry `type:"list" flattened:"true" required:"true"` // The URL of the Amazon SQS queue whose messages' visibility is changed. // @@ -2726,12 +3582,12 @@ type ChangeMessageVisibilityBatchOutput struct { // A list of BatchResultErrorEntry items. // // Failed is a required field - Failed []*BatchResultErrorEntry `locationNameList:"BatchResultErrorEntry" type:"list" flattened:"true" required:"true"` + Failed []*BatchResultErrorEntry `type:"list" flattened:"true" required:"true"` // A list of ChangeMessageVisibilityBatchResultEntry items. // // Successful is a required field - Successful []*ChangeMessageVisibilityBatchResultEntry `locationNameList:"ChangeMessageVisibilityBatchResultEntry" type:"list" flattened:"true" required:"true"` + Successful []*ChangeMessageVisibilityBatchResultEntry `type:"list" flattened:"true" required:"true"` } // String returns the string representation. @@ -3123,7 +3979,7 @@ type CreateQueueInput struct { // // For information on throughput quotas, see Quotas related to messages (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html) // in the Amazon SQS Developer Guide. - Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + Attributes map[string]*string `type:"map" flattened:"true"` // The name of the new queue. The following limits apply to this name: // @@ -3164,7 +4020,7 @@ type CreateQueueInput struct { // Cross-account permissions don't apply to this action. For more information, // see Grant cross-account permissions to a role and a username (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon SQS Developer Guide. - Tags map[string]*string `locationName:"Tag" locationNameKey:"Key" locationNameValue:"Value" type:"map" flattened:"true"` + Tags map[string]*string `locationName:"tags" type:"map" flattened:"true"` } // String returns the string representation. @@ -3254,7 +4110,7 @@ type DeleteMessageBatchInput struct { // Lists the receipt handles for the messages to be deleted. // // Entries is a required field - Entries []*DeleteMessageBatchRequestEntry `locationNameList:"DeleteMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"` + Entries []*DeleteMessageBatchRequestEntry `type:"list" flattened:"true" required:"true"` // The URL of the Amazon SQS queue from which messages are deleted. // @@ -3329,12 +4185,12 @@ type DeleteMessageBatchOutput struct { // A list of BatchResultErrorEntry items. // // Failed is a required field - Failed []*BatchResultErrorEntry `locationNameList:"BatchResultErrorEntry" type:"list" flattened:"true" required:"true"` + Failed []*BatchResultErrorEntry `type:"list" flattened:"true" required:"true"` // A list of DeleteMessageBatchResultEntry items. // // Successful is a required field - Successful []*DeleteMessageBatchResultEntry `locationNameList:"DeleteMessageBatchResultEntry" type:"list" flattened:"true" required:"true"` + Successful []*DeleteMessageBatchResultEntry `type:"list" flattened:"true" required:"true"` } // String returns the string representation. @@ -3622,6 +4478,80 @@ func (s DeleteQueueOutput) GoString() string { return s.String() } +// The batch request doesn't contain any entries. +type EmptyBatchRequest struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EmptyBatchRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EmptyBatchRequest) GoString() string { + return s.String() +} + +func newErrorEmptyBatchRequest(v protocol.ResponseMetadata) error { + return &EmptyBatchRequest{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorEmptyBatchRequest(v protocol.ResponseMetadata, code string) error { + return &EmptyBatchRequest{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *EmptyBatchRequest) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "EmptyBatchRequest" +} + +// Message returns the exception's message. +func (s *EmptyBatchRequest) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *EmptyBatchRequest) OrigErr() error { + return nil +} + +func (s *EmptyBatchRequest) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *EmptyBatchRequest) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *EmptyBatchRequest) RequestID() string { + return s.RespMetadata.RequestID +} + type GetQueueAttributesInput struct { _ struct{} `type:"structure"` @@ -3772,7 +4702,7 @@ type GetQueueAttributesInput struct { // // For information on throughput quotas, see Quotas related to messages (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html) // in the Amazon SQS Developer Guide. - AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true" enum:"QueueAttributeName"` + AttributeNames []*string `type:"list" flattened:"true" enum:"QueueAttributeName"` // The URL of the Amazon SQS queue whose attribute information is retrieved. // @@ -3830,7 +4760,7 @@ type GetQueueAttributesOutput struct { _ struct{} `type:"structure"` // A map of attributes to their respective values. - Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + Attributes map[string]*string `type:"map" flattened:"true"` } // String returns the string representation. @@ -3948,22 +4878,13 @@ func (s *GetQueueUrlOutput) SetQueueUrl(v string) *GetQueueUrlOutput { return s } -type ListDeadLetterSourceQueuesInput struct { - _ struct{} `type:"structure"` - - // Maximum number of results to include in the response. Value range is 1 to - // 1000. You must set MaxResults to receive a value for NextToken in the response. - MaxResults *int64 `type:"integer"` - - // Pagination token to request the next set of results. - NextToken *string `type:"string"` +// The accountId is invalid. +type InvalidAddress struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string - // The URL of a dead-letter queue. - // - // Queue URLs and names are case-sensitive. - // - // QueueUrl is a required field - QueueUrl *string `type:"string" required:"true"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -3971,7 +4892,7 @@ type ListDeadLetterSourceQueuesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListDeadLetterSourceQueuesInput) String() string { +func (s InvalidAddress) String() string { return awsutil.Prettify(s) } @@ -3980,55 +4901,64 @@ func (s ListDeadLetterSourceQueuesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListDeadLetterSourceQueuesInput) GoString() string { +func (s InvalidAddress) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDeadLetterSourceQueuesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDeadLetterSourceQueuesInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) +func newErrorInvalidAddress(v protocol.ResponseMetadata) error { + return &InvalidAddress{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorInvalidAddress(v protocol.ResponseMetadata, code string) error { + return &InvalidAddress{ + RespMetadata: v, + Code_: &code, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *InvalidAddress) Code() string { + if s.Code_ != nil { + return *s.Code_ } - return nil + return "InvalidAddress" } -// SetMaxResults sets the MaxResults field's value. -func (s *ListDeadLetterSourceQueuesInput) SetMaxResults(v int64) *ListDeadLetterSourceQueuesInput { - s.MaxResults = &v - return s +// Message returns the exception's message. +func (s *InvalidAddress) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetNextToken sets the NextToken field's value. -func (s *ListDeadLetterSourceQueuesInput) SetNextToken(v string) *ListDeadLetterSourceQueuesInput { - s.NextToken = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidAddress) OrigErr() error { + return nil } -// SetQueueUrl sets the QueueUrl field's value. -func (s *ListDeadLetterSourceQueuesInput) SetQueueUrl(v string) *ListDeadLetterSourceQueuesInput { - s.QueueUrl = &v - return s +func (s *InvalidAddress) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// A list of your dead letter source queues. -type ListDeadLetterSourceQueuesOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidAddress) StatusCode() int { + return s.RespMetadata.StatusCode +} - // Pagination token to include in the next request. Token value is null if there - // are no additional results to request, or if you did not set MaxResults in - // the request. - NextToken *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s *InvalidAddress) RequestID() string { + return s.RespMetadata.RequestID +} - // A list of source queue URLs that have the RedrivePolicy queue attribute configured - // with a dead-letter queue. - // - // QueueUrls is a required field - QueueUrls []*string `locationName:"queueUrls" locationNameList:"QueueUrl" type:"list" flattened:"true" required:"true"` +// The specified attribute doesn't exist. +type InvalidAttributeName struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4036,7 +4966,7 @@ type ListDeadLetterSourceQueuesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListDeadLetterSourceQueuesOutput) String() string { +func (s InvalidAttributeName) String() string { return awsutil.Prettify(s) } @@ -4045,34 +4975,64 @@ func (s ListDeadLetterSourceQueuesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListDeadLetterSourceQueuesOutput) GoString() string { +func (s InvalidAttributeName) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListDeadLetterSourceQueuesOutput) SetNextToken(v string) *ListDeadLetterSourceQueuesOutput { - s.NextToken = &v - return s +func newErrorInvalidAttributeName(v protocol.ResponseMetadata) error { + return &InvalidAttributeName{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorInvalidAttributeName(v protocol.ResponseMetadata, code string) error { + return &InvalidAttributeName{ + RespMetadata: v, + Code_: &code, + } } -// SetQueueUrls sets the QueueUrls field's value. -func (s *ListDeadLetterSourceQueuesOutput) SetQueueUrls(v []*string) *ListDeadLetterSourceQueuesOutput { - s.QueueUrls = v - return s +// Code returns the exception type name. +func (s *InvalidAttributeName) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "InvalidAttributeName" } -type ListMessageMoveTasksInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s *InvalidAttributeName) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The maximum number of results to include in the response. The default is - // 1, which provides the most recent message movement task. The upper limit - // is 10. - MaxResults *int64 `type:"integer"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidAttributeName) OrigErr() error { + return nil +} - // The ARN of the queue whose message movement tasks are to be listed. - // - // SourceArn is a required field - SourceArn *string `type:"string" required:"true"` +func (s *InvalidAttributeName) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidAttributeName) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidAttributeName) RequestID() string { + return s.RespMetadata.RequestID +} + +// A queue attribute value is invalid. +type InvalidAttributeValue struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4080,7 +5040,7 @@ type ListMessageMoveTasksInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMessageMoveTasksInput) String() string { +func (s InvalidAttributeValue) String() string { return awsutil.Prettify(s) } @@ -4089,40 +5049,64 @@ func (s ListMessageMoveTasksInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMessageMoveTasksInput) GoString() string { +func (s InvalidAttributeValue) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListMessageMoveTasksInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMessageMoveTasksInput"} - if s.SourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("SourceArn")) +func newErrorInvalidAttributeValue(v protocol.ResponseMetadata) error { + return &InvalidAttributeValue{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorInvalidAttributeValue(v protocol.ResponseMetadata, code string) error { + return &InvalidAttributeValue{ + RespMetadata: v, + Code_: &code, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *InvalidAttributeValue) Code() string { + if s.Code_ != nil { + return *s.Code_ } - return nil + return "InvalidAttributeValue" } -// SetMaxResults sets the MaxResults field's value. -func (s *ListMessageMoveTasksInput) SetMaxResults(v int64) *ListMessageMoveTasksInput { - s.MaxResults = &v - return s +// Message returns the exception's message. +func (s *InvalidAttributeValue) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetSourceArn sets the SourceArn field's value. -func (s *ListMessageMoveTasksInput) SetSourceArn(v string) *ListMessageMoveTasksInput { - s.SourceArn = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidAttributeValue) OrigErr() error { + return nil } -type ListMessageMoveTasksOutput struct { - _ struct{} `type:"structure"` +func (s *InvalidAttributeValue) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A list of message movement tasks and their attributes. - Results []*ListMessageMoveTasksResultEntry `locationNameList:"ListMessageMoveTasksResultEntry" type:"list" flattened:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidAttributeValue) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidAttributeValue) RequestID() string { + return s.RespMetadata.RequestID +} + +// The Id of a batch entry in a batch request doesn't abide by the specification. +type InvalidBatchEntryId struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4130,7 +5114,7 @@ type ListMessageMoveTasksOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMessageMoveTasksOutput) String() string { +func (s InvalidBatchEntryId) String() string { return awsutil.Prettify(s) } @@ -4139,55 +5123,66 @@ func (s ListMessageMoveTasksOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMessageMoveTasksOutput) GoString() string { +func (s InvalidBatchEntryId) GoString() string { return s.String() } -// SetResults sets the Results field's value. -func (s *ListMessageMoveTasksOutput) SetResults(v []*ListMessageMoveTasksResultEntry) *ListMessageMoveTasksOutput { - s.Results = v - return s +func newErrorInvalidBatchEntryId(v protocol.ResponseMetadata) error { + return &InvalidBatchEntryId{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorInvalidBatchEntryId(v protocol.ResponseMetadata, code string) error { + return &InvalidBatchEntryId{ + RespMetadata: v, + Code_: &code, + } } -// Contains the details of a message movement task. -type ListMessageMoveTasksResultEntry struct { - _ struct{} `type:"structure"` - - // The approximate number of messages already moved to the destination queue. - ApproximateNumberOfMessagesMoved *int64 `type:"long"` - - // The number of messages to be moved from the source queue. This number is - // obtained at the time of starting the message movement task. - ApproximateNumberOfMessagesToMove *int64 `type:"long"` +// Code returns the exception type name. +func (s *InvalidBatchEntryId) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "InvalidBatchEntryId" +} - // The ARN of the destination queue if it has been specified in the StartMessageMoveTask - // request. If a DestinationArn has not been specified in the StartMessageMoveTask - // request, this field value will be NULL. - DestinationArn *string `type:"string"` +// Message returns the exception's message. +func (s *InvalidBatchEntryId) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The task failure reason (only included if the task status is FAILED). - FailureReason *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidBatchEntryId) OrigErr() error { + return nil +} - // The number of messages to be moved per second (the message movement rate), - // if it has been specified in the StartMessageMoveTask request. If a MaxNumberOfMessagesPerSecond - // has not been specified in the StartMessageMoveTask request, this field value - // will be NULL. - MaxNumberOfMessagesPerSecond *int64 `type:"integer"` +func (s *InvalidBatchEntryId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The ARN of the queue that contains the messages to be moved to another queue. - SourceArn *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidBatchEntryId) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The timestamp of starting the message movement task. - StartedTimestamp *int64 `type:"long"` +// RequestID returns the service's response RequestID for request. +func (s *InvalidBatchEntryId) RequestID() string { + return s.RespMetadata.RequestID +} - // The status of the message movement task. Possible values are: RUNNING, COMPLETED, - // CANCELLING, CANCELLED, and FAILED. - Status *string `type:"string"` +// The specified receipt handle isn't valid for the current version. +// +// Deprecated: exception has been included in ReceiptHandleIsInvalid +type InvalidIdFormat struct { + _ struct{} `deprecated:"true" type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string - // An identifier associated with a message movement task. When this field is - // returned in the response of the ListMessageMoveTasks action, it is only populated - // for tasks that are in RUNNING status. - TaskHandle *string `type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4195,7 +5190,7 @@ type ListMessageMoveTasksResultEntry struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMessageMoveTasksResultEntry) String() string { +func (s InvalidIdFormat) String() string { return awsutil.Prettify(s) } @@ -4204,71 +5199,64 @@ func (s ListMessageMoveTasksResultEntry) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListMessageMoveTasksResultEntry) GoString() string { +func (s InvalidIdFormat) GoString() string { return s.String() } -// SetApproximateNumberOfMessagesMoved sets the ApproximateNumberOfMessagesMoved field's value. -func (s *ListMessageMoveTasksResultEntry) SetApproximateNumberOfMessagesMoved(v int64) *ListMessageMoveTasksResultEntry { - s.ApproximateNumberOfMessagesMoved = &v - return s -} - -// SetApproximateNumberOfMessagesToMove sets the ApproximateNumberOfMessagesToMove field's value. -func (s *ListMessageMoveTasksResultEntry) SetApproximateNumberOfMessagesToMove(v int64) *ListMessageMoveTasksResultEntry { - s.ApproximateNumberOfMessagesToMove = &v - return s +func newErrorInvalidIdFormat(v protocol.ResponseMetadata) error { + return &InvalidIdFormat{ + RespMetadata: v, + } } - -// SetDestinationArn sets the DestinationArn field's value. -func (s *ListMessageMoveTasksResultEntry) SetDestinationArn(v string) *ListMessageMoveTasksResultEntry { - s.DestinationArn = &v - return s +func newQueryCompatibleErrorInvalidIdFormat(v protocol.ResponseMetadata, code string) error { + return &InvalidIdFormat{ + RespMetadata: v, + Code_: &code, + } } -// SetFailureReason sets the FailureReason field's value. -func (s *ListMessageMoveTasksResultEntry) SetFailureReason(v string) *ListMessageMoveTasksResultEntry { - s.FailureReason = &v - return s +// Code returns the exception type name. +func (s *InvalidIdFormat) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "InvalidIdFormat" } -// SetMaxNumberOfMessagesPerSecond sets the MaxNumberOfMessagesPerSecond field's value. -func (s *ListMessageMoveTasksResultEntry) SetMaxNumberOfMessagesPerSecond(v int64) *ListMessageMoveTasksResultEntry { - s.MaxNumberOfMessagesPerSecond = &v - return s +// Message returns the exception's message. +func (s *InvalidIdFormat) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetSourceArn sets the SourceArn field's value. -func (s *ListMessageMoveTasksResultEntry) SetSourceArn(v string) *ListMessageMoveTasksResultEntry { - s.SourceArn = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidIdFormat) OrigErr() error { + return nil } -// SetStartedTimestamp sets the StartedTimestamp field's value. -func (s *ListMessageMoveTasksResultEntry) SetStartedTimestamp(v int64) *ListMessageMoveTasksResultEntry { - s.StartedTimestamp = &v - return s +func (s *InvalidIdFormat) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetStatus sets the Status field's value. -func (s *ListMessageMoveTasksResultEntry) SetStatus(v string) *ListMessageMoveTasksResultEntry { - s.Status = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidIdFormat) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetTaskHandle sets the TaskHandle field's value. -func (s *ListMessageMoveTasksResultEntry) SetTaskHandle(v string) *ListMessageMoveTasksResultEntry { - s.TaskHandle = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *InvalidIdFormat) RequestID() string { + return s.RespMetadata.RequestID } -type ListQueueTagsInput struct { - _ struct{} `type:"structure"` +// The message contains characters outside the allowed set. +type InvalidMessageContents struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string - // The URL of the queue. - // - // QueueUrl is a required field - QueueUrl *string `type:"string" required:"true"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4276,7 +5264,7 @@ type ListQueueTagsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueueTagsInput) String() string { +func (s InvalidMessageContents) String() string { return awsutil.Prettify(s) } @@ -4285,34 +5273,64 @@ func (s ListQueueTagsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueueTagsInput) GoString() string { +func (s InvalidMessageContents) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListQueueTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListQueueTagsInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) +func newErrorInvalidMessageContents(v protocol.ResponseMetadata) error { + return &InvalidMessageContents{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorInvalidMessageContents(v protocol.ResponseMetadata, code string) error { + return &InvalidMessageContents{ + RespMetadata: v, + Code_: &code, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *InvalidMessageContents) Code() string { + if s.Code_ != nil { + return *s.Code_ } + return "InvalidMessageContents" +} + +// Message returns the exception's message. +func (s *InvalidMessageContents) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidMessageContents) OrigErr() error { return nil } -// SetQueueUrl sets the QueueUrl field's value. -func (s *ListQueueTagsInput) SetQueueUrl(v string) *ListQueueTagsInput { - s.QueueUrl = &v - return s +func (s *InvalidMessageContents) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type ListQueueTagsOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidMessageContents) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The list of all tags added to the specified queue. - Tags map[string]*string `locationName:"Tag" locationNameKey:"Key" locationNameValue:"Value" type:"map" flattened:"true"` +// RequestID returns the service's response RequestID for request. +func (s *InvalidMessageContents) RequestID() string { + return s.RespMetadata.RequestID +} + +// When the request to a queue is not HTTPS and SigV4. +type InvalidSecurity struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4320,7 +5338,7 @@ type ListQueueTagsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueueTagsOutput) String() string { +func (s InvalidSecurity) String() string { return awsutil.Prettify(s) } @@ -4329,31 +5347,64 @@ func (s ListQueueTagsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueueTagsOutput) GoString() string { +func (s InvalidSecurity) GoString() string { return s.String() } -// SetTags sets the Tags field's value. -func (s *ListQueueTagsOutput) SetTags(v map[string]*string) *ListQueueTagsOutput { - s.Tags = v - return s +func newErrorInvalidSecurity(v protocol.ResponseMetadata) error { + return &InvalidSecurity{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorInvalidSecurity(v protocol.ResponseMetadata, code string) error { + return &InvalidSecurity{ + RespMetadata: v, + Code_: &code, + } } -type ListQueuesInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s *InvalidSecurity) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "InvalidSecurity" +} - // Maximum number of results to include in the response. Value range is 1 to - // 1000. You must set MaxResults to receive a value for NextToken in the response. - MaxResults *int64 `type:"integer"` +// Message returns the exception's message. +func (s *InvalidSecurity) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // Pagination token to request the next set of results. - NextToken *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidSecurity) OrigErr() error { + return nil +} - // A string to use for filtering the list results. Only those queues whose name - // begins with the specified string are returned. - // - // Queue URLs and names are case-sensitive. - QueueNamePrefix *string `type:"string"` +func (s *InvalidSecurity) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidSecurity) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidSecurity) RequestID() string { + return s.RespMetadata.RequestID +} + +// The caller doesn't have the required KMS access. +type KmsAccessDenied struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4361,7 +5412,7 @@ type ListQueuesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueuesInput) String() string { +func (s KmsAccessDenied) String() string { return awsutil.Prettify(s) } @@ -4370,40 +5421,64 @@ func (s ListQueuesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueuesInput) GoString() string { +func (s KmsAccessDenied) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *ListQueuesInput) SetMaxResults(v int64) *ListQueuesInput { - s.MaxResults = &v - return s +func newErrorKmsAccessDenied(v protocol.ResponseMetadata) error { + return &KmsAccessDenied{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorKmsAccessDenied(v protocol.ResponseMetadata, code string) error { + return &KmsAccessDenied{ + RespMetadata: v, + Code_: &code, + } } -// SetNextToken sets the NextToken field's value. -func (s *ListQueuesInput) SetNextToken(v string) *ListQueuesInput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s *KmsAccessDenied) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "KmsAccessDenied" } -// SetQueueNamePrefix sets the QueueNamePrefix field's value. -func (s *ListQueuesInput) SetQueueNamePrefix(v string) *ListQueuesInput { - s.QueueNamePrefix = &v - return s +// Message returns the exception's message. +func (s *KmsAccessDenied) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// A list of your queues. -type ListQueuesOutput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *KmsAccessDenied) OrigErr() error { + return nil +} - // Pagination token to include in the next request. Token value is null if there - // are no additional results to request, or if you did not set MaxResults in - // the request. - NextToken *string `type:"string"` +func (s *KmsAccessDenied) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A list of queue URLs, up to 1,000 entries, or the value of MaxResults that - // you sent in the request. - QueueUrls []*string `locationNameList:"QueueUrl" type:"list" flattened:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s *KmsAccessDenied) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *KmsAccessDenied) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request was denied due to request throttling. +type KmsDisabled struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4411,7 +5486,7 @@ type ListQueuesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueuesOutput) String() string { +func (s KmsDisabled) String() string { return awsutil.Prettify(s) } @@ -4420,64 +5495,965 @@ func (s ListQueuesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListQueuesOutput) GoString() string { +func (s KmsDisabled) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListQueuesOutput) SetNextToken(v string) *ListQueuesOutput { - s.NextToken = &v - return s +func newErrorKmsDisabled(v protocol.ResponseMetadata) error { + return &KmsDisabled{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorKmsDisabled(v protocol.ResponseMetadata, code string) error { + return &KmsDisabled{ + RespMetadata: v, + Code_: &code, + } } -// SetQueueUrls sets the QueueUrls field's value. -func (s *ListQueuesOutput) SetQueueUrls(v []*string) *ListQueuesOutput { - s.QueueUrls = v - return s +// Code returns the exception type name. +func (s *KmsDisabled) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "KmsDisabled" } -// An Amazon SQS message. -type Message struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s *KmsDisabled) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // A map of the attributes requested in ReceiveMessage to their respective values. - // Supported attributes: - // - // * ApproximateReceiveCount - // - // * ApproximateFirstReceiveTimestamp - // - // * MessageDeduplicationId - // - // * MessageGroupId - // - // * SenderId - // - // * SentTimestamp - // - // * SequenceNumber - // - // ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an - // integer representing the epoch time (http://en.wikipedia.org/wiki/Unix_time) - // in milliseconds. - Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *KmsDisabled) OrigErr() error { + return nil +} - // The message's contents (not URL-encoded). - Body *string `type:"string"` +func (s *KmsDisabled) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // An MD5 digest of the non-URL-encoded message body string. - MD5OfBody *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s *KmsDisabled) StatusCode() int { + return s.RespMetadata.StatusCode +} - // An MD5 digest of the non-URL-encoded message attribute string. You can use - // this attribute to verify that Amazon SQS received the message correctly. - // Amazon SQS URL-decodes the message before creating the MD5 digest. For information +// RequestID returns the service's response RequestID for request. +func (s *KmsDisabled) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request was rejected for one of the following reasons: +// +// - The KeyUsage value of the KMS key is incompatible with the API operation. +// +// - The encryption algorithm or signing algorithm specified for the operation +// is incompatible with the type of key material in the KMS key (KeySpec). +type KmsInvalidKeyUsage struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsInvalidKeyUsage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsInvalidKeyUsage) GoString() string { + return s.String() +} + +func newErrorKmsInvalidKeyUsage(v protocol.ResponseMetadata) error { + return &KmsInvalidKeyUsage{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorKmsInvalidKeyUsage(v protocol.ResponseMetadata, code string) error { + return &KmsInvalidKeyUsage{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *KmsInvalidKeyUsage) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "KmsInvalidKeyUsage" +} + +// Message returns the exception's message. +func (s *KmsInvalidKeyUsage) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *KmsInvalidKeyUsage) OrigErr() error { + return nil +} + +func (s *KmsInvalidKeyUsage) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *KmsInvalidKeyUsage) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *KmsInvalidKeyUsage) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request was rejected because the state of the specified resource is not +// valid for this request. +type KmsInvalidState struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsInvalidState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsInvalidState) GoString() string { + return s.String() +} + +func newErrorKmsInvalidState(v protocol.ResponseMetadata) error { + return &KmsInvalidState{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorKmsInvalidState(v protocol.ResponseMetadata, code string) error { + return &KmsInvalidState{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *KmsInvalidState) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "KmsInvalidState" +} + +// Message returns the exception's message. +func (s *KmsInvalidState) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *KmsInvalidState) OrigErr() error { + return nil +} + +func (s *KmsInvalidState) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *KmsInvalidState) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *KmsInvalidState) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request was rejected because the specified entity or resource could not +// be found. +type KmsNotFound struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsNotFound) GoString() string { + return s.String() +} + +func newErrorKmsNotFound(v protocol.ResponseMetadata) error { + return &KmsNotFound{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorKmsNotFound(v protocol.ResponseMetadata, code string) error { + return &KmsNotFound{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *KmsNotFound) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "KmsNotFound" +} + +// Message returns the exception's message. +func (s *KmsNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *KmsNotFound) OrigErr() error { + return nil +} + +func (s *KmsNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *KmsNotFound) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *KmsNotFound) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request was rejected because the specified key policy isn't syntactically +// or semantically correct. +type KmsOptInRequired struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsOptInRequired) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsOptInRequired) GoString() string { + return s.String() +} + +func newErrorKmsOptInRequired(v protocol.ResponseMetadata) error { + return &KmsOptInRequired{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorKmsOptInRequired(v protocol.ResponseMetadata, code string) error { + return &KmsOptInRequired{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *KmsOptInRequired) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "KmsOptInRequired" +} + +// Message returns the exception's message. +func (s *KmsOptInRequired) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *KmsOptInRequired) OrigErr() error { + return nil +} + +func (s *KmsOptInRequired) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *KmsOptInRequired) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *KmsOptInRequired) RequestID() string { + return s.RespMetadata.RequestID +} + +// Amazon Web Services KMS throttles requests for the following conditions. +type KmsThrottled struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsThrottled) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KmsThrottled) GoString() string { + return s.String() +} + +func newErrorKmsThrottled(v protocol.ResponseMetadata) error { + return &KmsThrottled{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorKmsThrottled(v protocol.ResponseMetadata, code string) error { + return &KmsThrottled{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *KmsThrottled) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "KmsThrottled" +} + +// Message returns the exception's message. +func (s *KmsThrottled) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *KmsThrottled) OrigErr() error { + return nil +} + +func (s *KmsThrottled) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *KmsThrottled) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *KmsThrottled) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListDeadLetterSourceQueuesInput struct { + _ struct{} `type:"structure"` + + // Maximum number of results to include in the response. Value range is 1 to + // 1000. You must set MaxResults to receive a value for NextToken in the response. + MaxResults *int64 `type:"integer"` + + // Pagination token to request the next set of results. + NextToken *string `type:"string"` + + // The URL of a dead-letter queue. + // + // Queue URLs and names are case-sensitive. + // + // QueueUrl is a required field + QueueUrl *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDeadLetterSourceQueuesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDeadLetterSourceQueuesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDeadLetterSourceQueuesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDeadLetterSourceQueuesInput"} + if s.QueueUrl == nil { + invalidParams.Add(request.NewErrParamRequired("QueueUrl")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDeadLetterSourceQueuesInput) SetMaxResults(v int64) *ListDeadLetterSourceQueuesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeadLetterSourceQueuesInput) SetNextToken(v string) *ListDeadLetterSourceQueuesInput { + s.NextToken = &v + return s +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *ListDeadLetterSourceQueuesInput) SetQueueUrl(v string) *ListDeadLetterSourceQueuesInput { + s.QueueUrl = &v + return s +} + +// A list of your dead letter source queues. +type ListDeadLetterSourceQueuesOutput struct { + _ struct{} `type:"structure"` + + // Pagination token to include in the next request. Token value is null if there + // are no additional results to request, or if you did not set MaxResults in + // the request. + NextToken *string `type:"string"` + + // A list of source queue URLs that have the RedrivePolicy queue attribute configured + // with a dead-letter queue. + // + // QueueUrls is a required field + QueueUrls []*string `locationName:"queueUrls" type:"list" flattened:"true" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDeadLetterSourceQueuesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDeadLetterSourceQueuesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeadLetterSourceQueuesOutput) SetNextToken(v string) *ListDeadLetterSourceQueuesOutput { + s.NextToken = &v + return s +} + +// SetQueueUrls sets the QueueUrls field's value. +func (s *ListDeadLetterSourceQueuesOutput) SetQueueUrls(v []*string) *ListDeadLetterSourceQueuesOutput { + s.QueueUrls = v + return s +} + +type ListMessageMoveTasksInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to include in the response. The default is + // 1, which provides the most recent message movement task. The upper limit + // is 10. + MaxResults *int64 `type:"integer"` + + // The ARN of the queue whose message movement tasks are to be listed. + // + // SourceArn is a required field + SourceArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMessageMoveTasksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMessageMoveTasksInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMessageMoveTasksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMessageMoveTasksInput"} + if s.SourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListMessageMoveTasksInput) SetMaxResults(v int64) *ListMessageMoveTasksInput { + s.MaxResults = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *ListMessageMoveTasksInput) SetSourceArn(v string) *ListMessageMoveTasksInput { + s.SourceArn = &v + return s +} + +type ListMessageMoveTasksOutput struct { + _ struct{} `type:"structure"` + + // A list of message movement tasks and their attributes. + Results []*ListMessageMoveTasksResultEntry `type:"list" flattened:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMessageMoveTasksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMessageMoveTasksOutput) GoString() string { + return s.String() +} + +// SetResults sets the Results field's value. +func (s *ListMessageMoveTasksOutput) SetResults(v []*ListMessageMoveTasksResultEntry) *ListMessageMoveTasksOutput { + s.Results = v + return s +} + +// Contains the details of a message movement task. +type ListMessageMoveTasksResultEntry struct { + _ struct{} `type:"structure"` + + // The approximate number of messages already moved to the destination queue. + ApproximateNumberOfMessagesMoved *int64 `type:"long"` + + // The number of messages to be moved from the source queue. This number is + // obtained at the time of starting the message movement task. + ApproximateNumberOfMessagesToMove *int64 `type:"long"` + + // The ARN of the destination queue if it has been specified in the StartMessageMoveTask + // request. If a DestinationArn has not been specified in the StartMessageMoveTask + // request, this field value will be NULL. + DestinationArn *string `type:"string"` + + // The task failure reason (only included if the task status is FAILED). + FailureReason *string `type:"string"` + + // The number of messages to be moved per second (the message movement rate), + // if it has been specified in the StartMessageMoveTask request. If a MaxNumberOfMessagesPerSecond + // has not been specified in the StartMessageMoveTask request, this field value + // will be NULL. + MaxNumberOfMessagesPerSecond *int64 `type:"integer"` + + // The ARN of the queue that contains the messages to be moved to another queue. + SourceArn *string `type:"string"` + + // The timestamp of starting the message movement task. + StartedTimestamp *int64 `type:"long"` + + // The status of the message movement task. Possible values are: RUNNING, COMPLETED, + // CANCELLING, CANCELLED, and FAILED. + Status *string `type:"string" enum:"TaskStatus"` + + // An identifier associated with a message movement task. When this field is + // returned in the response of the ListMessageMoveTasks action, it is only populated + // for tasks that are in RUNNING status. + TaskHandle *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMessageMoveTasksResultEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListMessageMoveTasksResultEntry) GoString() string { + return s.String() +} + +// SetApproximateNumberOfMessagesMoved sets the ApproximateNumberOfMessagesMoved field's value. +func (s *ListMessageMoveTasksResultEntry) SetApproximateNumberOfMessagesMoved(v int64) *ListMessageMoveTasksResultEntry { + s.ApproximateNumberOfMessagesMoved = &v + return s +} + +// SetApproximateNumberOfMessagesToMove sets the ApproximateNumberOfMessagesToMove field's value. +func (s *ListMessageMoveTasksResultEntry) SetApproximateNumberOfMessagesToMove(v int64) *ListMessageMoveTasksResultEntry { + s.ApproximateNumberOfMessagesToMove = &v + return s +} + +// SetDestinationArn sets the DestinationArn field's value. +func (s *ListMessageMoveTasksResultEntry) SetDestinationArn(v string) *ListMessageMoveTasksResultEntry { + s.DestinationArn = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *ListMessageMoveTasksResultEntry) SetFailureReason(v string) *ListMessageMoveTasksResultEntry { + s.FailureReason = &v + return s +} + +// SetMaxNumberOfMessagesPerSecond sets the MaxNumberOfMessagesPerSecond field's value. +func (s *ListMessageMoveTasksResultEntry) SetMaxNumberOfMessagesPerSecond(v int64) *ListMessageMoveTasksResultEntry { + s.MaxNumberOfMessagesPerSecond = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *ListMessageMoveTasksResultEntry) SetSourceArn(v string) *ListMessageMoveTasksResultEntry { + s.SourceArn = &v + return s +} + +// SetStartedTimestamp sets the StartedTimestamp field's value. +func (s *ListMessageMoveTasksResultEntry) SetStartedTimestamp(v int64) *ListMessageMoveTasksResultEntry { + s.StartedTimestamp = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListMessageMoveTasksResultEntry) SetStatus(v string) *ListMessageMoveTasksResultEntry { + s.Status = &v + return s +} + +// SetTaskHandle sets the TaskHandle field's value. +func (s *ListMessageMoveTasksResultEntry) SetTaskHandle(v string) *ListMessageMoveTasksResultEntry { + s.TaskHandle = &v + return s +} + +type ListQueueTagsInput struct { + _ struct{} `type:"structure"` + + // The URL of the queue. + // + // QueueUrl is a required field + QueueUrl *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueueTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueueTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListQueueTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListQueueTagsInput"} + if s.QueueUrl == nil { + invalidParams.Add(request.NewErrParamRequired("QueueUrl")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *ListQueueTagsInput) SetQueueUrl(v string) *ListQueueTagsInput { + s.QueueUrl = &v + return s +} + +type ListQueueTagsOutput struct { + _ struct{} `type:"structure"` + + // The list of all tags added to the specified queue. + Tags map[string]*string `type:"map" flattened:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueueTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueueTagsOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListQueueTagsOutput) SetTags(v map[string]*string) *ListQueueTagsOutput { + s.Tags = v + return s +} + +type ListQueuesInput struct { + _ struct{} `type:"structure"` + + // Maximum number of results to include in the response. Value range is 1 to + // 1000. You must set MaxResults to receive a value for NextToken in the response. + MaxResults *int64 `type:"integer"` + + // Pagination token to request the next set of results. + NextToken *string `type:"string"` + + // A string to use for filtering the list results. Only those queues whose name + // begins with the specified string are returned. + // + // Queue URLs and names are case-sensitive. + QueueNamePrefix *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueuesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueuesInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListQueuesInput) SetMaxResults(v int64) *ListQueuesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListQueuesInput) SetNextToken(v string) *ListQueuesInput { + s.NextToken = &v + return s +} + +// SetQueueNamePrefix sets the QueueNamePrefix field's value. +func (s *ListQueuesInput) SetQueueNamePrefix(v string) *ListQueuesInput { + s.QueueNamePrefix = &v + return s +} + +// A list of your queues. +type ListQueuesOutput struct { + _ struct{} `type:"structure"` + + // Pagination token to include in the next request. Token value is null if there + // are no additional results to request, or if you did not set MaxResults in + // the request. + NextToken *string `type:"string"` + + // A list of queue URLs, up to 1,000 entries, or the value of MaxResults that + // you sent in the request. + QueueUrls []*string `type:"list" flattened:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueuesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListQueuesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListQueuesOutput) SetNextToken(v string) *ListQueuesOutput { + s.NextToken = &v + return s +} + +// SetQueueUrls sets the QueueUrls field's value. +func (s *ListQueuesOutput) SetQueueUrls(v []*string) *ListQueuesOutput { + s.QueueUrls = v + return s +} + +// An Amazon SQS message. +type Message struct { + _ struct{} `type:"structure"` + + // A map of the attributes requested in ReceiveMessage to their respective values. + // Supported attributes: + // + // * ApproximateReceiveCount + // + // * ApproximateFirstReceiveTimestamp + // + // * MessageDeduplicationId + // + // * MessageGroupId + // + // * SenderId + // + // * SentTimestamp + // + // * SequenceNumber + // + // ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an + // integer representing the epoch time (http://en.wikipedia.org/wiki/Unix_time) + // in milliseconds. + Attributes map[string]*string `type:"map" flattened:"true"` + + // The message's contents (not URL-encoded). + Body *string `type:"string"` + + // An MD5 digest of the non-URL-encoded message body string. + MD5OfBody *string `type:"string"` + + // An MD5 digest of the non-URL-encoded message attribute string. You can use + // this attribute to verify that Amazon SQS received the message correctly. + // Amazon SQS URL-decodes the message before creating the MD5 digest. For information // about MD5, see RFC1321 (https://www.ietf.org/rfc/rfc1321.txt). MD5OfMessageAttributes *string `type:"string"` // Each message attribute consists of a Name, Type, and Value. For more information, // see Amazon SQS message attributes (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) // in the Amazon SQS Developer Guide. - MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + MessageAttributes map[string]*MessageAttributeValue `type:"map" flattened:"true"` // A unique identifier for the message. A MessageIdis considered unique across // all Amazon Web Services accounts for an extended period of time. @@ -4560,7 +6536,176 @@ type MessageAttributeValue struct { _ struct{} `type:"structure"` // Not implemented. Reserved for future use. - BinaryListValues [][]byte `locationName:"BinaryListValue" locationNameList:"BinaryListValue" type:"list" flattened:"true"` + BinaryListValues [][]byte `type:"list" flattened:"true"` + + // Binary type attributes can store any binary data, such as compressed data, + // encrypted data, or images. + // BinaryValue is automatically base64 encoded/decoded by the SDK. + BinaryValue []byte `type:"blob"` + + // Amazon SQS supports the following logical data types: String, Number, and + // Binary. For the Number data type, you must use StringValue. + // + // You can also append custom labels. For more information, see Amazon SQS Message + // Attributes (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) + // in the Amazon SQS Developer Guide. + // + // DataType is a required field + DataType *string `type:"string" required:"true"` + + // Not implemented. Reserved for future use. + StringListValues []*string `type:"list" flattened:"true"` + + // Strings are Unicode with UTF-8 binary encoding. For a list of code values, + // see ASCII Printable Characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). + StringValue *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MessageAttributeValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MessageAttributeValue) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MessageAttributeValue) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MessageAttributeValue"} + if s.DataType == nil { + invalidParams.Add(request.NewErrParamRequired("DataType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBinaryListValues sets the BinaryListValues field's value. +func (s *MessageAttributeValue) SetBinaryListValues(v [][]byte) *MessageAttributeValue { + s.BinaryListValues = v + return s +} + +// SetBinaryValue sets the BinaryValue field's value. +func (s *MessageAttributeValue) SetBinaryValue(v []byte) *MessageAttributeValue { + s.BinaryValue = v + return s +} + +// SetDataType sets the DataType field's value. +func (s *MessageAttributeValue) SetDataType(v string) *MessageAttributeValue { + s.DataType = &v + return s +} + +// SetStringListValues sets the StringListValues field's value. +func (s *MessageAttributeValue) SetStringListValues(v []*string) *MessageAttributeValue { + s.StringListValues = v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *MessageAttributeValue) SetStringValue(v string) *MessageAttributeValue { + s.StringValue = &v + return s +} + +// The specified message isn't in flight. +type MessageNotInflight struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MessageNotInflight) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MessageNotInflight) GoString() string { + return s.String() +} + +func newErrorMessageNotInflight(v protocol.ResponseMetadata) error { + return &MessageNotInflight{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorMessageNotInflight(v protocol.ResponseMetadata, code string) error { + return &MessageNotInflight{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *MessageNotInflight) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "MessageNotInflight" +} + +// Message returns the exception's message. +func (s *MessageNotInflight) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *MessageNotInflight) OrigErr() error { + return nil +} + +func (s *MessageNotInflight) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *MessageNotInflight) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *MessageNotInflight) RequestID() string { + return s.RespMetadata.RequestID +} + +// The user-specified message system attribute value. For string data types, +// the Value attribute has the same restrictions on the content as the message +// body. For more information, see SendMessage. +// +// Name, type, value and the message body must not be empty or null. +type MessageSystemAttributeValue struct { + _ struct{} `type:"structure"` + + // Not implemented. Reserved for future use. + BinaryListValues [][]byte `type:"list" flattened:"true"` // Binary type attributes can store any binary data, such as compressed data, // encrypted data, or images. @@ -4578,7 +6723,7 @@ type MessageAttributeValue struct { DataType *string `type:"string" required:"true"` // Not implemented. Reserved for future use. - StringListValues []*string `locationName:"StringListValue" locationNameList:"StringListValue" type:"list" flattened:"true"` + StringListValues []*string `type:"list" flattened:"true"` // Strings are Unicode with UTF-8 binary encoding. For a list of code values, // see ASCII Printable Characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). @@ -4590,7 +6735,7 @@ type MessageAttributeValue struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MessageAttributeValue) String() string { +func (s MessageSystemAttributeValue) String() string { return awsutil.Prettify(s) } @@ -4599,13 +6744,13 @@ func (s MessageAttributeValue) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MessageAttributeValue) GoString() string { +func (s MessageSystemAttributeValue) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MessageAttributeValue) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MessageAttributeValue"} +func (s *MessageSystemAttributeValue) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MessageSystemAttributeValue"} if s.DataType == nil { invalidParams.Add(request.NewErrParamRequired("DataType")) } @@ -4617,67 +6762,416 @@ func (s *MessageAttributeValue) Validate() error { } // SetBinaryListValues sets the BinaryListValues field's value. -func (s *MessageAttributeValue) SetBinaryListValues(v [][]byte) *MessageAttributeValue { +func (s *MessageSystemAttributeValue) SetBinaryListValues(v [][]byte) *MessageSystemAttributeValue { s.BinaryListValues = v return s } // SetBinaryValue sets the BinaryValue field's value. -func (s *MessageAttributeValue) SetBinaryValue(v []byte) *MessageAttributeValue { +func (s *MessageSystemAttributeValue) SetBinaryValue(v []byte) *MessageSystemAttributeValue { s.BinaryValue = v return s } // SetDataType sets the DataType field's value. -func (s *MessageAttributeValue) SetDataType(v string) *MessageAttributeValue { +func (s *MessageSystemAttributeValue) SetDataType(v string) *MessageSystemAttributeValue { s.DataType = &v return s } // SetStringListValues sets the StringListValues field's value. -func (s *MessageAttributeValue) SetStringListValues(v []*string) *MessageAttributeValue { +func (s *MessageSystemAttributeValue) SetStringListValues(v []*string) *MessageSystemAttributeValue { s.StringListValues = v return s } // SetStringValue sets the StringValue field's value. -func (s *MessageAttributeValue) SetStringValue(v string) *MessageAttributeValue { +func (s *MessageSystemAttributeValue) SetStringValue(v string) *MessageSystemAttributeValue { s.StringValue = &v return s } -// The user-specified message system attribute value. For string data types, -// the Value attribute has the same restrictions on the content as the message -// body. For more information, see SendMessage. +// The specified action violates a limit. For example, ReceiveMessage returns +// this error if the maximum number of in flight messages is reached and AddPermission +// returns this error if the maximum number of permissions for the queue is +// reached. +type OverLimit struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. // -// Name, type, value and the message body must not be empty or null. -type MessageSystemAttributeValue struct { - _ struct{} `type:"structure"` +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OverLimit) String() string { + return awsutil.Prettify(s) +} - // Not implemented. Reserved for future use. - BinaryListValues [][]byte `locationName:"BinaryListValue" locationNameList:"BinaryListValue" type:"list" flattened:"true"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OverLimit) GoString() string { + return s.String() +} - // Binary type attributes can store any binary data, such as compressed data, - // encrypted data, or images. - // BinaryValue is automatically base64 encoded/decoded by the SDK. - BinaryValue []byte `type:"blob"` +func newErrorOverLimit(v protocol.ResponseMetadata) error { + return &OverLimit{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorOverLimit(v protocol.ResponseMetadata, code string) error { + return &OverLimit{ + RespMetadata: v, + Code_: &code, + } +} - // Amazon SQS supports the following logical data types: String, Number, and - // Binary. For the Number data type, you must use StringValue. +// Code returns the exception type name. +func (s *OverLimit) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "OverLimit" +} + +// Message returns the exception's message. +func (s *OverLimit) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *OverLimit) OrigErr() error { + return nil +} + +func (s *OverLimit) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *OverLimit) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *OverLimit) RequestID() string { + return s.RespMetadata.RequestID +} + +// Indicates that the specified queue previously received a PurgeQueue request +// within the last 60 seconds (the time it can take to delete the messages in +// the queue). +type PurgeQueueInProgress struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurgeQueueInProgress) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurgeQueueInProgress) GoString() string { + return s.String() +} + +func newErrorPurgeQueueInProgress(v protocol.ResponseMetadata) error { + return &PurgeQueueInProgress{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorPurgeQueueInProgress(v protocol.ResponseMetadata, code string) error { + return &PurgeQueueInProgress{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *PurgeQueueInProgress) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "PurgeQueueInProgress" +} + +// Message returns the exception's message. +func (s *PurgeQueueInProgress) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *PurgeQueueInProgress) OrigErr() error { + return nil +} + +func (s *PurgeQueueInProgress) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *PurgeQueueInProgress) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *PurgeQueueInProgress) RequestID() string { + return s.RespMetadata.RequestID +} + +type PurgeQueueInput struct { + _ struct{} `type:"structure"` + + // The URL of the queue from which the PurgeQueue action deletes messages. // - // You can also append custom labels. For more information, see Amazon SQS Message - // Attributes (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) - // in the Amazon SQS Developer Guide. + // Queue URLs and names are case-sensitive. // - // DataType is a required field - DataType *string `type:"string" required:"true"` + // QueueUrl is a required field + QueueUrl *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurgeQueueInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurgeQueueInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PurgeQueueInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PurgeQueueInput"} + if s.QueueUrl == nil { + invalidParams.Add(request.NewErrParamRequired("QueueUrl")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQueueUrl sets the QueueUrl field's value. +func (s *PurgeQueueInput) SetQueueUrl(v string) *PurgeQueueInput { + s.QueueUrl = &v + return s +} + +type PurgeQueueOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurgeQueueOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurgeQueueOutput) GoString() string { + return s.String() +} + +// You must wait 60 seconds after deleting a queue before you can create another +// queue with the same name. +type QueueDeletedRecently struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueueDeletedRecently) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueueDeletedRecently) GoString() string { + return s.String() +} + +func newErrorQueueDeletedRecently(v protocol.ResponseMetadata) error { + return &QueueDeletedRecently{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorQueueDeletedRecently(v protocol.ResponseMetadata, code string) error { + return &QueueDeletedRecently{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *QueueDeletedRecently) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "QueueDeletedRecently" +} + +// Message returns the exception's message. +func (s *QueueDeletedRecently) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *QueueDeletedRecently) OrigErr() error { + return nil +} + +func (s *QueueDeletedRecently) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *QueueDeletedRecently) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *QueueDeletedRecently) RequestID() string { + return s.RespMetadata.RequestID +} + +// The specified queue doesn't exist. +type QueueDoesNotExist struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueueDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueueDoesNotExist) GoString() string { + return s.String() +} + +func newErrorQueueDoesNotExist(v protocol.ResponseMetadata) error { + return &QueueDoesNotExist{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorQueueDoesNotExist(v protocol.ResponseMetadata, code string) error { + return &QueueDoesNotExist{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *QueueDoesNotExist) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "QueueDoesNotExist" +} + +// Message returns the exception's message. +func (s *QueueDoesNotExist) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *QueueDoesNotExist) OrigErr() error { + return nil +} + +func (s *QueueDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *QueueDoesNotExist) StatusCode() int { + return s.RespMetadata.StatusCode +} - // Not implemented. Reserved for future use. - StringListValues []*string `locationName:"StringListValue" locationNameList:"StringListValue" type:"list" flattened:"true"` +// RequestID returns the service's response RequestID for request. +func (s *QueueDoesNotExist) RequestID() string { + return s.RespMetadata.RequestID +} - // Strings are Unicode with UTF-8 binary encoding. For a list of code values, - // see ASCII Printable Characters (http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters). - StringValue *string `type:"string"` +// A queue with this name already exists. Amazon SQS returns this error only +// if the request includes attributes whose values differ from those of the +// existing queue. +type QueueNameExists struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4685,7 +7179,7 @@ type MessageSystemAttributeValue struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MessageSystemAttributeValue) String() string { +func (s QueueNameExists) String() string { return awsutil.Prettify(s) } @@ -4694,62 +7188,64 @@ func (s MessageSystemAttributeValue) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s MessageSystemAttributeValue) GoString() string { +func (s QueueNameExists) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MessageSystemAttributeValue) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MessageSystemAttributeValue"} - if s.DataType == nil { - invalidParams.Add(request.NewErrParamRequired("DataType")) +func newErrorQueueNameExists(v protocol.ResponseMetadata) error { + return &QueueNameExists{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorQueueNameExists(v protocol.ResponseMetadata, code string) error { + return &QueueNameExists{ + RespMetadata: v, + Code_: &code, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *QueueNameExists) Code() string { + if s.Code_ != nil { + return *s.Code_ } - return nil + return "QueueNameExists" } -// SetBinaryListValues sets the BinaryListValues field's value. -func (s *MessageSystemAttributeValue) SetBinaryListValues(v [][]byte) *MessageSystemAttributeValue { - s.BinaryListValues = v - return s +// Message returns the exception's message. +func (s *QueueNameExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetBinaryValue sets the BinaryValue field's value. -func (s *MessageSystemAttributeValue) SetBinaryValue(v []byte) *MessageSystemAttributeValue { - s.BinaryValue = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *QueueNameExists) OrigErr() error { + return nil } -// SetDataType sets the DataType field's value. -func (s *MessageSystemAttributeValue) SetDataType(v string) *MessageSystemAttributeValue { - s.DataType = &v - return s +func (s *QueueNameExists) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetStringListValues sets the StringListValues field's value. -func (s *MessageSystemAttributeValue) SetStringListValues(v []*string) *MessageSystemAttributeValue { - s.StringListValues = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *QueueNameExists) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetStringValue sets the StringValue field's value. -func (s *MessageSystemAttributeValue) SetStringValue(v string) *MessageSystemAttributeValue { - s.StringValue = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *QueueNameExists) RequestID() string { + return s.RespMetadata.RequestID } -type PurgeQueueInput struct { - _ struct{} `type:"structure"` +// The specified receipt handle isn't valid. +type ReceiptHandleIsInvalid struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string - // The URL of the queue from which the PurgeQueue action deletes messages. - // - // Queue URLs and names are case-sensitive. - // - // QueueUrl is a required field - QueueUrl *string `type:"string" required:"true"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. @@ -4757,7 +7253,7 @@ type PurgeQueueInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PurgeQueueInput) String() string { +func (s ReceiptHandleIsInvalid) String() string { return awsutil.Prettify(s) } @@ -4766,49 +7262,55 @@ func (s PurgeQueueInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s PurgeQueueInput) GoString() string { +func (s ReceiptHandleIsInvalid) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PurgeQueueInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PurgeQueueInput"} - if s.QueueUrl == nil { - invalidParams.Add(request.NewErrParamRequired("QueueUrl")) +func newErrorReceiptHandleIsInvalid(v protocol.ResponseMetadata) error { + return &ReceiptHandleIsInvalid{ + RespMetadata: v, } +} +func newQueryCompatibleErrorReceiptHandleIsInvalid(v protocol.ResponseMetadata, code string) error { + return &ReceiptHandleIsInvalid{ + RespMetadata: v, + Code_: &code, + } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *ReceiptHandleIsInvalid) Code() string { + if s.Code_ != nil { + return *s.Code_ } - return nil + return "ReceiptHandleIsInvalid" } -// SetQueueUrl sets the QueueUrl field's value. -func (s *PurgeQueueInput) SetQueueUrl(v string) *PurgeQueueInput { - s.QueueUrl = &v - return s +// Message returns the exception's message. +func (s *ReceiptHandleIsInvalid) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -type PurgeQueueOutput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ReceiptHandleIsInvalid) OrigErr() error { + return nil } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PurgeQueueOutput) String() string { - return awsutil.Prettify(s) +func (s *ReceiptHandleIsInvalid) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PurgeQueueOutput) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s *ReceiptHandleIsInvalid) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ReceiptHandleIsInvalid) RequestID() string { + return s.RespMetadata.RequestID } type ReceiveMessageInput struct { @@ -4847,7 +7349,7 @@ type ReceiveMessageInput struct { // in sequence. // // * SequenceNumber – Returns the value provided by Amazon SQS. - AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true" enum:"QueueAttributeName"` + AttributeNames []*string `type:"list" flattened:"true" enum:"QueueAttributeName"` // The maximum number of messages to return. Amazon SQS never returns more messages // than this value (however, fewer messages might be returned). Valid values: @@ -4874,7 +7376,7 @@ type ReceiveMessageInput struct { // or you can return all of the attributes by specifying All or .* in your request. // You can also use all message attributes starting with a prefix, for example // bar.*. - MessageAttributeNames []*string `locationNameList:"MessageAttributeName" type:"list" flattened:"true"` + MessageAttributeNames []*string `type:"list" flattened:"true"` // The URL of the Amazon SQS queue from which messages are received. // @@ -5030,7 +7532,7 @@ type ReceiveMessageOutput struct { _ struct{} `type:"structure"` // A list of messages. - Messages []*Message `locationNameList:"Message" type:"list" flattened:"true"` + Messages []*Message `type:"list" flattened:"true"` } // String returns the string representation. @@ -5142,13 +7644,173 @@ func (s RemovePermissionOutput) GoString() string { return s.String() } +// The request was denied due to request throttling. +// +// - The rate of requests per second exceeds the Amazon Web Services KMS +// request quota for an account and Region. +// +// - A burst or sustained high rate of requests to change the state of the +// same KMS key. This condition is often known as a "hot key." +// +// - Requests for operations on KMS keys in a Amazon Web Services CloudHSM +// key store might be throttled at a lower-than-expected rate when the Amazon +// Web Services CloudHSM cluster associated with the Amazon Web Services +// CloudHSM key store is processing numerous commands, including those unrelated +// to the Amazon Web Services CloudHSM key store. +type RequestThrottled struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RequestThrottled) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RequestThrottled) GoString() string { + return s.String() +} + +func newErrorRequestThrottled(v protocol.ResponseMetadata) error { + return &RequestThrottled{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorRequestThrottled(v protocol.ResponseMetadata, code string) error { + return &RequestThrottled{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *RequestThrottled) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "RequestThrottled" +} + +// Message returns the exception's message. +func (s *RequestThrottled) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *RequestThrottled) OrigErr() error { + return nil +} + +func (s *RequestThrottled) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *RequestThrottled) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *RequestThrottled) RequestID() string { + return s.RespMetadata.RequestID +} + +// One or more specified resources don't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorResourceNotFoundException(v protocol.ResponseMetadata, code string) error { + return &ResourceNotFoundException{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + type SendMessageBatchInput struct { _ struct{} `type:"structure"` // A list of SendMessageBatchRequestEntry items. // // Entries is a required field - Entries []*SendMessageBatchRequestEntry `locationNameList:"SendMessageBatchRequestEntry" type:"list" flattened:"true" required:"true"` + Entries []*SendMessageBatchRequestEntry `type:"list" flattened:"true" required:"true"` // The URL of the Amazon SQS queue to which batched messages are sent. // @@ -5224,12 +7886,12 @@ type SendMessageBatchOutput struct { // that can't be enqueued. // // Failed is a required field - Failed []*BatchResultErrorEntry `locationNameList:"BatchResultErrorEntry" type:"list" flattened:"true" required:"true"` + Failed []*BatchResultErrorEntry `type:"list" flattened:"true" required:"true"` // A list of SendMessageBatchResultEntry items. // // Successful is a required field - Successful []*SendMessageBatchResultEntry `locationNameList:"SendMessageBatchResultEntry" type:"list" flattened:"true" required:"true"` + Successful []*SendMessageBatchResultEntry `type:"list" flattened:"true" required:"true"` } // String returns the string representation. @@ -5288,7 +7950,7 @@ type SendMessageBatchRequestEntry struct { // Each message attribute consists of a Name, Type, and Value. For more information, // see Amazon SQS message attributes (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) // in the Amazon SQS Developer Guide. - MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + MessageAttributes map[string]*MessageAttributeValue `type:"map" flattened:"true"` // The body of the message. // @@ -5376,7 +8038,7 @@ type SendMessageBatchRequestEntry struct { // // * The size of a message system attribute doesn't count towards the total // size of a message. - MessageSystemAttributes map[string]*MessageSystemAttributeValue `locationName:"MessageSystemAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + MessageSystemAttributes map[string]*MessageSystemAttributeValue `type:"map" flattened:"true"` } // String returns the string representation. @@ -5587,7 +8249,7 @@ type SendMessageInput struct { // Each message attribute consists of a Name, Type, and Value. For more information, // see Amazon SQS message attributes (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes) // in the Amazon SQS Developer Guide. - MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + MessageAttributes map[string]*MessageAttributeValue `type:"map" flattened:"true"` // The message to send. The minimum size is one character. The maximum size // is 256 KiB. @@ -5685,7 +8347,7 @@ type SendMessageInput struct { // // * The size of a message system attribute doesn't count towards the total // size of a message. - MessageSystemAttributes map[string]*MessageSystemAttributeValue `locationName:"MessageSystemAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` + MessageSystemAttributes map[string]*MessageSystemAttributeValue `type:"map" flattened:"true"` // The URL of the Amazon SQS queue to which a message is sent. // @@ -6017,7 +8679,7 @@ type SetQueueAttributesInput struct { // in the Amazon SQS Developer Guide. // // Attributes is a required field - Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true" required:"true"` + Attributes map[string]*string `type:"map" flattened:"true" required:"true"` // The URL of the Amazon SQS queue whose attributes are set. // @@ -6213,7 +8875,7 @@ type TagQueueInput struct { // The list of tags to be added to the specified queue. // // Tags is a required field - Tags map[string]*string `locationName:"Tag" locationNameKey:"Key" locationNameValue:"Value" type:"map" flattened:"true" required:"true"` + Tags map[string]*string `type:"map" flattened:"true" required:"true"` } // String returns the string representation. @@ -6284,6 +8946,154 @@ func (s TagQueueOutput) GoString() string { return s.String() } +// The batch request contains more entries than permissible. +type TooManyEntriesInBatchRequest struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TooManyEntriesInBatchRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TooManyEntriesInBatchRequest) GoString() string { + return s.String() +} + +func newErrorTooManyEntriesInBatchRequest(v protocol.ResponseMetadata) error { + return &TooManyEntriesInBatchRequest{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorTooManyEntriesInBatchRequest(v protocol.ResponseMetadata, code string) error { + return &TooManyEntriesInBatchRequest{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *TooManyEntriesInBatchRequest) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "TooManyEntriesInBatchRequest" +} + +// Message returns the exception's message. +func (s *TooManyEntriesInBatchRequest) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *TooManyEntriesInBatchRequest) OrigErr() error { + return nil +} + +func (s *TooManyEntriesInBatchRequest) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *TooManyEntriesInBatchRequest) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *TooManyEntriesInBatchRequest) RequestID() string { + return s.RespMetadata.RequestID +} + +// Error code 400. Unsupported operation. +type UnsupportedOperation struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + Code_ *string + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnsupportedOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnsupportedOperation) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperation(v protocol.ResponseMetadata) error { + return &UnsupportedOperation{ + RespMetadata: v, + } +} +func newQueryCompatibleErrorUnsupportedOperation(v protocol.ResponseMetadata, code string) error { + return &UnsupportedOperation{ + RespMetadata: v, + Code_: &code, + } +} + +// Code returns the exception type name. +func (s *UnsupportedOperation) Code() string { + if s.Code_ != nil { + return *s.Code_ + } + return "UnsupportedOperation" +} + +// Message returns the exception's message. +func (s *UnsupportedOperation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnsupportedOperation) OrigErr() error { + return nil +} + +func (s *UnsupportedOperation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *UnsupportedOperation) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnsupportedOperation) RequestID() string { + return s.RespMetadata.RequestID +} + type UntagQueueInput struct { _ struct{} `type:"structure"` @@ -6295,7 +9105,7 @@ type UntagQueueInput struct { // The list of tags to be removed from the specified queue. // // TagKeys is a required field - TagKeys []*string `locationNameList:"TagKey" type:"list" flattened:"true" required:"true"` + TagKeys []*string `type:"list" flattened:"true" required:"true"` } // String returns the string representation. @@ -6517,3 +9327,31 @@ func QueueAttributeName_Values() []string { QueueAttributeNameSqsManagedSseEnabled, } } + +const ( + // TaskStatusRunning is a TaskStatus enum value + TaskStatusRunning = "RUNNING" + + // TaskStatusFailed is a TaskStatus enum value + TaskStatusFailed = "FAILED" + + // TaskStatusCancelling is a TaskStatus enum value + TaskStatusCancelling = "CANCELLING" + + // TaskStatusCancelled is a TaskStatus enum value + TaskStatusCancelled = "CANCELLED" + + // TaskStatusCompleted is a TaskStatus enum value + TaskStatusCompleted = "COMPLETED" +) + +// TaskStatus_Values returns all elements of the TaskStatus enum +func TaskStatus_Values() []string { + return []string{ + TaskStatusRunning, + TaskStatusFailed, + TaskStatusCancelling, + TaskStatusCancelled, + TaskStatusCompleted, + } +} diff --git a/service/sqs/errors.go b/service/sqs/errors.go index b32e6d93ada..de1e86dca22 100644 --- a/service/sqs/errors.go +++ b/service/sqs/errors.go @@ -2,25 +2,35 @@ package sqs +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBatchEntryIdsNotDistinct for service response error code - // "AWS.SimpleQueueService.BatchEntryIdsNotDistinct". + // "BatchEntryIdsNotDistinct". // // Two or more batch entries in the request have the same Id. - ErrCodeBatchEntryIdsNotDistinct = "AWS.SimpleQueueService.BatchEntryIdsNotDistinct" + ErrCodeBatchEntryIdsNotDistinct = "BatchEntryIdsNotDistinct" // ErrCodeBatchRequestTooLong for service response error code - // "AWS.SimpleQueueService.BatchRequestTooLong". + // "BatchRequestTooLong". // // The length of all the messages put together is more than the limit. - ErrCodeBatchRequestTooLong = "AWS.SimpleQueueService.BatchRequestTooLong" + ErrCodeBatchRequestTooLong = "BatchRequestTooLong" // ErrCodeEmptyBatchRequest for service response error code - // "AWS.SimpleQueueService.EmptyBatchRequest". + // "EmptyBatchRequest". // // The batch request doesn't contain any entries. - ErrCodeEmptyBatchRequest = "AWS.SimpleQueueService.EmptyBatchRequest" + ErrCodeEmptyBatchRequest = "EmptyBatchRequest" + + // ErrCodeInvalidAddress for service response error code + // "InvalidAddress". + // + // The accountId is invalid. + ErrCodeInvalidAddress = "InvalidAddress" // ErrCodeInvalidAttributeName for service response error code // "InvalidAttributeName". @@ -28,11 +38,17 @@ const ( // The specified attribute doesn't exist. ErrCodeInvalidAttributeName = "InvalidAttributeName" + // ErrCodeInvalidAttributeValue for service response error code + // "InvalidAttributeValue". + // + // A queue attribute value is invalid. + ErrCodeInvalidAttributeValue = "InvalidAttributeValue" + // ErrCodeInvalidBatchEntryId for service response error code - // "AWS.SimpleQueueService.InvalidBatchEntryId". + // "InvalidBatchEntryId". // // The Id of a batch entry in a batch request doesn't abide by the specification. - ErrCodeInvalidBatchEntryId = "AWS.SimpleQueueService.InvalidBatchEntryId" + ErrCodeInvalidBatchEntryId = "InvalidBatchEntryId" // ErrCodeInvalidIdFormat for service response error code // "InvalidIdFormat". @@ -46,11 +62,67 @@ const ( // The message contains characters outside the allowed set. ErrCodeInvalidMessageContents = "InvalidMessageContents" + // ErrCodeInvalidSecurity for service response error code + // "InvalidSecurity". + // + // When the request to a queue is not HTTPS and SigV4. + ErrCodeInvalidSecurity = "InvalidSecurity" + + // ErrCodeKmsAccessDenied for service response error code + // "KmsAccessDenied". + // + // The caller doesn't have the required KMS access. + ErrCodeKmsAccessDenied = "KmsAccessDenied" + + // ErrCodeKmsDisabled for service response error code + // "KmsDisabled". + // + // The request was denied due to request throttling. + ErrCodeKmsDisabled = "KmsDisabled" + + // ErrCodeKmsInvalidKeyUsage for service response error code + // "KmsInvalidKeyUsage". + // + // The request was rejected for one of the following reasons: + // + // * The KeyUsage value of the KMS key is incompatible with the API operation. + // + // * The encryption algorithm or signing algorithm specified for the operation + // is incompatible with the type of key material in the KMS key (KeySpec). + ErrCodeKmsInvalidKeyUsage = "KmsInvalidKeyUsage" + + // ErrCodeKmsInvalidState for service response error code + // "KmsInvalidState". + // + // The request was rejected because the state of the specified resource is not + // valid for this request. + ErrCodeKmsInvalidState = "KmsInvalidState" + + // ErrCodeKmsNotFound for service response error code + // "KmsNotFound". + // + // The request was rejected because the specified entity or resource could not + // be found. + ErrCodeKmsNotFound = "KmsNotFound" + + // ErrCodeKmsOptInRequired for service response error code + // "KmsOptInRequired". + // + // The request was rejected because the specified key policy isn't syntactically + // or semantically correct. + ErrCodeKmsOptInRequired = "KmsOptInRequired" + + // ErrCodeKmsThrottled for service response error code + // "KmsThrottled". + // + // Amazon Web Services KMS throttles requests for the following conditions. + ErrCodeKmsThrottled = "KmsThrottled" + // ErrCodeMessageNotInflight for service response error code - // "AWS.SimpleQueueService.MessageNotInflight". + // "MessageNotInflight". // // The specified message isn't in flight. - ErrCodeMessageNotInflight = "AWS.SimpleQueueService.MessageNotInflight" + ErrCodeMessageNotInflight = "MessageNotInflight" // ErrCodeOverLimit for service response error code // "OverLimit". @@ -62,33 +134,33 @@ const ( ErrCodeOverLimit = "OverLimit" // ErrCodePurgeQueueInProgress for service response error code - // "AWS.SimpleQueueService.PurgeQueueInProgress". + // "PurgeQueueInProgress". // // Indicates that the specified queue previously received a PurgeQueue request // within the last 60 seconds (the time it can take to delete the messages in // the queue). - ErrCodePurgeQueueInProgress = "AWS.SimpleQueueService.PurgeQueueInProgress" + ErrCodePurgeQueueInProgress = "PurgeQueueInProgress" // ErrCodeQueueDeletedRecently for service response error code - // "AWS.SimpleQueueService.QueueDeletedRecently". + // "QueueDeletedRecently". // // You must wait 60 seconds after deleting a queue before you can create another // queue with the same name. - ErrCodeQueueDeletedRecently = "AWS.SimpleQueueService.QueueDeletedRecently" + ErrCodeQueueDeletedRecently = "QueueDeletedRecently" // ErrCodeQueueDoesNotExist for service response error code - // "AWS.SimpleQueueService.NonExistentQueue". + // "QueueDoesNotExist". // // The specified queue doesn't exist. - ErrCodeQueueDoesNotExist = "AWS.SimpleQueueService.NonExistentQueue" + ErrCodeQueueDoesNotExist = "QueueDoesNotExist" // ErrCodeQueueNameExists for service response error code - // "QueueAlreadyExists". + // "QueueNameExists". // // A queue with this name already exists. Amazon SQS returns this error only // if the request includes attributes whose values differ from those of the // existing queue. - ErrCodeQueueNameExists = "QueueAlreadyExists" + ErrCodeQueueNameExists = "QueueNameExists" // ErrCodeReceiptHandleIsInvalid for service response error code // "ReceiptHandleIsInvalid". @@ -96,6 +168,24 @@ const ( // The specified receipt handle isn't valid. ErrCodeReceiptHandleIsInvalid = "ReceiptHandleIsInvalid" + // ErrCodeRequestThrottled for service response error code + // "RequestThrottled". + // + // The request was denied due to request throttling. + // + // * The rate of requests per second exceeds the Amazon Web Services KMS + // request quota for an account and Region. + // + // * A burst or sustained high rate of requests to change the state of the + // same KMS key. This condition is often known as a "hot key." + // + // * Requests for operations on KMS keys in a Amazon Web Services CloudHSM + // key store might be throttled at a lower-than-expected rate when the Amazon + // Web Services CloudHSM cluster associated with the Amazon Web Services + // CloudHSM key store is processing numerous commands, including those unrelated + // to the Amazon Web Services CloudHSM key store. + ErrCodeRequestThrottled = "RequestThrottled" + // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // @@ -103,14 +193,75 @@ const ( ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeTooManyEntriesInBatchRequest for service response error code - // "AWS.SimpleQueueService.TooManyEntriesInBatchRequest". + // "TooManyEntriesInBatchRequest". // // The batch request contains more entries than permissible. - ErrCodeTooManyEntriesInBatchRequest = "AWS.SimpleQueueService.TooManyEntriesInBatchRequest" + ErrCodeTooManyEntriesInBatchRequest = "TooManyEntriesInBatchRequest" // ErrCodeUnsupportedOperation for service response error code - // "AWS.SimpleQueueService.UnsupportedOperation". + // "UnsupportedOperation". // // Error code 400. Unsupported operation. - ErrCodeUnsupportedOperation = "AWS.SimpleQueueService.UnsupportedOperation" + ErrCodeUnsupportedOperation = "UnsupportedOperation" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BatchEntryIdsNotDistinct": newErrorBatchEntryIdsNotDistinct, + "BatchRequestTooLong": newErrorBatchRequestTooLong, + "EmptyBatchRequest": newErrorEmptyBatchRequest, + "InvalidAddress": newErrorInvalidAddress, + "InvalidAttributeName": newErrorInvalidAttributeName, + "InvalidAttributeValue": newErrorInvalidAttributeValue, + "InvalidBatchEntryId": newErrorInvalidBatchEntryId, + "InvalidIdFormat": newErrorInvalidIdFormat, + "InvalidMessageContents": newErrorInvalidMessageContents, + "InvalidSecurity": newErrorInvalidSecurity, + "KmsAccessDenied": newErrorKmsAccessDenied, + "KmsDisabled": newErrorKmsDisabled, + "KmsInvalidKeyUsage": newErrorKmsInvalidKeyUsage, + "KmsInvalidState": newErrorKmsInvalidState, + "KmsNotFound": newErrorKmsNotFound, + "KmsOptInRequired": newErrorKmsOptInRequired, + "KmsThrottled": newErrorKmsThrottled, + "MessageNotInflight": newErrorMessageNotInflight, + "OverLimit": newErrorOverLimit, + "PurgeQueueInProgress": newErrorPurgeQueueInProgress, + "QueueDeletedRecently": newErrorQueueDeletedRecently, + "QueueDoesNotExist": newErrorQueueDoesNotExist, + "QueueNameExists": newErrorQueueNameExists, + "ReceiptHandleIsInvalid": newErrorReceiptHandleIsInvalid, + "RequestThrottled": newErrorRequestThrottled, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyEntriesInBatchRequest": newErrorTooManyEntriesInBatchRequest, + "UnsupportedOperation": newErrorUnsupportedOperation, +} +var queryExceptionFromCode = map[string]func(protocol.ResponseMetadata, string) error{ + "BatchEntryIdsNotDistinct": newQueryCompatibleErrorBatchEntryIdsNotDistinct, + "BatchRequestTooLong": newQueryCompatibleErrorBatchRequestTooLong, + "EmptyBatchRequest": newQueryCompatibleErrorEmptyBatchRequest, + "InvalidAddress": newQueryCompatibleErrorInvalidAddress, + "InvalidAttributeName": newQueryCompatibleErrorInvalidAttributeName, + "InvalidAttributeValue": newQueryCompatibleErrorInvalidAttributeValue, + "InvalidBatchEntryId": newQueryCompatibleErrorInvalidBatchEntryId, + "InvalidIdFormat": newQueryCompatibleErrorInvalidIdFormat, + "InvalidMessageContents": newQueryCompatibleErrorInvalidMessageContents, + "InvalidSecurity": newQueryCompatibleErrorInvalidSecurity, + "KmsAccessDenied": newQueryCompatibleErrorKmsAccessDenied, + "KmsDisabled": newQueryCompatibleErrorKmsDisabled, + "KmsInvalidKeyUsage": newQueryCompatibleErrorKmsInvalidKeyUsage, + "KmsInvalidState": newQueryCompatibleErrorKmsInvalidState, + "KmsNotFound": newQueryCompatibleErrorKmsNotFound, + "KmsOptInRequired": newQueryCompatibleErrorKmsOptInRequired, + "KmsThrottled": newQueryCompatibleErrorKmsThrottled, + "MessageNotInflight": newQueryCompatibleErrorMessageNotInflight, + "OverLimit": newQueryCompatibleErrorOverLimit, + "PurgeQueueInProgress": newQueryCompatibleErrorPurgeQueueInProgress, + "QueueDeletedRecently": newQueryCompatibleErrorQueueDeletedRecently, + "QueueDoesNotExist": newQueryCompatibleErrorQueueDoesNotExist, + "QueueNameExists": newQueryCompatibleErrorQueueNameExists, + "ReceiptHandleIsInvalid": newQueryCompatibleErrorReceiptHandleIsInvalid, + "RequestThrottled": newQueryCompatibleErrorRequestThrottled, + "ResourceNotFoundException": newQueryCompatibleErrorResourceNotFoundException, + "TooManyEntriesInBatchRequest": newQueryCompatibleErrorTooManyEntriesInBatchRequest, + "UnsupportedOperation": newQueryCompatibleErrorUnsupportedOperation, +} diff --git a/service/sqs/service.go b/service/sqs/service.go index 32132c6be86..a5c4df1d2d8 100644 --- a/service/sqs/service.go +++ b/service/sqs/service.go @@ -8,7 +8,8 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" - "github.com/aws/aws-sdk-go/private/protocol/query" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) // SQS provides the API operation methods for making requests to @@ -70,6 +71,8 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, Endpoint: endpoint, APIVersion: "2012-11-05", ResolvedRegion: resolvedRegion, + JSONVersion: "1.0", + TargetPrefix: "AmazonSQS", }, handlers, ), @@ -77,10 +80,12 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) - svc.Handlers.Build.PushBackNamed(query.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler) + svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedErrorWithOptions(exceptionFromCode, jsonrpc.WithQueryCompatibility(queryExceptionFromCode))).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil {