diff --git a/aws-models/acm-pca.json b/aws-models/acm-pca.json index eef153c64d5b..68c5c76f58b4 100644 --- a/aws-models/acm-pca.json +++ b/aws-models/acm-pca.json @@ -1,37 +1,8 @@ { "smithy": "2.0", - "metadata": { - "suppressions": [ - { - "id": "HttpMethodSemantics", - "namespace": "*" - }, - { - "id": "HttpResponseCodeSemantics", - "namespace": "*" - }, - { - "id": "PaginatedTrait", - "namespace": "*" - }, - { - "id": "HttpHeaderTrait", - "namespace": "*" - }, - { - "id": "HttpUriConflict", - "namespace": "*" - }, - { - "id": "Service", - "namespace": "*" - } - ] - }, "shapes": { "com.amazonaws.acmpca#ACMPrivateCA": { "type": "service", - "version": "2017-08-22", "operations": [ { "target": "com.amazonaws.acmpca#CreateCertificateAuthority" @@ -109,6 +80,7 @@ "arnNamespace": "acm-pca", "cloudFormationName": "ACMPCA", "cloudTrailEventSource": "acm-pca.amazonaws.com", + "docId": "acm-pca-2017-08-22", "endpointPrefix": "acm-pca" }, "aws.auth#sigv4": { @@ -1223,7 +1195,7 @@ "CustomAttributes": { "target": "com.amazonaws.acmpca#CustomAttributeList", "traits": { - "smithy.api#documentation": "
\nContains a sequence of one or more X.500 relative distinguished names (RDNs), each of\n\t\t\twhich consists of an object identifier (OID) and a value. For more information, see\n\t\t\tNIST’s definition of Object Identifier (OID).
\nCustom attributes cannot be used in combination with standard attributes.
\nContains a sequence of one or more X.500 relative distinguished names (RDNs), each of\n\t\t\twhich consists of an object identifier (OID) and a value. For more information, see\n\t\t\tNIST’s definition of Object Identifier (OID).
\nCustom attributes cannot be used in combination with standard attributes.
\nSpecifies the attribute value of relative distinguished name (RDN).
", + "smithy.api#documentation": "\nSpecifies the attribute value of relative distinguished name (RDN).
", "smithy.api#required": {} } } @@ -2126,14 +2098,14 @@ "ObjectIdentifier": { "target": "com.amazonaws.acmpca#CustomObjectIdentifier", "traits": { - "smithy.api#documentation": "\nSpecifies the object identifier (OID) of the X.509 extension. For more information,\n\t\t\tsee the Global OID reference database.\n
", + "smithy.api#documentation": "\nSpecifies the object identifier (OID) of the X.509 extension. For more information,\n\t\t\tsee the Global OID reference database.\n
", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.acmpca#Base64String1To4096", "traits": { - "smithy.api#documentation": "\nSpecifies the base64-encoded value of the X.509 extension.
", + "smithy.api#documentation": "\nSpecifies the base64-encoded value of the X.509 extension.
", "smithy.api#required": {} } }, @@ -2141,12 +2113,12 @@ "target": "com.amazonaws.acmpca#Boolean", "traits": { "smithy.api#default": null, - "smithy.api#documentation": "\nSpecifies the critical flag of the X.509 extension.
" + "smithy.api#documentation": "\nSpecifies the critical flag of the X.509 extension.
" } } }, "traits": { - "smithy.api#documentation": "\nSpecifies the X.509 extension information for a certificate.
\nExtensions present in CustomExtensions
follow the\n\t\t\t\tApiPassthrough
\n template\n\t\t\t\trules.
Specifies the X.509 extension information for a certificate.
\nExtensions present in CustomExtensions
follow the\n\t\t\t\tApiPassthrough
\n template\n\t\t\t\trules.
Contains a sequence of one or more X.509 extensions, each of which consists of an\n\t\t\tobject identifier (OID), a base64-encoded value, and the critical flag. For more\n\t\t\tinformation, see the Global OID reference\n\t\t\t\tdatabase.\n
" + "smithy.api#documentation": "\nContains a sequence of one or more X.509 extensions, each of which consists of an\n\t\t\tobject identifier (OID), a base64-encoded value, and the critical flag. For more\n\t\t\tinformation, see the Global OID reference\n\t\t\t\tdatabase.\n
" } } }, @@ -3065,7 +3037,7 @@ } ], "traits": { - "smithy.api#documentation": "Imports a signed private CA certificate into Amazon Web Services Private CA. This action is used when you\n\t\t\tare using a chain of trust whose root is located outside Amazon Web Services Private CA. Before you can call\n\t\t\tthis action, the following preparations must in place:
\nIn Amazon Web Services Private CA, call the CreateCertificateAuthority action to create the private CA that you\n\t\t\t\t\tplan to back with the imported certificate.
\nCall the GetCertificateAuthorityCsr action to generate a certificate signing\n\t\t\t\t\trequest (CSR).
\nSign the CSR using a root or intermediate CA hosted by either an on-premises\n\t\t\t\t\tPKI hierarchy or by a commercial CA.
\nCreate a certificate chain and copy the signed certificate and the certificate\n\t\t\t\t\tchain to your working directory.
\nAmazon Web Services Private CA supports three scenarios for installing a CA certificate:
\nInstalling a certificate for a root CA hosted by Amazon Web Services Private CA.
\nInstalling a subordinate CA certificate whose parent authority is hosted by\n\t\t\t\t\tAmazon Web Services Private CA.
\nInstalling a subordinate CA certificate whose parent authority is externally\n\t\t\t\t\thosted.
\nThe following additional requirements apply when you import a CA certificate.
\nOnly a self-signed certificate can be imported as a root CA.
\nA self-signed certificate cannot be imported as a subordinate CA.
\nYour certificate chain must not include the private CA certificate that you\n\t\t\t\t\tare importing.
\nYour root CA must be the last certificate in your chain. The subordinate\n\t\t\t\t\tcertificate, if any, that your root CA signed must be next to last. The\n\t\t\t\t\tsubordinate certificate signed by the preceding subordinate CA must come next,\n\t\t\t\t\tand so on until your chain is built.
\nThe chain must be PEM-encoded.
\nThe maximum allowed size of a certificate is 32 KB.
\nThe maximum allowed size of a certificate chain is 2 MB.
\n\n Enforcement of Critical Constraints\n
\nAmazon Web Services Private CA allows the following extensions to be marked critical in the imported CA\n\t\t\tcertificate or chain.
\nAuthority key identifier
\nBasic constraints (must be marked critical)
\nCertificate policies
\nExtended key usage
\nInhibit anyPolicy
\nIssuer alternative name
\nKey usage
\nName constraints
\nPolicy mappings
\nSubject alternative name
\nSubject directory attributes
\nSubject key identifier
\nSubject information access
\nAmazon Web Services Private CA rejects the following extensions when they are marked critical in an\n\t\t\timported CA certificate or chain.
\nAuthority information access
\nCRL distribution points
\nFreshest CRL
\nPolicy constraints
\nAmazon Web Services Private Certificate Authority will also reject any other extension marked as critical not contained on the preceding list of allowed extensions.
" + "smithy.api#documentation": "Imports a signed private CA certificate into Amazon Web Services Private CA. This action is used when you\n\t\t\tare using a chain of trust whose root is located outside Amazon Web Services Private CA. Before you can call\n\t\t\tthis action, the following preparations must in place:
\nIn Amazon Web Services Private CA, call the CreateCertificateAuthority action to create the private CA that you\n\t\t\t\t\tplan to back with the imported certificate.
\nCall the GetCertificateAuthorityCsr action to generate a certificate signing\n\t\t\t\t\trequest (CSR).
\nSign the CSR using a root or intermediate CA hosted by either an on-premises\n\t\t\t\t\tPKI hierarchy or by a commercial CA.
\nCreate a certificate chain and copy the signed certificate and the certificate\n\t\t\t\t\tchain to your working directory.
\nAmazon Web Services Private CA supports three scenarios for installing a CA certificate:
\nInstalling a certificate for a root CA hosted by Amazon Web Services Private CA.
\nInstalling a subordinate CA certificate whose parent authority is hosted by\n\t\t\t\t\tAmazon Web Services Private CA.
\nInstalling a subordinate CA certificate whose parent authority is externally\n\t\t\t\t\thosted.
\nThe following additional requirements apply when you import a CA certificate.
\nOnly a self-signed certificate can be imported as a root CA.
\nA self-signed certificate cannot be imported as a subordinate CA.
\nYour certificate chain must not include the private CA certificate that you\n\t\t\t\t\tare importing.
\nYour root CA must be the last certificate in your chain. The subordinate\n\t\t\t\t\tcertificate, if any, that your root CA signed must be next to last. The\n\t\t\t\t\tsubordinate certificate signed by the preceding subordinate CA must come next,\n\t\t\t\t\tand so on until your chain is built.
\nThe chain must be PEM-encoded.
\nThe maximum allowed size of a certificate is 32 KB.
\nThe maximum allowed size of a certificate chain is 2 MB.
\n\n Enforcement of Critical Constraints\n
\nAmazon Web Services Private CA allows the following extensions to be marked critical in the imported CA\n\t\t\tcertificate or chain.
\nBasic constraints (must be marked critical)
\nSubject alternative names
\nKey usage
\nExtended key usage
\nAuthority key identifier
\nSubject key identifier
\nIssuer alternative name
\nSubject directory attributes
\nSubject information access
\nCertificate policies
\nPolicy mappings
\nInhibit anyPolicy
\nAmazon Web Services Private CA rejects the following extensions when they are marked critical in an\n\t\t\timported CA certificate or chain.
\nName constraints
\nPolicy constraints
\nCRL distribution points
\nAuthority information access
\nFreshest CRL
\nAny other extension
\nUse this parameter when paginating results in a subsequent request after you receive a\n\t\t\tresponse with truncated results. Set it to the value of the NextToken
\n\t\t\tparameter from the response you just received.
Use this parameter when paginating results to specify the maximum number of items to\n\t\t\treturn in the response on each page. If additional items exist beyond the number you\n\t\t\tspecify, the NextToken
element is sent in the response. Use this\n\t\t\t\tNextToken
value in a subsequent request to retrieve additional\n\t\t\titems.
Although the maximum value is 1000, the action only returns a maximum of 100 items.
" } }, + "NextToken": { + "target": "com.amazonaws.acmpca#NextToken", + "traits": { + "smithy.api#documentation": "Use this parameter when paginating results in a subsequent request after you receive a\n\t\t\tresponse with truncated results. Set it to the value of the NextToken
\n\t\t\tparameter from the response you just received.
Summary information about each certificate authority you have created.
" - } - }, "NextToken": { "target": "com.amazonaws.acmpca#NextToken", "traits": { "smithy.api#documentation": "When the list is truncated, this value is present and should be used for the\n\t\t\t\tNextToken
parameter in a subsequent pagination request.
Summary information about each certificate authority you have created.
" + } } }, "traits": { @@ -3544,11 +3516,10 @@ "com.amazonaws.acmpca#ListPermissionsRequest": { "type": "structure", "members": { - "CertificateAuthorityArn": { - "target": "com.amazonaws.acmpca#Arn", + "MaxResults": { + "target": "com.amazonaws.acmpca#MaxResults", "traits": { - "smithy.api#documentation": "The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by\n\t\t\tcalling the ListCertificateAuthorities action. This must be of the form:\n\t\t\t\tarn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
\n\t\t\tYou can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to\n\t\t\treturn in the response. If additional items exist beyond the number you specify, the\n\t\t\t\tNextToken element is sent in the response. Use this\n\t\t\t\tNextToken value in a subsequent request to retrieve\n\t\t\tadditional items.
" } }, "NextToken": { @@ -3557,10 +3528,11 @@ "smithy.api#documentation": "When paginating results, use this parameter in a subsequent request after you receive\n\t\t\ta response with truncated results. Set it to the value of NextToken from the response you just received.
" } }, - "MaxResults": { - "target": "com.amazonaws.acmpca#MaxResults", + "CertificateAuthorityArn": { + "target": "com.amazonaws.acmpca#Arn", "traits": { - "smithy.api#documentation": "When paginating results, use this parameter to specify the maximum number of items to\n\t\t\treturn in the response. If additional items exist beyond the number you specify, the\n\t\t\t\tNextToken element is sent in the response. Use this\n\t\t\t\tNextToken value in a subsequent request to retrieve\n\t\t\tadditional items.
" + "smithy.api#documentation": "The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by\n\t\t\tcalling the ListCertificateAuthorities action. This must be of the form:\n\t\t\t\tarn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
\n\t\t\tYou can get a private CA's ARN by running the ListCertificateAuthorities action.
Summary information about each permission assigned by the specified private CA,\n\t\t\tincluding the action enabled, the policy provided, and the time of creation.
" - } - }, "NextToken": { "target": "com.amazonaws.acmpca#NextToken", "traits": { "smithy.api#documentation": "When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.\n\t\t
" } + }, + "Permissions": { + "target": "com.amazonaws.acmpca#PermissionList", + "traits": { + "smithy.api#documentation": "Summary information about each permission assigned by the specified private CA,\n\t\t\tincluding the action enabled, the policy provided, and the time of creation.
" + } } }, "traits": { @@ -3620,11 +3592,10 @@ "com.amazonaws.acmpca#ListTagsRequest": { "type": "structure", "members": { - "CertificateAuthorityArn": { - "target": "com.amazonaws.acmpca#Arn", + "MaxResults": { + "target": "com.amazonaws.acmpca#MaxResults", "traits": { - "smithy.api#documentation": "The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
\n\n arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012\n
\n
Use this parameter when paginating results to specify the maximum number of items to\n\t\t\treturn in the response. If additional items exist beyond the number you specify, the\n\t\t\t\tNextToken element is sent in the response. Use this\n\t\t\t\tNextToken value in a subsequent request to retrieve\n\t\t\tadditional items.
" } }, "NextToken": { @@ -3633,10 +3604,11 @@ "smithy.api#documentation": "Use this parameter when paginating results in a subsequent request after you receive a\n\t\t\tresponse with truncated results. Set it to the value of NextToken from the response you just received.
" } }, - "MaxResults": { - "target": "com.amazonaws.acmpca#MaxResults", + "CertificateAuthorityArn": { + "target": "com.amazonaws.acmpca#Arn", "traits": { - "smithy.api#documentation": "Use this parameter when paginating results to specify the maximum number of items to\n\t\t\treturn in the response. If additional items exist beyond the number you specify, the\n\t\t\t\tNextToken element is sent in the response. Use this\n\t\t\t\tNextToken value in a subsequent request to retrieve\n\t\t\tadditional items.
" + "smithy.api#documentation": "The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
\n\n arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012\n
\n
The tags associated with your private CA.
" - } - }, "NextToken": { "target": "com.amazonaws.acmpca#NextToken", "traits": { "smithy.api#documentation": "When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.\n\t\t
" } + }, + "Tags": { + "target": "com.amazonaws.acmpca#TagList", + "traits": { + "smithy.api#documentation": "The tags associated with your private CA.
" + } } }, "traits": { @@ -3963,7 +3935,7 @@ "ResourceArn": { "target": "com.amazonaws.acmpca#Arn", "traits": { - "smithy.api#documentation": "The Amazon Resource Number (ARN) of the private CA to associate with the policy. The\n\t\t\tARN of the CA can be found by calling the ListCertificateAuthorities action.
\n ", + "smithy.api#documentation": "The Amazon Resource Number (ARN) of the private CA to associate with the policy. The\n\t\t\tARN of the CA can be found by calling the ListCertificateAuthorities action.
\n ", "smithy.api#required": {} } }, @@ -4709,4 +4681,4 @@ } } } -} +} \ No newline at end of file diff --git a/aws-models/arc-zonal-shift.json b/aws-models/arc-zonal-shift.json index e09f3dd19af7..b592b485f3ea 100644 --- a/aws-models/arc-zonal-shift.json +++ b/aws-models/arc-zonal-shift.json @@ -94,14 +94,14 @@ "appliedStatus": { "target": "com.amazonaws.arczonalshift#AutoshiftAppliedStatus", "traits": { - "smithy.api#documentation": "The appliedStatus
field specifies which application traffic shift is in effect for a\n\t\t\tresource when there is more than one traffic shift active. There can be more than one application traffic \n\t\t\tshift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, \n\t\t\tor an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two \n\t\t\tvalues: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift \n\t\t\tthat is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence \n\t\t\tautoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run \n\t\t\tzonal shifts.
\nFor more information, see \n\t\t\tHow zonal autoshift \n\t\t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#documentation": "The appliedStatus
field specifies which application traffic shift is in effect for a\n\t\t\tresource when there is more than one active traffic shift. There can be more than one application traffic \n\t\t\tshift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, \n\t\t\tor an autoshift. The appliedStatus
field for a shift that is in progress for a resource can \n\t\t\thave one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift \n\t\t\tthat is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence \n\t\t\tautoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run \n\t\t\tzonal shifts.
\nFor more information, see \n\t\t\tHow zonal autoshift \n\t\t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
", "smithy.api#required": {} } }, "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. \n\t\t\tUntil the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region.\n\t\t\tAn autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when \n\t\t\tyou disable zonal autoshift for the resource.
", + "smithy.api#documentation": "The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. \n\t\t\tUntil the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region.\n\t\t\tAn autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when \n\t\t\tyou disable zonal autoshift for the resource.
A complex structure that lists an autoshift that is currently active for a managed resource and information about\n\t\t\tthe autoshift.
\nFor more information, see How zonal autoshift \n\t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
" } }, + "com.amazonaws.arczonalshift#AutoshiftObserverNotification": { + "type": "resource", + "operations": [ + { + "target": "com.amazonaws.arczonalshift#GetAutoshiftObserverNotificationStatus" + }, + { + "target": "com.amazonaws.arczonalshift#UpdateAutoshiftObserverNotificationStatus" + } + ] + }, + "com.amazonaws.arczonalshift#AutoshiftObserverNotificationStatus": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, "com.amazonaws.arczonalshift#AutoshiftSummaries": { "type": "list", "member": { @@ -129,7 +157,7 @@ "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. \n\t\t\tUntil the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region.\n\t\t\tAn autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when \n\t\t\tyou disable zonal autoshift for the resource.
", + "smithy.api#documentation": "The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. \n\t\t\tUntil the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region.\n\t\t\tAn autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when \n\t\t\tyou disable zonal autoshift for the resource.
Information about an autoshift. Amazon Web Services starts an autoshift to temporarily move traffic for a resource \n\t\t\taway from an Availability Zone in an Amazon Web Services Region\n\t\t\twhen Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.\n\t\t\tYou can configure zonal autoshift in Route 53 ARC for managed resources in your Amazon Web Services account in a Region. \n\t\t\tSupported Amazon Web Services resources are automatically registered with Route 53 ARC.
\nAutoshifts are temporary. When the Availability Zone recovers, Amazon Web Services ends the autoshift, and \n\t\t\ttraffic for the resource is no longer directed to the other Availability Zones in the Region.
\nYou can stop an autoshift for a resource by disabling zonal autoshift.
" } }, + "com.amazonaws.arczonalshift#AutoshiftTriggerResource": { + "type": "resource" + }, "com.amazonaws.arczonalshift#AutoshiftsInResource": { "type": "list", "member": { @@ -311,34 +342,44 @@ } }, "com.amazonaws.arczonalshift#ConflictExceptionReason": { - "type": "string", - "traits": { - "smithy.api#enum": [ - { - "value": "ZonalShiftAlreadyExists", - "name": "ZONAL_SHIFT_ALREADY_EXISTS" - }, - { - "value": "ZonalShiftStatusNotActive", - "name": "ZONAL_SHIFT_STATUS_NOT_ACTIVE" - }, - { - "value": "SimultaneousZonalShiftsConflict", - "name": "SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT" - }, - { - "value": "PracticeConfigurationAlreadyExists", - "name": "PRACTICE_CONFIGURATION_ALREADY_EXISTS" - }, - { - "value": "AutoShiftEnabled", - "name": "AUTOSHIFT_ENABLED" - }, - { - "value": "PracticeConfigurationDoesNotExist", - "name": "PRACTICE_CONFIGURATION_DOES_NOT_EXIST" + "type": "enum", + "members": { + "ZONAL_SHIFT_ALREADY_EXISTS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ZonalShiftAlreadyExists" } - ] + }, + "ZONAL_SHIFT_STATUS_NOT_ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ZonalShiftStatusNotActive" + } + }, + "SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SimultaneousZonalShiftsConflict" + } + }, + "PRACTICE_CONFIGURATION_ALREADY_EXISTS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PracticeConfigurationAlreadyExists" + } + }, + "AUTOSHIFT_ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AutoShiftEnabled" + } + }, + "PRACTICE_CONFIGURATION_DOES_NOT_EXIST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PracticeConfigurationDoesNotExist" + } + } } }, "com.amazonaws.arczonalshift#ControlCondition": { @@ -347,20 +388,20 @@ "type": { "target": "com.amazonaws.arczonalshift#ControlConditionType", "traits": { - "smithy.api#documentation": "The type of alarm specified for a practice run. The only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the \n\t\t\tonly valid value is CLOUDWATCH
.
The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.
", + "smithy.api#documentation": "The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
", "smithy.api#required": {} } } }, "traits": { - "smithy.api#documentation": "A control condition is an alarm that you specify for a practice run. When you configure practice runs\n\t\t\twith zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch \n\t\t\tto use with the practice run. The alarms that you specify are an \n\t\t\toutcome alarm, to monitor application health during practice runs and, \n\t\t\toptionally, a blocking alarm, to block practice runs from starting.
\nControl condition alarms do not apply for autoshifts.
\nFor more information, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
" + "smithy.api#documentation": "A control condition is an alarm that you specify for a practice run. When you configure practice runs\n\t\t\twith zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch \n\t\t\tto use with the practice run. The alarms that you specify are an \n\t\t\toutcome alarm, to monitor application health during practice runs and, \n\t\t\toptionally, a blocking alarm, to block practice runs from starting or to interrupt\n\t\t\ta practice run in progress.
\nControl condition alarms do not apply for autoshifts.
\nFor more information, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
" } }, "com.amazonaws.arczonalshift#ControlConditionType": { @@ -415,7 +456,7 @@ } ], "traits": { - "smithy.api#documentation": "A practice run configuration for zonal autoshift is required when you enable zonal autoshift.\n\t\t\tA practice run configuration includes specifications for blocked dates and blocked time windows,\n\t\tand for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an \n\t\t\toutcome alarm, to monitor application health during practice runs and, \n\t\t\toptionally, a blocking alarm, to block practice runs from starting.
\nFor more information, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#documentation": "A practice run configuration for zonal autoshift is required when you enable zonal autoshift.\n\t\t\tA practice run configuration includes specifications for blocked dates and blocked time windows,\n\t\tand for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an \n\t\t\toutcome alarm, to monitor application health during practice runs and, \n\t\t\toptionally, a blocking alarm, to block practice runs from starting.
\nWhen a resource has a practice run configuration, Route 53 ARC starts zonal shifts for the resource\n\t\t\tweekly, to shift traffic for practice runs. Practice runs help you to ensure that \n\t\t\tshifting away traffic from an Availability Zone during an autoshift is safe for your application.
\nFor more information, see \n\t\t\t\n\t\t\t\tConsiderations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
", "smithy.api#http": { "method": "POST", "uri": "/configuration", @@ -429,7 +470,7 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier of the resource to shift away traffic for when a practice\n\t\t\trun starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier of the resource that Amazon Web Services shifts traffic for with a practice \n\t\t\trun zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#required": {} } }, @@ -488,7 +529,7 @@ "zonalAutoshiftStatus": { "target": "com.amazonaws.arczonalshift#ZonalAutoshiftStatus", "traits": { - "smithy.api#documentation": "The status for zonal autoshift for a resource. When you specify the\n\t\t\tautoshift status as ENABLED
, Amazon Web Services shifts traffic \n\t\t\taway from shifts away application resource traffic from an Availability Zone, \n\t\t\ton your behalf, when Amazon Web Services determines that there's an issue in \n\t\t\tthe Availability Zone that could potentially affect customers.
When you enable zonal autoshift, you must also configure practice runs for\n\t\t\tthe resource.
", + "smithy.api#documentation": "The status for zonal autoshift for a resource. When you specify ENABLED
\n\t\t\tfor the autoshift status, Amazon Web Services shifts traffic \n\t\t\taway from shifts away application resource traffic from an Availability Zone, \n\t\t\ton your behalf, when internal telemetry indicates that there is an Availability \n\t\t\tZone impairment that could potentially impact customers.
When you enable zonal autoshift, you must also configure practice runs for\n\t\t\tthe resource.
", "smithy.api#required": {} } }, @@ -605,6 +646,62 @@ "com.amazonaws.arczonalshift#ExpiryTime": { "type": "timestamp" }, + "com.amazonaws.arczonalshift#GetAutoshiftObserverNotificationStatus": { + "type": "operation", + "input": { + "target": "com.amazonaws.arczonalshift#GetAutoshiftObserverNotificationStatusRequest" + }, + "output": { + "target": "com.amazonaws.arczonalshift#GetAutoshiftObserverNotificationStatusResponse" + }, + "errors": [ + { + "target": "com.amazonaws.arczonalshift#AccessDeniedException" + }, + { + "target": "com.amazonaws.arczonalshift#InternalServerException" + }, + { + "target": "com.amazonaws.arczonalshift#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "Returns the status of autoshift observer notification. Autoshift observer\n\t\t\tnotification enables you to be notified, through Amazon EventBridge, when\n\t\t\tthere is an autoshift event for zonal autoshift.
\nIf the status is ENABLED
,\n\t\t\tRoute 53 ARC includes all autoshift events when you use the EventBridge pattern\n\t\t\tAutoshift In Progress
. When the status is DISABLED
,\n\t\t\tRoute 53 ARC includes only autoshift events for autoshifts when one or more of your\n\t\t\tresources is included in the autoshift.
For more information, see \n\t\t\t\n\t\t\t\tNotifications for practice runs and autoshifts in the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#http": { + "method": "GET", + "uri": "/autoshift-observer-notification", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.arczonalshift#GetAutoshiftObserverNotificationStatusRequest": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#input": {}, + "smithy.api#references": [ + { + "resource": "com.amazonaws.arczonalshift#AutoshiftObserverNotification" + } + ] + } + }, + "com.amazonaws.arczonalshift#GetAutoshiftObserverNotificationStatusResponse": { + "type": "structure", + "members": { + "status": { + "target": "com.amazonaws.arczonalshift#AutoshiftObserverNotificationStatus", + "traits": { + "smithy.api#documentation": "The status of autoshift observer notification. If the status is ENABLED
,\n\t\t\tRoute 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern\n\t\t\tAutoshift In Progress
. When the status is DISABLED
,\n\t\t\tRoute 53 ARC includes only autoshift events for autoshifts when one or more of your\n\t\t\tresources is included in the autoshift.
The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -749,7 +846,7 @@ } ], "traits": { - "smithy.api#documentation": "Returns the active autoshifts for a specified resource.
", + "smithy.api#documentation": "Returns a list of autoshifts for an Amazon Web Services Region. By default, the call returns\n\t\t\tonly ACTIVE
autoshifts. Optionally, you can specify the status
parameter to return\n\t\t\tCOMPLETED
autoshifts.\n\t\t
Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region.\n \t\tListZonalShifts
returns customer-started zonal shifts, as well as practice run zonal shifts that Route 53 ARC started on \n \t\tyour behalf for zonal autoshift.
The ListZonalShifts
operation does not list autoshifts. For more information about listing\n \t\tautoshifts, see \">ListAutoshifts.
Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region.\n \t\tListZonalShifts
returns customer-initiated zonal shifts, as well as practice run zonal shifts that Route 53 ARC started on \n \t\tyour behalf for zonal autoshift.
The ListZonalShifts
operation does not list autoshifts. For more information about listing\n \t\tautoshifts, see \">ListAutoshifts.
Welcome to the Zonal Shift API Reference Guide for Amazon Route 53 Application Recovery Controller (Route 53 ARC).
\nYou can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to\n\t\t\thelp your application recover quickly from an impairment in an Availability Zone. For example, \n\t\t\tyou can recover your application from a developer's bad code deployment or from an \n\t\t\tAmazon Web Services infrastructure failure in a single Availability Zone.
\nYou can also configure zonal autoshift for a load balancer resource. Zonal autoshift \n\t\t\tis a capability in Route 53 ARC where Amazon Web Services shifts away application resource \n\t\t\ttraffic from an Availability Zone, on your behalf, to help reduce your time to recovery during events.\n\t\t\tAmazon Web Services shifts away traffic for resources that are enabled for zonal autoshift whenever Amazon Web Services \n\t\t\tdetermines that there's an issue in the Availability Zone that could potentially affect \n\t\t\tcustomers.
\nTo ensure that zonal autoshift is safe for your application, you must \n\t\t\talso configure practice runs when you enable zonal autoshift for a resource. Practice runs start \n\t\t\tweekly zonal shifts for a resource, to shift\n\t\t\ttraffic for the resource out of an Availability Zone. Practice runs make sure, on a regular basis, \n\t\t\tthat you have enough capacity in all the Availability Zones in an Amazon Web Services Region \n\t\t\tfor your application to continue to operate normally \n\t\t\twhen traffic for a resource is shifted away from one Availability Zone.
\nYou must prescale resource capacity in all Availability Zones in the Region \n\t\t\twhere your application is deployed, before you configure practice runs or enable zonal autoshift\n\t\t\tfor a resource. You should not rely on scaling on demand when an autoshift or practice run \n\t\t\tstarts.
\nFor more information about using zonal shift and zonal autoshift, see the \n\t\t\tAmazon Route 53 Application Recovery Controller \n\t\t\t\tDeveloper Guide.
", + "smithy.api#documentation": "Welcome to the API Reference Guide for zonal shift and zonal autoshift in Amazon Route 53 Application Recovery Controller (Route 53 ARC).
\nYou can start a zonal shift to move traffic for a load balancer resource away from an Availability Zone to\n\t\t\thelp your application recover quickly from an impairment in an Availability Zone. For example, \n\t\t\tyou can recover your application from a developer's bad code deployment or from an \n\t\t\tAmazon Web Services infrastructure failure in a single Availability Zone.
\nYou can also configure zonal autoshift for supported load balancer resources. Zonal autoshift \n\t\t\tis a capability in Route 53 ARC where you authorize Amazon Web Services to shift away application resource \n\t\t\ttraffic from an Availability Zone during events, on your behalf, to help reduce your time to recovery.\n\t\t\tAmazon Web Services starts an autoshift when internal telemetry indicates that there is an Availability \n\t\t\tZone impairment that could potentially impact customers.
\nTo help make sure that zonal autoshift is safe for your application, you must \n\t\t\talso configure practice runs when you enable zonal autoshift for a resource. Practice runs start \n\t\t\tweekly zonal shifts for a resource, to shift traffic for the resource away from an Availability Zone. \n\t\t\tPractice runs help you to make sure, on a regular basis, that you have enough capacity in all the \n\t\t\tAvailability Zones in an Amazon Web Services Region for your application to continue to operate normally \n\t\t\twhen traffic for a resource is shifted away from one Availability Zone.
\nBefore you configure practice runs or enable zonal autoshift, we strongly recommend\n\t\t\tthat you prescale your application resource capacity in all Availability Zones in the Region where \n\t\t\tyour application resources are deployed. You should not rely on scaling on demand when an \n\t\t\tautoshift or practice run starts. Zonal autoshift, including practice runs, works independently, \n\t\t\tand does not wait for auto scaling actions to complete. Relying on auto scaling, instead of \n\t\t\tpre-scaling, can result in loss of availability.
\nIf you use auto scaling to handle regular cycles of traffic, we strongly recommend that you configure \n\t\t\t\tthe minimum capacity of your auto scaling to continue operating normally with the loss of an \n\t\t\t\tAvailability Zone.
\nBe aware that Route 53 ARC does not inspect the health of individual resources. Amazon Web Services only starts an \n\t\t\tautoshift when Amazon Web Services telemetry detects that there is an Availability Zone impairment that could \n\t\t\tpotentially impact customers. In some cases, resources might be shifted away that are not experiencing \n\t\t\timpact.
\nFor more information about using zonal shift and zonal autoshift, see the \n\t\t\tAmazon Route 53 Application Recovery Controller \n\t\t\t\tDeveloper Guide.
", "smithy.api#title": "AWS ARC - Zonal Shift", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -1836,7 +1939,7 @@ } }, "traits": { - "smithy.api#documentation": "A practice run configuration for a resource includes the Amazon CloudWatch alarms that you've specified for a practice\n\t\trun, as well as any blocked dates or blocked windows for the practice run.
\nYou can update or delete a practice run configuration. Before you delete a practice run configuration, you\n\t\t\tmust disable zonal autoshift for the resource. A practice run configuration is required when zonal autoshift is enabled.
" + "smithy.api#documentation": "A practice run configuration for a resource includes the Amazon CloudWatch alarms that you've specified for a practice\n\t\trun, as well as any blocked dates or blocked windows for the practice run. When a resource has a practice run \n\t\tconfiguration, Route 53 ARC shifts traffic for the resource weekly for practice runs.
\nPractice runs are required for zonal autoshift. The zonal shifts that Route 53 ARC starts for practice runs help you to ensure that \n\t\t\tshifting away traffic from an Availability Zone during an autoshift is safe for your application.
\nYou can update or delete a practice run configuration. Before you delete a practice run configuration, you\n\t\t\tmust disable zonal autoshift for the resource. A practice run configuration is required when zonal autoshift is enabled.
" } }, "com.amazonaws.arczonalshift#PracticeRunConfigurationResource": { @@ -1982,14 +2085,14 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#required": {} } }, "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", + "smithy.api#documentation": "The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
Update the status of autoshift observer notification. Autoshift observer\n\t\t\tnotification enables you to be notified, through Amazon EventBridge, when\n\t\t\tthere is an autoshift event for zonal autoshift.
\nIf the status is ENABLED
,\n\t\t\tRoute 53 ARC includes all autoshift events when you use the EventBridge pattern\n\t\t\tAutoshift In Progress
. When the status is DISABLED
,\n\t\t\tRoute 53 ARC includes only autoshift events for autoshifts when one or more of your\n\t\t\tresources is included in the autoshift.
For more information, see \n\t\t\t\n\t\t\t\tNotifications for practice runs and autoshifts in the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#http": { + "method": "PUT", + "uri": "/autoshift-observer-notification", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.arczonalshift#UpdateAutoshiftObserverNotificationStatusRequest": { + "type": "structure", + "members": { + "status": { + "target": "com.amazonaws.arczonalshift#AutoshiftObserverNotificationStatus", + "traits": { + "smithy.api#documentation": "The status to set for autoshift observer notification. If the status is ENABLED
,\n\t\t\tRoute 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern\n\t\t\tAutoshift In Progress
. When the status is DISABLED
,\n\t\t\tRoute 53 ARC includes only autoshift events for autoshifts when one or more of your\n\t\t\tresources is included in the autoshift.
The status for autoshift observer notification.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.arczonalshift#UpdatePracticeRunConfiguration": { "type": "operation", "input": { @@ -2177,7 +2347,7 @@ } ], "traits": { - "smithy.api#documentation": "You can update the zonal autoshift status for a resource, to enable or disable zonal\n\t\t\tautoshift. When zonal autoshift is ENABLED
, Amazon Web Services shifts away \n\t\t\tresource traffic from an Availability Zone, on your behalf, when Amazon Web Services\n\t\t\tdetermines that there's an issue in the Availability Zone that could potentially affect customers.
The zonal autoshift configuration for a resource includes the practice run configuration and the status for\n\t\t\trunning autoshifts, zonal autoshift status. When a resource has a practice run configuation, Route 53 ARC \n\t\t\tstarts weekly zonal shifts for the resource, to shift traffic away from an Availability Zone. Weekly practice\n\t\t\truns help you to make sure that your application can continue to operate normally with the loss of one Availability Zone.
\nYou can update the zonal autoshift autoshift status to enable or disable zonal autoshift. When zonal\n\t\t\tautoshift is ENABLED
, you authorize Amazon Web Services to shift away resource traffic for \n\t\t\tan application from an Availability Zone during events, on your behalf, to help reduce time to recovery.\n\t\t\tTraffic is also shifted away for the required weekly practice runs.
The zonal autoshift status for the resource that you want to update the zonal\n\t\t\tautoshift configuration for.
", + "smithy.api#documentation": "The zonal autoshift status for the resource that you want to update the zonal\n\t\t\tautoshift configuration for. Choose ENABLED
to authorize Amazon Web Services \n\t\t\tto shift away resource traffic for an application from an Availability Zone during events, \n\t\t\ton your behalf, to help reduce time to recovery.
The zonal autoshift status for the resource that you updated the zonal\n\t\t\tautoshift configuration for.
", + "smithy.api#documentation": "The updated zonal autoshift status for the resource.
", "smithy.api#required": {} } } @@ -2410,21 +2580,21 @@ "resourceIdentifier": { "target": "com.amazonaws.arczonalshift#ResourceIdentifier", "traits": { - "smithy.api#documentation": "The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", + "smithy.api#documentation": "The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
\nAt this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
", "smithy.api#required": {} } }, "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n\t\t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", + "smithy.api#documentation": "The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. \n\t\t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n\t\t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n\t\t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n\t\t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n\t\t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", + "smithy.api#documentation": "The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n\t\t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n\t\t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n\t\t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n\t\t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", "smithy.api#required": {} } }, @@ -2475,7 +2645,7 @@ "appliedStatus": { "target": "com.amazonaws.arczonalshift#AppliedStatus", "traits": { - "smithy.api#documentation": "The appliedStatus
field specifies which application traffic shift is in effect for a\n \t\tresource when there is more than one traffic shift active. There can be more than one application traffic \n \t\tshift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, \n \t\tor an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two \n \t\tvalues: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift \n \t\tthat is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence \n \t\tautoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run \n \t\tzonal shifts.
\nFor more information, see \n \t\tHow zonal autoshift \n \t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
", + "smithy.api#documentation": "The appliedStatus
field specifies which application traffic shift is in effect for a\n \t\tresource when there is more than one active traffic shift. There can be more than one application traffic \n \t\tshift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, \n \t\tor an autoshift. The appliedStatus
field for a shift that is in progress for a resource can \n \t\thave one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift \n \t\tthat is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence \n \t\tautoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run \n \t\tzonal shifts.
\nFor more information, see \n \t\tHow zonal autoshift \n \t\t\tand practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
", "smithy.api#required": {} } }, @@ -2496,14 +2666,14 @@ "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", + "smithy.api#documentation": "The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n \t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", + "smithy.api#documentation": "The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n \t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", "smithy.api#required": {} } }, @@ -2517,7 +2687,7 @@ "comment": { "target": "com.amazonaws.arczonalshift#ZonalShiftComment", "traits": { - "smithy.api#documentation": "A comment that you enter about the zonal shift. Only the latest comment is retained; no comment\n \t\thistory is maintained. That is, a new comment overwrites any existing comment string.
", + "smithy.api#documentation": "A comment that you enter for a customer-initiated zonal shift. Only the latest comment is retained; no comment\n \t\thistory is maintained. That is, a new comment overwrites any existing comment string.
", "smithy.api#required": {} } }, @@ -2597,14 +2767,14 @@ "awayFrom": { "target": "com.amazonaws.arczonalshift#AvailabilityZone", "traits": { - "smithy.api#documentation": "The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
", + "smithy.api#documentation": "The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. \n \t\tUntil the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n \t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", + "smithy.api#documentation": "The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. \n \t\tYou can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift \n \t\tto set a new expiration at any time.
\nWhen you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts \n \t\tto an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or\n \t\tjust wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
", "smithy.api#required": {} } }, @@ -2637,7 +2807,7 @@ } }, "traits": { - "smithy.api#documentation": "Lists information about zonal shifts in Amazon Route 53 Application Recovery Controller, including zonal shifts that you start yourself and zonal shifts that Route 53 ARC starts\n \t\ton your behalf for practice runs with zonal autoshift.
\nZonal shifts are temporary, including customer-started zonal shifts and the zonal autoshift practice run zonal shifts that\n \t\tRoute 53 ARC starts weekly, on your behalf. A zonal shift that a customer starts can be active for up to three days (72 hours). A\n \t\tpractice run zonal shift has a 30 minute duration.
" + "smithy.api#documentation": "Lists information about zonal shifts in Amazon Route 53 Application Recovery Controller, including zonal shifts that you start yourself and zonal shifts that Route 53 ARC starts\n \t\ton your behalf for practice runs with zonal autoshift.
\nZonal shifts are temporary, including customer-initiated zonal shifts and the zonal autoshift practice run zonal shifts that\n \t\tRoute 53 ARC starts weekly, on your behalf. A zonal shift that a customer starts can be active for up to three days (72 hours). A\n \t\tpractice run zonal shift has a 30 minute duration.
" } }, "com.amazonaws.arczonalshift#ZonalShifts": { diff --git a/aws-models/auto-scaling.json b/aws-models/auto-scaling.json index e9c3eaaa562b..d6d9e29ef20b 100644 --- a/aws-models/auto-scaling.json +++ b/aws-models/auto-scaling.json @@ -4954,6 +4954,19 @@ ] } } + ], + "smithy.test#smokeTests": [ + { + "id": "DescribeScalingProcessTypesSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } ] } }, diff --git a/aws-models/codebuild.json b/aws-models/codebuild.json index 98f50908cd54..5b1dcc7ce6e6 100644 --- a/aws-models/codebuild.json +++ b/aws-models/codebuild.json @@ -4916,7 +4916,20 @@ "inputToken": "nextToken", "outputToken": "nextToken", "items": "ids" - } + }, + "smithy.test#smokeTests": [ + { + "id": "ListBuildsSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.codebuild#ListBuildsForProject": { diff --git a/aws-models/dynamodb.json b/aws-models/dynamodb.json index 0d8e4d1e42ac..3dcf98b62dfc 100644 --- a/aws-models/dynamodb.json +++ b/aws-models/dynamodb.json @@ -7720,7 +7720,22 @@ "outputToken": "LastEvaluatedTableName", "items": "TableNames", "pageSize": "Limit" - } + }, + "smithy.test#smokeTests": [ + { + "id": "ListTablesSuccess", + "params": { + "Limit": 1 + }, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.dynamodb#ListTablesInput": { diff --git a/aws-models/global-accelerator.json b/aws-models/global-accelerator.json index 7374c575f082..bf937e1e3f86 100644 --- a/aws-models/global-accelerator.json +++ b/aws-models/global-accelerator.json @@ -807,6 +807,9 @@ "target": "com.amazonaws.globalaccelerator#CreateAcceleratorResponse" }, "errors": [ + { + "target": "com.amazonaws.globalaccelerator#AccessDeniedException" + }, { "target": "com.amazonaws.globalaccelerator#InternalServiceErrorException" }, @@ -815,6 +818,9 @@ }, { "target": "com.amazonaws.globalaccelerator#LimitExceededException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { @@ -986,6 +992,9 @@ }, { "target": "com.amazonaws.globalaccelerator#LimitExceededException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { @@ -1829,6 +1838,9 @@ }, { "target": "com.amazonaws.globalaccelerator#InvalidArgumentException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { @@ -1917,6 +1929,9 @@ }, { "target": "com.amazonaws.globalaccelerator#InvalidArgumentException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { @@ -5033,11 +5048,20 @@ { "target": "com.amazonaws.globalaccelerator#AcceleratorNotFoundException" }, + { + "target": "com.amazonaws.globalaccelerator#AttachmentNotFoundException" + }, + { + "target": "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException" + }, { "target": "com.amazonaws.globalaccelerator#InternalServiceErrorException" }, { "target": "com.amazonaws.globalaccelerator#InvalidArgumentException" + }, + { + "target": "com.amazonaws.globalaccelerator#ListenerNotFoundException" } ], "traits": { @@ -5754,11 +5778,17 @@ { "target": "com.amazonaws.globalaccelerator#AccessDeniedException" }, + { + "target": "com.amazonaws.globalaccelerator#ConflictException" + }, { "target": "com.amazonaws.globalaccelerator#InternalServiceErrorException" }, { "target": "com.amazonaws.globalaccelerator#InvalidArgumentException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { @@ -5785,6 +5815,9 @@ }, { "target": "com.amazonaws.globalaccelerator#InvalidArgumentException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { @@ -5994,11 +6027,17 @@ { "target": "com.amazonaws.globalaccelerator#AcceleratorNotFoundException" }, + { + "target": "com.amazonaws.globalaccelerator#ConflictException" + }, { "target": "com.amazonaws.globalaccelerator#InternalServiceErrorException" }, { "target": "com.amazonaws.globalaccelerator#InvalidArgumentException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { @@ -6025,6 +6064,9 @@ }, { "target": "com.amazonaws.globalaccelerator#InvalidArgumentException" + }, + { + "target": "com.amazonaws.globalaccelerator#TransactionInProgressException" } ], "traits": { diff --git a/aws-models/pinpoint.json b/aws-models/pinpoint.json index 5dfd2d90a1af..88844d00aa55 100644 --- a/aws-models/pinpoint.json +++ b/aws-models/pinpoint.json @@ -8034,7 +8034,22 @@ "method": "GET", "uri": "/v1/apps/{ApplicationId}", "code": 200 - } + }, + "smithy.test#smokeTests": [ + { + "id": "GetAppFailure", + "params": { + "ApplicationId": "InvalidApplicationId" + }, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "failure": {} + } + } + ] } }, "com.amazonaws.pinpoint#GetAppRequest": { @@ -8286,7 +8301,20 @@ "method": "GET", "uri": "/v1/apps", "code": 200 - } + }, + "smithy.test#smokeTests": [ + { + "id": "GetAppsSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.pinpoint#GetAppsRequest": { @@ -15202,6 +15230,9 @@ "name": "mobiletargeting" }, "aws.protocols#restJson1": {}, + "smithy.api#auth": [ + "aws.auth#sigv4" + ], "smithy.api#documentation": "Doc Engage API - Amazon Pinpoint API
", "smithy.api#title": "Amazon Pinpoint", "smithy.rules#endpointRuleSet": { diff --git a/aws-models/quicksight.json b/aws-models/quicksight.json index 18face9a2b49..f169298e8660 100644 --- a/aws-models/quicksight.json +++ b/aws-models/quicksight.json @@ -232,6 +232,190 @@ } } }, + "com.amazonaws.quicksight#AggFunction": { + "type": "structure", + "members": { + "Aggregation": { + "target": "com.amazonaws.quicksight#AggType", + "traits": { + "smithy.api#documentation": "The aggregation of an Agg function.
" + } + }, + "AggregationFunctionParameters": { + "target": "com.amazonaws.quicksight#AggFunctionParamMap", + "traits": { + "smithy.api#documentation": "The aggregation parameters for an Agg function.
" + } + }, + "Period": { + "target": "com.amazonaws.quicksight#TopicTimeGranularity", + "traits": { + "smithy.api#documentation": "The period of an Agg function.
" + } + }, + "PeriodField": { + "target": "com.amazonaws.quicksight#LimitedString", + "traits": { + "smithy.api#documentation": "The period field for an Agg function.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The definition of an Agg function.
" + } + }, + "com.amazonaws.quicksight#AggFunctionParamKey": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 256 + } + } + }, + "com.amazonaws.quicksight#AggFunctionParamMap": { + "type": "map", + "key": { + "target": "com.amazonaws.quicksight#AggFunctionParamKey" + }, + "value": { + "target": "com.amazonaws.quicksight#AggFunctionParamValue" + } + }, + "com.amazonaws.quicksight#AggFunctionParamValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1024 + } + } + }, + "com.amazonaws.quicksight#AggType": { + "type": "enum", + "members": { + "SUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SUM" + } + }, + "MIN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MIN" + } + }, + "MAX": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MAX" + } + }, + "COUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COUNT" + } + }, + "AVERAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AVERAGE" + } + }, + "DISTINCT_COUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISTINCT_COUNT" + } + }, + "STDEV": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STDEV" + } + }, + "STDEVP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "STDEVP" + } + }, + "VAR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VAR" + } + }, + "VARP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "VARP" + } + }, + "PERCENTILE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PERCENTILE" + } + }, + "MEDIAN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MEDIAN" + } + }, + "PTD_SUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PTD_SUM" + } + }, + "PTD_MIN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PTD_MIN" + } + }, + "PTD_MAX": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PTD_MAX" + } + }, + "PTD_COUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PTD_COUNT" + } + }, + "PTD_DISTINCT_COUNT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PTD_DISTINCT_COUNT" + } + }, + "PTD_AVERAGE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PTD_AVERAGE" + } + }, + "COLUMN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COLUMN" + } + }, + "CUSTOM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CUSTOM" + } + } + } + }, "com.amazonaws.quicksight#AggregationFunction": { "type": "structure", "members": { @@ -273,6 +457,38 @@ "target": "com.amazonaws.quicksight#LimitedString" } }, + "com.amazonaws.quicksight#AggregationPartitionBy": { + "type": "structure", + "members": { + "FieldName": { + "target": "com.amazonaws.quicksight#LimitedString", + "traits": { + "smithy.api#documentation": "The field Name for an AggregationPartitionBy
.
The TimeGranularity
for an AggregationPartitionBy
.
The definition of an AggregationPartitionBy
.
The AnchorType
for the Anchor.
The TimeGranularity
of the Anchor.
The offset of the Anchor.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The definition of the Anchor.
" + } + }, "com.amazonaws.quicksight#AnchorDateConfiguration": { "type": "structure", "members": { @@ -816,6 +1059,17 @@ } } }, + "com.amazonaws.quicksight#AnchorType": { + "type": "enum", + "members": { + "TODAY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TODAY" + } + } + } + }, "com.amazonaws.quicksight#AnonymousUserDashboardEmbeddingConfiguration": { "type": "structure", "members": { @@ -928,6 +1182,22 @@ "target": "com.amazonaws.quicksight#AnonymousUserSnapshotJobResult" } }, + "com.amazonaws.quicksight#AnswerId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 256 + }, + "smithy.api#pattern": "^[A-Za-z0-9-_.\\\\+]*$" + } + }, + "com.amazonaws.quicksight#AnswerIds": { + "type": "list", + "member": { + "target": "com.amazonaws.quicksight#AnswerId" + } + }, "com.amazonaws.quicksight#ArcAxisConfiguration": { "type": "structure", "members": { @@ -3893,6 +4163,230 @@ } } }, + "com.amazonaws.quicksight#BatchCreateTopicReviewedAnswer": { + "type": "operation", + "input": { + "target": "com.amazonaws.quicksight#BatchCreateTopicReviewedAnswerRequest" + }, + "output": { + "target": "com.amazonaws.quicksight#BatchCreateTopicReviewedAnswerResponse" + }, + "errors": [ + { + "target": "com.amazonaws.quicksight#AccessDeniedException" + }, + { + "target": "com.amazonaws.quicksight#InternalFailureException" + }, + { + "target": "com.amazonaws.quicksight#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.quicksight#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.quicksight#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "Creates new reviewed answers for a Q Topic.
", + "smithy.api#http": { + "method": "POST", + "uri": "/accounts/{AwsAccountId}/topics/{TopicId}/batch-create-reviewed-answers", + "code": 200 + } + } + }, + "com.amazonaws.quicksight#BatchCreateTopicReviewedAnswerRequest": { + "type": "structure", + "members": { + "AwsAccountId": { + "target": "com.amazonaws.quicksight#AwsAccountId", + "traits": { + "smithy.api#documentation": "The ID of the Amazon Web Services account that you want to create a reviewed answer in.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "TopicId": { + "target": "com.amazonaws.quicksight#TopicId", + "traits": { + "smithy.api#documentation": "The ID for the topic reviewed answer that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "Answers": { + "target": "com.amazonaws.quicksight#CreateTopicReviewedAnswers", + "traits": { + "smithy.api#documentation": "The definition of the Answers to be created.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.quicksight#BatchCreateTopicReviewedAnswerResponse": { + "type": "structure", + "members": { + "TopicId": { + "target": "com.amazonaws.quicksight#TopicId", + "traits": { + "smithy.api#documentation": "The ID for the topic reviewed answer that you want to create. This ID is unique per Amazon Web Services Region\n for each Amazon Web Services account.
" + } + }, + "TopicArn": { + "target": "com.amazonaws.quicksight#Arn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the topic.
" + } + }, + "SucceededAnswers": { + "target": "com.amazonaws.quicksight#SucceededTopicReviewedAnswers", + "traits": { + "smithy.api#documentation": "The definition of Answers that are successfully created.
" + } + }, + "InvalidAnswers": { + "target": "com.amazonaws.quicksight#InvalidTopicReviewedAnswers", + "traits": { + "smithy.api#documentation": "The definition of Answers that are invalid and not created.
" + } + }, + "Status": { + "target": "com.amazonaws.quicksight#StatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "The HTTP status of the request.
", + "smithy.api#httpResponseCode": {} + } + }, + "RequestId": { + "target": "com.amazonaws.quicksight#String", + "traits": { + "smithy.api#documentation": "The Amazon Web Services request ID for this operation.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.quicksight#BatchDeleteTopicReviewedAnswer": { + "type": "operation", + "input": { + "target": "com.amazonaws.quicksight#BatchDeleteTopicReviewedAnswerRequest" + }, + "output": { + "target": "com.amazonaws.quicksight#BatchDeleteTopicReviewedAnswerResponse" + }, + "errors": [ + { + "target": "com.amazonaws.quicksight#AccessDeniedException" + }, + { + "target": "com.amazonaws.quicksight#ConflictException" + }, + { + "target": "com.amazonaws.quicksight#InternalFailureException" + }, + { + "target": "com.amazonaws.quicksight#InvalidParameterValueException" + }, + { + "target": "com.amazonaws.quicksight#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.quicksight#ThrottlingException" + } + ], + "traits": { + "smithy.api#documentation": "Deletes reviewed answers for Q Topic.
", + "smithy.api#http": { + "method": "POST", + "uri": "/accounts/{AwsAccountId}/topics/{TopicId}/batch-delete-reviewed-answers", + "code": 200 + } + } + }, + "com.amazonaws.quicksight#BatchDeleteTopicReviewedAnswerRequest": { + "type": "structure", + "members": { + "AwsAccountId": { + "target": "com.amazonaws.quicksight#AwsAccountId", + "traits": { + "smithy.api#documentation": "The ID of the Amazon Web Services account that you want to delete a reviewed answers in.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "TopicId": { + "target": "com.amazonaws.quicksight#TopicId", + "traits": { + "smithy.api#documentation": "The ID for the topic reviewed answer that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "AnswerIds": { + "target": "com.amazonaws.quicksight#AnswerIds", + "traits": { + "smithy.api#documentation": "The Answer IDs of the Answers to be deleted.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.quicksight#BatchDeleteTopicReviewedAnswerResponse": { + "type": "structure", + "members": { + "TopicId": { + "target": "com.amazonaws.quicksight#TopicId", + "traits": { + "smithy.api#documentation": "The ID of the topic reviewed answer that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
" + } + }, + "TopicArn": { + "target": "com.amazonaws.quicksight#Arn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the topic.
" + } + }, + "SucceededAnswers": { + "target": "com.amazonaws.quicksight#SucceededTopicReviewedAnswers", + "traits": { + "smithy.api#documentation": "The definition of Answers that are successfully deleted.
" + } + }, + "InvalidAnswers": { + "target": "com.amazonaws.quicksight#InvalidTopicReviewedAnswers", + "traits": { + "smithy.api#documentation": "The definition of Answers that are invalid and not deleted.
" + } + }, + "RequestId": { + "target": "com.amazonaws.quicksight#String", + "traits": { + "smithy.api#documentation": "The Amazon Web Services request ID for this operation.
" + } + }, + "Status": { + "target": "com.amazonaws.quicksight#StatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "The HTTP status of the request.
", + "smithy.api#httpResponseCode": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.quicksight#BigQueryParameters": { "type": "structure", "members": { @@ -4564,6 +5058,18 @@ "smithy.api#sensitive": {} } }, + "com.amazonaws.quicksight#CalculatedFieldReferenceList": { + "type": "list", + "member": { + "target": "com.amazonaws.quicksight#Identifier" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 250 + } + } + }, "com.amazonaws.quicksight#CalculatedFields": { "type": "list", "member": { @@ -5197,6 +5703,38 @@ "smithy.api#documentation": "A structure that represents a collective constant.
" } }, + "com.amazonaws.quicksight#CollectiveConstantEntry": { + "type": "structure", + "members": { + "ConstantType": { + "target": "com.amazonaws.quicksight#ConstantType", + "traits": { + "smithy.api#documentation": "The ConstantType
of a CollectiveConstantEntry
.
The value of a CollectiveConstantEntry
.
The definition for a CollectiveConstantEntry
.
The field name of the ContributionAnalysisFactor
.
The definition for the ContributionAnalysisFactor
.
The start range for the ContributionAnalysisTimeRanges
.
The end range for the ContributionAnalysisTimeRanges
.
The definition for the ContributionAnalysisTimeRanges
.
The answer ID for the CreateTopicReviewedAnswer
.
The Dataset arn for the CreateTopicReviewedAnswer
.
The Question to be created.
", + "smithy.api#required": {} + } + }, + "Mir": { + "target": "com.amazonaws.quicksight#TopicIR", + "traits": { + "smithy.api#documentation": "The Mir for the CreateTopicReviewedAnswer
.
The PrimaryVisual
for the CreateTopicReviewedAnswer
.
The template for the CreateTopicReviewedAnswer
.
The definition for a CreateTopicReviewedAnswer
.
The configuration of info icon label options.
" } + }, + "HelperTextVisibility": { + "target": "com.amazonaws.quicksight#Visibility", + "traits": { + "smithy.api#documentation": "The helper text visibility of the DateTimePickerControlDisplayOptions
.
The date icon visibility of the DateTimePickerControlDisplayOptions
.
With a Filter
, you can remove portions of data from a particular visual or view.
This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
" } }, + "com.amazonaws.quicksight#FilterAggMetrics": { + "type": "structure", + "members": { + "MetricOperand": { + "target": "com.amazonaws.quicksight#Identifier", + "traits": { + "smithy.api#documentation": "The metric operand of the FilterAggMetrics
.
The function for the FilterAggMetrics
.
The sort direction for FilterAggMetrics
.
The definition for the FilterAggMetrics
.
The identity of the identifier.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "The definition for the identifier.
" + } + }, "com.amazonaws.quicksight#IdentityCenterConfiguration": { "type": "structure", "members": { @@ -27599,6 +28433,32 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.quicksight#InvalidTopicReviewedAnswer": { + "type": "structure", + "members": { + "AnswerId": { + "target": "com.amazonaws.quicksight#AnswerId", + "traits": { + "smithy.api#documentation": "The answer ID for the InvalidTopicReviewedAnswer
.
The error that is returned for the InvalidTopicReviewedAnswer
.
The definition for a InvalidTopicReviewedAnswer
.
Lists all reviewed answers for a Q Topic.
", + "smithy.api#http": { + "method": "GET", + "uri": "/accounts/{AwsAccountId}/topics/{TopicId}/reviewed-answers", + "code": 200 + } + } + }, + "com.amazonaws.quicksight#ListTopicReviewedAnswersRequest": { + "type": "structure", + "members": { + "AwsAccountId": { + "target": "com.amazonaws.quicksight#AwsAccountId", + "traits": { + "smithy.api#documentation": "The ID of the Amazon Web Services account that containd the reviewed answers that you want listed.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "TopicId": { + "target": "com.amazonaws.quicksight#TopicId", + "traits": { + "smithy.api#documentation": "The ID for the topic that contains the reviewed answer that you want to list. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.quicksight#ListTopicReviewedAnswersResponse": { + "type": "structure", + "members": { + "TopicId": { + "target": "com.amazonaws.quicksight#TopicId", + "traits": { + "smithy.api#documentation": "The ID for the topic that contains the reviewed answer that you want to list. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
" + } + }, + "TopicArn": { + "target": "com.amazonaws.quicksight#Arn", + "traits": { + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the topic.
" + } + }, + "Answers": { + "target": "com.amazonaws.quicksight#TopicReviewedAnswers", + "traits": { + "smithy.api#documentation": "The definition of all Answers in the topic.
" + } + }, + "Status": { + "target": "com.amazonaws.quicksight#StatusCode", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "The HTTP status of the request.
", + "smithy.api#httpResponseCode": {} + } + }, + "RequestId": { + "target": "com.amazonaws.quicksight#String", + "traits": { + "smithy.api#documentation": "The Amazon Web Services request ID for this operation.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.quicksight#ListTopics": { "type": "operation", "input": { @@ -33118,6 +34076,20 @@ "target": "com.amazonaws.quicksight#NamedEntityDefinition" } }, + "com.amazonaws.quicksight#NamedEntityRef": { + "type": "structure", + "members": { + "NamedEntityName": { + "target": "com.amazonaws.quicksight#LimitedString", + "traits": { + "smithy.api#documentation": "The NamedEntityName
for the NamedEntityRef
.
The definition for a NamedEntityRef
.
The display options of a control.
" } }, + "com.amazonaws.quicksight#Slot": { + "type": "structure", + "members": { + "SlotId": { + "target": "com.amazonaws.quicksight#LimitedString", + "traits": { + "smithy.api#documentation": "The slot ID of the slot.
" + } + }, + "VisualId": { + "target": "com.amazonaws.quicksight#LimitedString", + "traits": { + "smithy.api#documentation": "The visual ID for the slot.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The definition for the slot.
" + } + }, + "com.amazonaws.quicksight#Slots": { + "type": "list", + "member": { + "target": "com.amazonaws.quicksight#Slot" + } + }, "com.amazonaws.quicksight#SmallMultiplesAxisPlacement": { "type": "enum", "members": { @@ -44463,6 +45552,26 @@ "smithy.api#documentation": "The subtotal options.
" } }, + "com.amazonaws.quicksight#SucceededTopicReviewedAnswer": { + "type": "structure", + "members": { + "AnswerId": { + "target": "com.amazonaws.quicksight#AnswerId", + "traits": { + "smithy.api#documentation": "The answer ID for the SucceededTopicReviewedAnswer
.
The definition for a SucceededTopicReviewedAnswer
.
The constant type of a TopicConstantValue
.
The value of the TopicConstantValue
.
The minimum for the TopicConstantValue
.
The maximum for the TopicConstantValue
.
The value list of the TopicConstantValue
.
The definition for a TopicConstantValue
.
The metrics for the TopicIR
.
The GroupBy list for the TopicIR
.
The filters for the TopicIR
.
The sort for the TopicIR
.
The contribution analysis for the TopicIR
.
The visual for the TopicIR
.
The definition for a TopicIR
.
The type for the TopicIRComparisonMethod
.
The period for the TopicIRComparisonMethod
.
The window size for the TopicIRComparisonMethod
.
The definition of a TopicIRComparisonMethod
.
The factors for a TopicIRContributionAnalysis
.
The time ranges for the TopicIRContributionAnalysis
.
The direction for the TopicIRContributionAnalysis
.
The sort type for the TopicIRContributionAnalysis
.
The definition for a TopicIRContributionAnalysis
.
The filter type for the TopicIRFilterOption
.
The filter class for the TopicIRFilterOption
.
The operand field for the TopicIRFilterOption
.
The function for the TopicIRFilterOption
.
The constant for the TopicIRFilterOption
.
The inverse for the TopicIRFilterOption
.
The null filter for the TopicIRFilterOption
.
The aggregation for the TopicIRFilterOption
.
The aggregation function parameters for the TopicIRFilterOption
.
The AggregationPartitionBy
for the TopicIRFilterOption
.
The range for the TopicIRFilterOption
.
The inclusive for the TopicIRFilterOption
.
The time granularity for the TopicIRFilterOption
.
The last next offset for the TopicIRFilterOption
.
The agg metrics for the TopicIRFilterOption
.
The TopBottomLimit
for the TopicIRFilterOption
.
The sort direction for the TopicIRFilterOption
.
The anchor for the TopicIRFilterOption
.
The definition for a TopicIRFilterOption
.
The field name for the TopicIRGroupBy
.
The time granularity for the TopicIRGroupBy
.
The sort for the TopicIRGroupBy
.
The display format for the TopicIRGroupBy
.
The named entity for the TopicIRGroupBy
.
The definition for a TopicIRGroupBy
.
The metric ID for the TopicIRMetric
.
The function for the TopicIRMetric
.
The operands for the TopicIRMetric
.
The comparison method for the TopicIRMetric
.
The expression for the TopicIRMetric
.
The calculated field references for the TopicIRMetric
.
The display format for the TopicIRMetric
.
The named entity for the TopicIRMetric
.
The definition for a TopicIRMetric
.
The Amazon Resource Name (ARN) of the reviewed answer.
" + } + }, + "AnswerId": { + "target": "com.amazonaws.quicksight#AnswerId", + "traits": { + "smithy.api#documentation": "The answer ID of the reviewed answer.
", + "smithy.api#required": {} + } + }, + "DatasetArn": { + "target": "com.amazonaws.quicksight#Arn", + "traits": { + "smithy.api#documentation": "The Dataset ARN for the TopicReviewedAnswer
.
The question for the TopicReviewedAnswer
.
The mir for the TopicReviewedAnswer
.
The primary visual for the TopicReviewedAnswer
.
The template for the TopicReviewedAnswer
.
The deinition for a TopicReviewedAnswer
.
The operand for a TopicSortClause
.
The sort direction for the TopicSortClause
.
The definition for a TopicSortClause
.
A topic summary.
" } }, + "com.amazonaws.quicksight#TopicTemplate": { + "type": "structure", + "members": { + "TemplateType": { + "target": "com.amazonaws.quicksight#LimitedString", + "traits": { + "smithy.api#documentation": "The template type for the TopicTemplate
.
The slots for the TopicTemplate
.
The definition for a TopicTemplate
.
The visual ID for the TopicVisual
.
The role for the TopicVisual
.
The ir for the TopicVisual
.
The supporting visuals for the TopicVisual
.
The definition for a TopicVisual
.
The menu options for a visual.
" } }, + "com.amazonaws.quicksight#VisualOptions": { + "type": "structure", + "members": { + "type": { + "target": "com.amazonaws.quicksight#LimitedString", + "traits": { + "smithy.api#documentation": "The type for a VisualOptions
.
The definition for a VisualOptions
.
The visual display options for the visual palette.
" } }, + "com.amazonaws.quicksight#VisualRole": { + "type": "enum", + "members": { + "PRIMARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PRIMARY" + } + }, + "COMPLIMENTARY": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLIMENTARY" + } + }, + "MULTI_INTENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MULTI_INTENT" + } + }, + "FALLBACK": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FALLBACK" + } + }, + "FRAGMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FRAGMENT" + } + } + } + }, "com.amazonaws.quicksight#VisualSubtitleLabelOptions": { "type": "structure", "members": { diff --git a/aws-models/rds.json b/aws-models/rds.json index 58ab8cf2a106..706afa674304 100644 --- a/aws-models/rds.json +++ b/aws-models/rds.json @@ -14615,7 +14615,20 @@ "outputToken": "Marker", "items": "DBEngineVersions", "pageSize": "MaxRecords" - } + }, + "smithy.test#smokeTests": [ + { + "id": "DescribeDBEngineVersionsSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.rds#DescribeDBEngineVersionsMessage": { @@ -14840,6 +14853,21 @@ "smithy.api#suppress": [ "WaitableTraitInvalidErrorType" ], + "smithy.test#smokeTests": [ + { + "id": "DescribeDBInstancesFailure", + "params": { + "DBInstanceIdentifier": "fake-id" + }, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "failure": {} + } + } + ], "smithy.waiters#waitable": { "DBInstanceAvailable": { "acceptors": [ diff --git a/aws-models/sdk-endpoints.json b/aws-models/sdk-endpoints.json index 6decd3e23e7d..1c2a7de7aecf 100644 --- a/aws-models/sdk-endpoints.json +++ b/aws-models/sdk-endpoints.json @@ -453,16 +453,25 @@ "ap-east-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, + "ap-northeast-3" : { }, "ap-south-1" : { }, + "ap-south-2" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-3" : { }, + "ap-southeast-4" : { }, "ca-central-1" : { }, + "ca-west-1" : { }, "eu-central-1" : { }, + "eu-central-2" : { }, "eu-north-1" : { }, "eu-south-1" : { }, + "eu-south-2" : { }, "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, + "il-central-1" : { }, + "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { }, diff --git a/aws-models/sns.json b/aws-models/sns.json index b523df57d064..8d7701b25101 100644 --- a/aws-models/sns.json +++ b/aws-models/sns.json @@ -3388,7 +3388,20 @@ "inputToken": "NextToken", "outputToken": "NextToken", "items": "Topics" - } + }, + "smithy.test#smokeTests": [ + { + "id": "ListTopicsSuccess", + "params": {}, + "vendorParams": { + "region": "us-west-2" + }, + "vendorParamsShape": "aws.test#AwsVendorParams", + "expect": { + "success": {} + } + } + ] } }, "com.amazonaws.sns#ListTopicsInput": { diff --git a/sdk/acmpca/src/client/list_certificate_authorities.rs b/sdk/acmpca/src/client/list_certificate_authorities.rs index 4d71316d75d1..d110e015e239 100644 --- a/sdk/acmpca/src/client/list_certificate_authorities.rs +++ b/sdk/acmpca/src/client/list_certificate_authorities.rs @@ -4,12 +4,12 @@ impl super::Client { /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_certificate_authorities::builders::ListCertificateAuthoritiesFluentBuilder::into_paginator). /// /// - The fluent builder is configurable: - /// - [`next_token(impl IntoUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken
element is sent in the response. Use this NextToken
value in a subsequent request to retrieve additional items.
Although the maximum value is 1000, the action only returns a maximum of 100 items.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter to filter the returned set of certificate authorities based on their owner. The default is SELF.
Summary information about each certificate authority you have created.
/// - [`next_token(OptionWhen the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
Summary information about each certificate authority you have created.
/// - On failure, responds with [`SdkErrorThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
When paginating results, use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
Summary information about each permission assigned by the specified private CA, including the action enabled, the policy provided, and the time of creation.
/// - [`next_token(OptionWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ /// - [`permissions(OptionSummary information about each permission assigned by the specified private CA, including the action enabled, the policy provided, and the time of creation.
/// - On failure, responds with [`SdkErrorThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
The tags associated with your private CA.
/// - [`next_token(OptionWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ /// - [`tags(OptionThe tags associated with your private CA.
/// - On failure, responds with [`SdkErrorAmazon Web Services Private CA allows the following extensions to be marked critical in the imported CA certificate or chain.
///Authority key identifier
Basic constraints (must be marked critical)
Certificate policies
Subject alternative names
///Extended key usage
Key usage
///Inhibit anyPolicy
Extended key usage
///Issuer alternative name
Authority key identifier
///Key usage
Subject key identifier
///Name constraints
Issuer alternative name
///Policy mappings
Subject directory attributes
///Subject alternative name
Subject information access
///Subject directory attributes
Certificate policies
///Subject key identifier
Policy mappings
///Subject information access
Inhibit anyPolicy
///Amazon Web Services Private CA rejects the following extensions when they are marked critical in an imported CA certificate or chain.
///Authority information access
Name constraints
+///Policy constraints
CRL distribution points
Authority information access
Freshest CRL
Policy constraints
Any other extension
///Amazon Web Services Private Certificate Authority will also reject any other extension marked as critical not contained on the preceding list of allowed extensions.
#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ImportCertificateAuthorityCertificateFluentBuilder { handle: ::std::sync::ArcUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken
element is sent in the response. Use this NextToken
value in a subsequent request to retrieve additional items.
Although the maximum value is 1000, the action only returns a maximum of 100 items.
pub max_results: ::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter to filter the returned set of certificate authorities based on their owner. The default is SELF.
pub resource_owner: ::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken
element is sent in the response. Use this NextToken
value in a subsequent request to retrieve additional items.
Although the maximum value is 1000, the action only returns a maximum of 100 items.
pub fn max_results(&self) -> ::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter to filter the returned set of certificate authorities based on their owner. The default is SELF.
pub fn resource_owner(&self) -> ::std::option::Option<&crate::types::ResourceOwner> { self.resource_owner.as_ref() @@ -37,25 +37,11 @@ impl ListCertificateAuthoritiesInput { #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] #[non_exhaustive] pub struct ListCertificateAuthoritiesInputBuilder { - pub(crate) next_token: ::std::option::Option<::std::string::String>, pub(crate) max_results: ::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken
element is sent in the response. Use this NextToken
value in a subsequent request to retrieve additional items.
Although the maximum value is 1000, the action only returns a maximum of 100 items.
pub fn max_results(mut self, input: i32) -> Self { @@ -73,6 +59,20 @@ impl ListCertificateAuthoritiesInputBuilder { pub fn get_max_results(&self) -> &::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter to filter the returned set of certificate authorities based on their owner. The default is SELF.
pub fn resource_owner(mut self, input: crate::types::ResourceOwner) -> Self { self.resource_owner = ::std::option::Option::Some(input); @@ -95,8 +95,8 @@ impl ListCertificateAuthoritiesInputBuilder { ::aws_smithy_types::error::operation::BuildError, > { ::std::result::Result::Ok(crate::operation::list_certificate_authorities::ListCertificateAuthoritiesInput { - next_token: self.next_token, max_results: self.max_results, + next_token: self.next_token, resource_owner: self.resource_owner, }) } diff --git a/sdk/acmpca/src/operation/list_certificate_authorities/_list_certificate_authorities_output.rs b/sdk/acmpca/src/operation/list_certificate_authorities/_list_certificate_authorities_output.rs index 78838263e926..65da06ed897e 100644 --- a/sdk/acmpca/src/operation/list_certificate_authorities/_list_certificate_authorities_output.rs +++ b/sdk/acmpca/src/operation/list_certificate_authorities/_list_certificate_authorities_output.rs @@ -3,23 +3,23 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ListCertificateAuthoritiesOutput { - ///Summary information about each certificate authority you have created.
- pub certificate_authorities: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
Summary information about each certificate authority you have created.
+ pub certificate_authorities: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
Summary information about each certificate authority you have created.
/// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.certificate_authorities.is_none()`. pub fn certificate_authorities(&self) -> &[crate::types::CertificateAuthority] { self.certificate_authorities.as_deref().unwrap_or_default() } - ///When the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
When the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
When the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
When the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
When the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
When the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
When the list is truncated, this value is present and should be used for the NextToken
parameter in a subsequent pagination request.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken
element is sent in the response. Use this NextToken
value in a subsequent request to retrieve additional items.
Although the maximum value is 1000, the action only returns a maximum of 100 items.
pub fn max_results(mut self, input: i32) -> Self { @@ -145,6 +131,20 @@ impl ListCertificateAuthoritiesFluentBuilder { pub fn get_max_results(&self) -> &::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken
parameter from the response you just received.
Use this parameter to filter the returned set of certificate authorities based on their owner. The default is SELF.
pub fn resource_owner(mut self, input: crate::types::ResourceOwner) -> Self { self.inner = self.inner.resource_owner(input); diff --git a/sdk/acmpca/src/operation/list_permissions/_list_permissions_input.rs b/sdk/acmpca/src/operation/list_permissions/_list_permissions_input.rs index 9b93da113e8d..7ed7f9417234 100644 --- a/sdk/acmpca/src/operation/list_permissions/_list_permissions_input.rs +++ b/sdk/acmpca/src/operation/list_permissions/_list_permissions_input.rs @@ -3,25 +3,25 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ListPermissionsInput { - ///The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
- pub next_token: ::std::option::Option<::std::string::String>, ///When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
pub max_results: ::std::option::OptionWhen paginating results, use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
+ pub next_token: ::std::option::Option<::std::string::String>, + ///The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn max_results(&self) -> ::std::option::OptionWhen paginating results, use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
pub fn next_token(&self) -> ::std::option::Option<&str> { self.next_token.as_deref() } - ///When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn max_results(&self) -> ::std::option::OptionThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn max_results(mut self, input: i32) -> Self { + self.max_results = ::std::option::Option::Some(input); self } - ///The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn get_max_results(&self) -> &::std::option::OptionWhen paginating results, use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -69,28 +68,29 @@ impl ListPermissionsInputBuilder { pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { &self.next_token } - ///When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn max_results(mut self, input: i32) -> Self { - self.max_results = ::std::option::Option::Some(input); + ///The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn get_max_results(&self) -> &::std::option::OptionThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
Summary information about each permission assigned by the specified private CA, including the action enabled, the policy provided, and the time of creation.
- pub permissions: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
pub next_token: ::std::option::Option<::std::string::String>, + ///Summary information about each permission assigned by the specified private CA, including the action enabled, the policy provided, and the time of creation.
+ pub permissions: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn next_token(&self) -> ::std::option::Option<&str> { + self.next_token.as_deref() + } ///Summary information about each permission assigned by the specified private CA, including the action enabled, the policy provided, and the time of creation.
/// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.permissions.is_none()`. pub fn permissions(&self) -> &[crate::types::Permission] { self.permissions.as_deref().unwrap_or_default() } - ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn next_token(&self) -> ::std::option::Option<&str> { - self.next_token.as_deref() - } } impl ::aws_types::request_id::RequestId for ListPermissionsOutput { fn request_id(&self) -> Option<&str> { @@ -37,11 +37,25 @@ impl ListPermissionsOutput { #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] #[non_exhaustive] pub struct ListPermissionsOutputBuilder { - pub(crate) permissions: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.next_token = ::std::option::Option::Some(input.into()); + self + } + ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.next_token = input; + self + } + ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { + &self.next_token + } /// Appends an item to `permissions`. /// /// To override the contents of this collection use [`set_permissions`](Self::set_permissions). @@ -62,20 +76,6 @@ impl ListPermissionsOutputBuilder { pub fn get_permissions(&self) -> &::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { - self.next_token = ::std::option::Option::Some(input.into()); - self - } - ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self { - self.next_token = input; - self - } - ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { - &self.next_token - } pub(crate) fn _request_id(mut self, request_id: impl IntoThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); self } - ///The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn get_max_results(&self) -> &::std::option::OptionWhen paginating results, use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -153,18 +153,18 @@ impl ListPermissionsFluentBuilder { pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_next_token() } - ///When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn max_results(mut self, input: i32) -> Self { - self.inner = self.inner.max_results(input); + ///The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
When paginating results, use this parameter to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn get_max_results(&self) -> &::std::option::OptionThe Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the ListCertificateAuthorities action. This must be of the form: arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
You can get a private CA's ARN by running the ListCertificateAuthorities action.
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub max_results: ::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
+ pub next_token: ::std::option::Option<::std::string::String>, ///The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
- pub next_token: ::std::option::Option<::std::string::String>, - ///Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub max_results: ::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
- ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn max_results(&self) -> ::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
pub fn next_token(&self) -> ::std::option::Option<&str> { self.next_token.as_deref() } - ///Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn max_results(&self) -> ::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
+ ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
- ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn max_results(mut self, input: i32) -> Self { + self.max_results = ::std::option::Option::Some(input); self } - ///The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
- ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
- ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn get_max_results(&self) -> &::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -74,26 +70,30 @@ impl ListTagsInputBuilder { pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { &self.next_token } - ///Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn max_results(mut self, input: i32) -> Self { - self.max_results = ::std::option::Option::Some(input); + ///The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
+ ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
+ ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn get_max_results(&self) -> &::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
+ ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
The tags associated with your private CA.
- pub tags: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
pub next_token: ::std::option::Option<::std::string::String>, + ///The tags associated with your private CA.
+ pub tags: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn next_token(&self) -> ::std::option::Option<&str> { + self.next_token.as_deref() + } ///The tags associated with your private CA.
/// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`. pub fn tags(&self) -> &[crate::types::Tag] { self.tags.as_deref().unwrap_or_default() } - ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn next_token(&self) -> ::std::option::Option<&str> { - self.next_token.as_deref() - } } impl ::aws_types::request_id::RequestId for ListTagsOutput { fn request_id(&self) -> Option<&str> { @@ -37,11 +37,25 @@ impl ListTagsOutput { #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] #[non_exhaustive] pub struct ListTagsOutputBuilder { - pub(crate) tags: ::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.next_token = ::std::option::Option::Some(input.into()); + self + } + ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.next_token = input; + self + } + ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
+ pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { + &self.next_token + } /// Appends an item to `tags`. /// /// To override the contents of this collection use [`set_tags`](Self::set_tags). @@ -62,20 +76,6 @@ impl ListTagsOutputBuilder { pub fn get_tags(&self) -> &::std::option::Option<::std::vec::VecWhen the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { - self.next_token = ::std::option::Option::Some(input.into()); - self - } - ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self { - self.next_token = input; - self - } - ///When the list is truncated, this value is present and should be used for the NextToken parameter in a subsequent pagination request.
- pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { - &self.next_token - } pub(crate) fn _request_id(mut self, request_id: impl IntoThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
- ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn max_results(mut self, input: i32) -> Self { + self.inner = self.inner.max_results(input); self } - ///The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
- ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
- ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
+ pub fn get_max_results(&self) -> &::std::option::OptionUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the response you just received.
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { @@ -136,18 +133,21 @@ impl ListTagsFluentBuilder { pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_next_token() } - ///Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn max_results(mut self, input: i32) -> Self { - self.inner = self.inner.max_results(input); + ///The Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
+ ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn set_max_results(mut self, input: ::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
+ ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
- pub fn get_max_results(&self) -> &::std::option::OptionThe Amazon Resource Name (ARN) that was returned when you called the CreateCertificateAuthority action. This must be of the form:
+ ///arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
The internally-generated identifier of a zonal shift.
The identifier of a zonal shift.
- /// - [`resource_identifier(String)`](crate::operation::cancel_zonal_shift::CancelZonalShiftOutput::resource_identifier):The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
- /// - [`away_from(String)`](crate::operation::cancel_zonal_shift::CancelZonalShiftOutput::away_from):The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
- /// - [`expiry_time(DateTime)`](crate::operation::cancel_zonal_shift::CancelZonalShiftOutput::expiry_time):The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
+ /// - [`resource_identifier(String)`](crate::operation::cancel_zonal_shift::CancelZonalShiftOutput::resource_identifier):The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
+ /// - [`away_from(String)`](crate::operation::cancel_zonal_shift::CancelZonalShiftOutput::away_from):The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// - [`start_time(DateTime)`](crate::operation::cancel_zonal_shift::CancelZonalShiftOutput::start_time):The time (UTC) when the zonal shift starts.
/// - [`status(ZonalShiftStatus)`](crate::operation::cancel_zonal_shift::CancelZonalShiftOutput::status):A status for a zonal shift.
The Status
for a zonal shift can have one of the following values:
ACTIVE: The zonal shift has been started and active.
EXPIRED: The zonal shift has expired (the expiry time was exceeded).
CANCELED: The zonal shift was canceled.
A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
diff --git a/sdk/arczonalshift/src/client/create_practice_run_configuration.rs b/sdk/arczonalshift/src/client/create_practice_run_configuration.rs index 9ea2ad27c14c..052e46e3a84c 100644 --- a/sdk/arczonalshift/src/client/create_practice_run_configuration.rs +++ b/sdk/arczonalshift/src/client/create_practice_run_configuration.rs @@ -3,7 +3,7 @@ impl super::Client { /// Constructs a fluent builder for the [`CreatePracticeRunConfiguration`](crate::operation::create_practice_run_configuration::builders::CreatePracticeRunConfigurationFluentBuilder) operation. /// /// - The fluent builder is configurable: - /// - [`resource_identifier(impl IntoThe identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
Optionally, you can block Route 53 ARC from starting practice runs for specific windows of days and times.
The format for blocked windows is: DAY:HH:SS-DAY:HH:SS. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Also, be aware of potential time adjustments that might be required for daylight saving time differences. Separate multiple blocked windows with spaces.
For example, say you run business report summaries three days a week. For this scenario, you might set the following recurring days and times as blocked windows, for example: MON-20:30-21:30 WED-20:30-21:30 FRI-20:30-21:30
.
Optionally, you can block Route 53 ARC from starting practice runs for a resource on specific calendar dates.
The format for blocked dates is: YYYY-MM-DD. Keep in mind, when you specify dates, that dates and times for practice runs are in UTC. Separate multiple blocked dates with spaces.
For example, if you have an application update scheduled to launch on May 1, 2024, and you don't want practice runs to shift traffic away at that time, you could set a blocked date for 2024-05-01
.
An Amazon CloudWatch alarm that you can specify for zonal autoshift practice runs. This alarm blocks Route 53 ARC from starting practice run zonal shifts, and ends a practice run that's in progress, when the alarm is in an ALARM
state.
The Amazon Resource Name (ARN) of the resource that you configured the practice run for.
/// - [`name(String)`](crate::operation::create_practice_run_configuration::CreatePracticeRunConfigurationOutput::name):The name of the resource that you configured the practice run for.
- /// - [`zonal_autoshift_status(ZonalAutoshiftStatus)`](crate::operation::create_practice_run_configuration::CreatePracticeRunConfigurationOutput::zonal_autoshift_status):The status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED
, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.
When you enable zonal autoshift, you must also configure practice runs for the resource.
+ /// - [`zonal_autoshift_status(ZonalAutoshiftStatus)`](crate::operation::create_practice_run_configuration::CreatePracticeRunConfigurationOutput::zonal_autoshift_status):The status for zonal autoshift for a resource. When you specify ENABLED
for the autoshift status, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when internal telemetry indicates that there is an Availability Zone impairment that could potentially impact customers.
When you enable zonal autoshift, you must also configure practice runs for the resource.
/// - [`practice_run_configuration(OptionA practice run configuration for a resource. Configurations include the outcome alarm that you specify for practice runs, and, optionally, a blocking alarm and blocking dates and windows.
/// - On failure, responds with [`SdkErrorThe status of autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
The Amazon Resource Name (ARN) for the resource.
/// - [`name(OptionThe name of the resource.
diff --git a/sdk/arczonalshift/src/client/start_zonal_shift.rs b/sdk/arczonalshift/src/client/start_zonal_shift.rs index 41708bbeba30..3a64c4b8be9f 100644 --- a/sdk/arczonalshift/src/client/start_zonal_shift.rs +++ b/sdk/arczonalshift/src/client/start_zonal_shift.rs @@ -3,15 +3,15 @@ impl super::Client { /// Constructs a fluent builder for the [`StartZonalShift`](crate::operation::start_zonal_shift::builders::StartZonalShiftFluentBuilder) operation. /// /// - The fluent builder is configurable: - /// - [`resource_identifier(impl IntoThe identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
A lowercase letter m: To specify that the value is in minutes.
A lowercase letter h: To specify that the value is in hours.
For example: 20h
means the zonal shift expires in 20 hours. 120m
means the zonal shift expires in 120 minutes (2 hours).
A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
The identifier of a zonal shift.
- /// - [`resource_identifier(String)`](crate::operation::start_zonal_shift::StartZonalShiftOutput::resource_identifier):The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
- /// - [`away_from(String)`](crate::operation::start_zonal_shift::StartZonalShiftOutput::away_from):The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
- /// - [`expiry_time(DateTime)`](crate::operation::start_zonal_shift::StartZonalShiftOutput::expiry_time):The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
+ /// - [`resource_identifier(String)`](crate::operation::start_zonal_shift::StartZonalShiftOutput::resource_identifier):The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
+ /// - [`away_from(String)`](crate::operation::start_zonal_shift::StartZonalShiftOutput::away_from):The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// - [`start_time(DateTime)`](crate::operation::start_zonal_shift::StartZonalShiftOutput::start_time):The time (UTC) when the zonal shift starts.
/// - [`status(ZonalShiftStatus)`](crate::operation::start_zonal_shift::StartZonalShiftOutput::status):A status for a zonal shift.
The Status
for a zonal shift can have one of the following values:
ACTIVE: The zonal shift has been started and active.
EXPIRED: The zonal shift has expired (the expiry time was exceeded).
CANCELED: The zonal shift was canceled.
A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
diff --git a/sdk/arczonalshift/src/client/update_autoshift_observer_notification_status.rs b/sdk/arczonalshift/src/client/update_autoshift_observer_notification_status.rs new file mode 100644 index 000000000000..883c4fcac353 --- /dev/null +++ b/sdk/arczonalshift/src/client/update_autoshift_observer_notification_status.rs @@ -0,0 +1,17 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +impl super::Client { + /// Constructs a fluent builder for the [`UpdateAutoshiftObserverNotificationStatus`](crate::operation::update_autoshift_observer_notification_status::builders::UpdateAutoshiftObserverNotificationStatusFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`status(AutoshiftObserverNotificationStatus)`](crate::operation::update_autoshift_observer_notification_status::builders::UpdateAutoshiftObserverNotificationStatusFluentBuilder::status) / [`set_status(OptionThe status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status for autoshift observer notification.
+ /// - On failure, responds with [`SdkErrorThe identifier for the resource that you want to update the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The identifier for the resource that you updated the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
- /// - [`zonal_autoshift_status(ZonalAutoshiftStatus)`](crate::operation::update_zonal_autoshift_configuration::UpdateZonalAutoshiftConfigurationOutput::zonal_autoshift_status):The zonal autoshift status for the resource that you updated the zonal autoshift configuration for.
+ /// - [`zonal_autoshift_status(ZonalAutoshiftStatus)`](crate::operation::update_zonal_autoshift_configuration::UpdateZonalAutoshiftConfigurationOutput::zonal_autoshift_status):The updated zonal autoshift status for the resource.
/// - On failure, responds with [`SdkErrorThe length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
A lowercase letter m: To specify that the value is in minutes.
A lowercase letter h: To specify that the value is in hours.
For example: 20h
means the zonal shift expires in 20 hours. 120m
means the zonal shift expires in 120 minutes (2 hours).
The identifier of a zonal shift.
- /// - [`resource_identifier(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::resource_identifier):The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
- /// - [`away_from(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::away_from):The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
- /// - [`expiry_time(DateTime)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::expiry_time):The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
+ /// - [`resource_identifier(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::resource_identifier):The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
+ /// - [`away_from(String)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::away_from):The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// - [`start_time(DateTime)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::start_time):The time (UTC) when the zonal shift starts.
/// - [`status(ZonalShiftStatus)`](crate::operation::update_zonal_shift::UpdateZonalShiftOutput::status):A status for a zonal shift.
The Status
for a zonal shift can have one of the following values:
ACTIVE: The zonal shift has been started and active.
EXPIRED: The zonal shift has expired (the expiry time was exceeded).
CANCELED: The zonal shift was canceled.
A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
diff --git a/sdk/arczonalshift/src/error_meta.rs b/sdk/arczonalshift/src/error_meta.rs index 764028edb63d..8757c29787d5 100644 --- a/sdk/arczonalshift/src/error_meta.rs +++ b/sdk/arczonalshift/src/error_meta.rs @@ -191,6 +191,49 @@ impl FromThe identifier of a zonal shift.
pub zonal_shift_id: ::std::string::String, - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::string::String, - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub expiry_time: ::aws_smithy_types::DateTime, ///The time (UTC) when the zonal shift starts.
@@ -36,18 +36,18 @@ impl CancelZonalShiftOutput { use std::ops::Deref; self.zonal_shift_id.deref() } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(&self) -> &str { use std::ops::Deref; self.resource_identifier.deref() } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn expiry_time(&self) -> &::aws_smithy_types::DateTime { &self.expiry_time @@ -116,53 +116,53 @@ impl CancelZonalShiftOutputBuilder { pub fn get_zonal_shift_id(&self) -> &::std::option::Option<::std::string::String> { &self.zonal_shift_id } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
/// This field is required. pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.resource_identifier = ::std::option::Option::Some(input.into()); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.resource_identifier = input; self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// This field is required. pub fn expiry_time(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.expiry_time = ::std::option::Option::Some(input); self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn set_expiry_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.expiry_time = input; self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn get_expiry_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.expiry_time diff --git a/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_input.rs b/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_input.rs index e7f72086a0b0..4b8e6ddd5843 100644 --- a/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_input.rs +++ b/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_input.rs @@ -3,7 +3,7 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct CreatePracticeRunConfigurationInput { - ///The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::option::Option<::std::string::String>, ///Optionally, you can block Route 53 ARC from starting practice runs for specific windows of days and times.
@@ -21,7 +21,7 @@ pub struct CreatePracticeRunConfigurationInput { pub outcome_alarms: ::std::option::Option<::std::vec::VecThe identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(&self) -> ::std::option::Option<&str> { self.resource_identifier.as_deref() @@ -74,20 +74,20 @@ pub struct CreatePracticeRunConfigurationInputBuilder { pub(crate) outcome_alarms: ::std::option::Option<::std::vec::VecThe identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
/// This field is required. pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.resource_identifier = ::std::option::Option::Some(input.into()); self } - ///The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.resource_identifier = input; self } - ///The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier diff --git a/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_output.rs b/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_output.rs index a30049231993..85eeb7a2784f 100644 --- a/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_output.rs +++ b/sdk/arczonalshift/src/operation/create_practice_run_configuration/_create_practice_run_configuration_output.rs @@ -7,7 +7,7 @@ pub struct CreatePracticeRunConfigurationOutput { pub arn: ::std::string::String, ///The name of the resource that you configured the practice run for.
pub name: ::std::string::String, - ///The status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED
, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.
The status for zonal autoshift for a resource. When you specify ENABLED
for the autoshift status, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when internal telemetry indicates that there is an Availability Zone impairment that could potentially impact customers.
When you enable zonal autoshift, you must also configure practice runs for the resource.
pub zonal_autoshift_status: crate::types::ZonalAutoshiftStatus, ///A practice run configuration for a resource. Configurations include the outcome alarm that you specify for practice runs, and, optionally, a blocking alarm and blocking dates and windows.
@@ -25,7 +25,7 @@ impl CreatePracticeRunConfigurationOutput { use std::ops::Deref; self.name.deref() } - ///The status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED
, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.
The status for zonal autoshift for a resource. When you specify ENABLED
for the autoshift status, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when internal telemetry indicates that there is an Availability Zone impairment that could potentially impact customers.
When you enable zonal autoshift, you must also configure practice runs for the resource.
pub fn zonal_autoshift_status(&self) -> &crate::types::ZonalAutoshiftStatus { &self.zonal_autoshift_status @@ -88,20 +88,20 @@ impl CreatePracticeRunConfigurationOutputBuilder { pub fn get_name(&self) -> &::std::option::Option<::std::string::String> { &self.name } - ///The status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED
, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.
The status for zonal autoshift for a resource. When you specify ENABLED
for the autoshift status, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when internal telemetry indicates that there is an Availability Zone impairment that could potentially impact customers.
When you enable zonal autoshift, you must also configure practice runs for the resource.
/// This field is required. pub fn zonal_autoshift_status(mut self, input: crate::types::ZonalAutoshiftStatus) -> Self { self.zonal_autoshift_status = ::std::option::Option::Some(input); self } - ///The status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED
, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.
The status for zonal autoshift for a resource. When you specify ENABLED
for the autoshift status, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when internal telemetry indicates that there is an Availability Zone impairment that could potentially impact customers.
When you enable zonal autoshift, you must also configure practice runs for the resource.
pub fn set_zonal_autoshift_status(mut self, input: ::std::option::OptionThe status for zonal autoshift for a resource. When you specify the autoshift status as ENABLED
, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.
The status for zonal autoshift for a resource. When you specify ENABLED
for the autoshift status, Amazon Web Services shifts traffic away from shifts away application resource traffic from an Availability Zone, on your behalf, when internal telemetry indicates that there is an Availability Zone impairment that could potentially impact customers.
When you enable zonal autoshift, you must also configure practice runs for the resource.
pub fn get_zonal_autoshift_status(&self) -> &::std::option::OptionA practice run configuration for zonal autoshift is required when you enable zonal autoshift. A practice run configuration includes specifications for blocked dates and blocked time windows, and for Amazon CloudWatch alarms that you create to use with practice runs. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting.
+///When a resource has a practice run configuration, Route 53 ARC starts zonal shifts for the resource weekly, to shift traffic for practice runs. Practice runs help you to ensure that shifting away traffic from an Availability Zone during an autoshift is safe for your application.
///For more information, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct CreatePracticeRunConfigurationFluentBuilder { @@ -109,19 +110,19 @@ impl CreatePracticeRunConfigurationFluentBuilder { self.config_override = config_override; self } - ///The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.resource_identifier(input.into()); self } - ///The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_resource_identifier(input); self } - ///The identifier of the resource to shift away traffic for when a practice run starts a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier of the resource that Amazon Web Services shifts traffic for with a practice run zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_resource_identifier() diff --git a/sdk/arczonalshift/src/operation/get_autoshift_observer_notification_status.rs b/sdk/arczonalshift/src/operation/get_autoshift_observer_notification_status.rs new file mode 100644 index 000000000000..cdcc32607edb --- /dev/null +++ b/sdk/arczonalshift/src/operation/get_autoshift_observer_notification_status.rs @@ -0,0 +1,379 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +/// Orchestration and serialization glue logic for `GetAutoshiftObserverNotificationStatus`. +#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct GetAutoshiftObserverNotificationStatus; +impl GetAutoshiftObserverNotificationStatus { + /// Creates a new `GetAutoshiftObserverNotificationStatus` + pub fn new() -> Self { + Self + } + pub(crate) async fn orchestrate( + runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins, + input: crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusInput, + ) -> ::std::result::Result< + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusOutput, + ::aws_smithy_runtime_api::client::result::SdkError< + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >, + > { + let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError< + ::aws_smithy_runtime_api::client::interceptors::context::Error, + ::aws_smithy_runtime_api::client::orchestrator::HttpResponse, + >| { + err.map_service_error(|err| { + err.downcast::You do not have sufficient access to perform this action.
+ AccessDeniedException(crate::types::error::AccessDeniedException), + ///There was an internal server error.
+ InternalServerException(crate::types::error::InternalServerException), + ///The request was denied due to request throttling.
+ ThrottlingException(crate::types::error::ThrottlingException), + /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). + #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ + variable wildcard pattern and check `.code()`: + \ + `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }` + \ + See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetAutoshiftObserverNotificationStatusError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl GetAutoshiftObserverNotificationStatusError { + /// Creates the `GetAutoshiftObserverNotificationStatusError::Unhandled` variant from any error type. + pub fn unhandled( + err: impl ::std::convert::Into<::std::boxed::BoxThe status of autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status of autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status of autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status of autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status of autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
Returns the status of autoshift observer notification. Autoshift observer notification enables you to be notified, through Amazon EventBridge, when there is an autoshift event for zonal autoshift.
+///If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
For more information, see Notifications for practice runs and autoshifts in the Amazon Route 53 Application Recovery Controller Developer Guide.
+#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct GetAutoshiftObserverNotificationStatusFluentBuilder { + handle: ::std::sync::ArcThe identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::option::Option<::std::string::String>, } impl GetManagedResourceInput { - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(&self) -> ::std::option::Option<&str> { self.resource_identifier.as_deref() @@ -28,20 +28,20 @@ pub struct GetManagedResourceInputBuilder { pub(crate) resource_identifier: ::std::option::Option<::std::string::String>, } impl GetManagedResourceInputBuilder { - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
/// This field is required. pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.resource_identifier = ::std::option::Option::Some(input.into()); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.resource_identifier = input; self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier diff --git a/sdk/arczonalshift/src/operation/get_managed_resource/builders.rs b/sdk/arczonalshift/src/operation/get_managed_resource/builders.rs index 0e7942109833..96f968a48db3 100644 --- a/sdk/arczonalshift/src/operation/get_managed_resource/builders.rs +++ b/sdk/arczonalshift/src/operation/get_managed_resource/builders.rs @@ -109,19 +109,19 @@ impl GetManagedResourceFluentBuilder { self.config_override = config_override; self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.resource_identifier(input.into()); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_resource_identifier(input); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_resource_identifier() diff --git a/sdk/arczonalshift/src/operation/list_autoshifts/builders.rs b/sdk/arczonalshift/src/operation/list_autoshifts/builders.rs index 6898ae9fadfd..8d8bd8b9aee5 100644 --- a/sdk/arczonalshift/src/operation/list_autoshifts/builders.rs +++ b/sdk/arczonalshift/src/operation/list_autoshifts/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::list_autoshifts::builders::ListAutoshiftsInputBuilder { } /// Fluent builder constructing a request to `ListAutoshifts`. /// -///Returns the active autoshifts for a specified resource.
+///Returns a list of autoshifts for an Amazon Web Services Region. By default, the call returns only ACTIVE
autoshifts. Optionally, you can specify the status
parameter to return COMPLETED
autoshifts.
Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region. ListZonalShifts
returns customer-started zonal shifts, as well as practice run zonal shifts that Route 53 ARC started on your behalf for zonal autoshift.
Lists all active and completed zonal shifts in Amazon Route 53 Application Recovery Controller in your Amazon Web Services account in this Amazon Web Services Region. ListZonalShifts
returns customer-initiated zonal shifts, as well as practice run zonal shifts that Route 53 ARC started on your behalf for zonal autoshift.
The ListZonalShifts
operation does not list autoshifts. For more information about listing autoshifts, see ">ListAutoshifts.
The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::option::Option<::std::string::String>, - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
///If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
@@ -23,12 +23,12 @@ pub struct StartZonalShiftInput { pub comment: ::std::option::Option<::std::string::String>, } impl StartZonalShiftInput { - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(&self) -> ::std::option::Option<&str> { self.resource_identifier.as_deref() } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
/// This field is required. pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.resource_identifier = ::std::option::Option::Some(input.into()); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.resource_identifier = input; self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The identifier of a zonal shift.
pub zonal_shift_id: ::std::string::String, - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::string::String, - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub expiry_time: ::aws_smithy_types::DateTime, ///The time (UTC) when the zonal shift starts.
@@ -36,18 +36,18 @@ impl StartZonalShiftOutput { use std::ops::Deref; self.zonal_shift_id.deref() } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(&self) -> &str { use std::ops::Deref; self.resource_identifier.deref() } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn expiry_time(&self) -> &::aws_smithy_types::DateTime { &self.expiry_time @@ -116,53 +116,53 @@ impl StartZonalShiftOutputBuilder { pub fn get_zonal_shift_id(&self) -> &::std::option::Option<::std::string::String> { &self.zonal_shift_id } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
/// This field is required. pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.resource_identifier = ::std::option::Option::Some(input.into()); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.resource_identifier = input; self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// This field is required. pub fn expiry_time(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.expiry_time = ::std::option::Option::Some(input); self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn set_expiry_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.expiry_time = input; self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn get_expiry_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.expiry_time diff --git a/sdk/arczonalshift/src/operation/start_zonal_shift/builders.rs b/sdk/arczonalshift/src/operation/start_zonal_shift/builders.rs index ce17aae3b911..bbb058f6ba92 100644 --- a/sdk/arczonalshift/src/operation/start_zonal_shift/builders.rs +++ b/sdk/arczonalshift/src/operation/start_zonal_shift/builders.rs @@ -111,34 +111,34 @@ impl StartZonalShiftFluentBuilder { self.config_override = config_override; self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.resource_identifier(input.into()); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_resource_identifier(input); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_resource_identifier() } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
You do not have sufficient access to perform this action.
+ AccessDeniedException(crate::types::error::AccessDeniedException), + ///There was an internal server error.
+ InternalServerException(crate::types::error::InternalServerException), + ///The request was denied due to request throttling.
+ ThrottlingException(crate::types::error::ThrottlingException), + ///The input fails to satisfy the constraints specified by an Amazon Web Services service.
+ ValidationException(crate::types::error::ValidationException), + /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). + #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ + variable wildcard pattern and check `.code()`: + \ + `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }` + \ + See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateAutoshiftObserverNotificationStatusError) for what information is available for the error.")] + Unhandled(crate::error::sealed_unhandled::Unhandled), +} +impl UpdateAutoshiftObserverNotificationStatusError { + /// Creates the `UpdateAutoshiftObserverNotificationStatusError::Unhandled` variant from any error type. + pub fn unhandled( + err: impl ::std::convert::Into<::std::boxed::BoxThe status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status for autoshift observer notification.
+ pub status: crate::types::AutoshiftObserverNotificationStatus, + _request_id: OptionThe status for autoshift observer notification.
+ pub fn status(&self) -> &crate::types::AutoshiftObserverNotificationStatus { + &self.status + } +} +impl ::aws_types::request_id::RequestId for UpdateAutoshiftObserverNotificationStatusOutput { + fn request_id(&self) -> Option<&str> { + self._request_id.as_deref() + } +} +impl UpdateAutoshiftObserverNotificationStatusOutput { + /// Creates a new builder-style object to manufacture [`UpdateAutoshiftObserverNotificationStatusOutput`](crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusOutput). + pub fn builder( + ) -> crate::operation::update_autoshift_observer_notification_status::builders::UpdateAutoshiftObserverNotificationStatusOutputBuilder { + crate::operation::update_autoshift_observer_notification_status::builders::UpdateAutoshiftObserverNotificationStatusOutputBuilder::default() + } +} + +/// A builder for [`UpdateAutoshiftObserverNotificationStatusOutput`](crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusOutput). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct UpdateAutoshiftObserverNotificationStatusOutputBuilder { + pub(crate) status: ::std::option::OptionThe status for autoshift observer notification.
+ /// This field is required. + pub fn status(mut self, input: crate::types::AutoshiftObserverNotificationStatus) -> Self { + self.status = ::std::option::Option::Some(input); + self + } + ///The status for autoshift observer notification.
+ pub fn set_status(mut self, input: ::std::option::OptionThe status for autoshift observer notification.
+ pub fn get_status(&self) -> &::std::option::OptionUpdate the status of autoshift observer notification. Autoshift observer notification enables you to be notified, through Amazon EventBridge, when there is an autoshift event for zonal autoshift.
+///If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
For more information, see Notifications for practice runs and autoshifts in the Amazon Route 53 Application Recovery Controller Developer Guide.
+#[derive(::std::clone::Clone, ::std::fmt::Debug)] +pub struct UpdateAutoshiftObserverNotificationStatusFluentBuilder { + handle: ::std::sync::ArcThe status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The status to set for autoshift observer notification. If the status is ENABLED
, Route 53 ARC includes all autoshift events when you use the Amazon EventBridge pattern Autoshift In Progress
. When the status is DISABLED
, Route 53 ARC includes only autoshift events for autoshifts when one or more of your resources is included in the autoshift.
The identifier for the resource that you want to update the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
pub resource_identifier: ::std::option::Option<::std::string::String>, - ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The identifier for the resource that you updated the zonal autoshift configuration for. The identifier is the Amazon Resource Name (ARN) for the resource.
pub resource_identifier: ::std::string::String, - ///The zonal autoshift status for the resource that you updated the zonal autoshift configuration for.
+ ///The updated zonal autoshift status for the resource.
pub zonal_autoshift_status: crate::types::ZonalAutoshiftStatus, _request_id: OptionThe zonal autoshift status for the resource that you updated the zonal autoshift configuration for.
+ ///The updated zonal autoshift status for the resource.
pub fn zonal_autoshift_status(&self) -> &crate::types::ZonalAutoshiftStatus { &self.zonal_autoshift_status } @@ -56,18 +56,18 @@ impl UpdateZonalAutoshiftConfigurationOutputBuilder { pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } - ///The zonal autoshift status for the resource that you updated the zonal autoshift configuration for.
+ ///The updated zonal autoshift status for the resource.
/// This field is required. pub fn zonal_autoshift_status(mut self, input: crate::types::ZonalAutoshiftStatus) -> Self { self.zonal_autoshift_status = ::std::option::Option::Some(input); self } - ///The zonal autoshift status for the resource that you updated the zonal autoshift configuration for.
+ ///The updated zonal autoshift status for the resource.
pub fn set_zonal_autoshift_status(mut self, input: ::std::option::OptionThe zonal autoshift status for the resource that you updated the zonal autoshift configuration for.
+ ///The updated zonal autoshift status for the resource.
pub fn get_zonal_autoshift_status(&self) -> &::std::option::OptionYou can update the zonal autoshift status for a resource, to enable or disable zonal autoshift. When zonal autoshift is ENABLED
, Amazon Web Services shifts away resource traffic from an Availability Zone, on your behalf, when Amazon Web Services determines that there's an issue in the Availability Zone that could potentially affect customers.
The zonal autoshift configuration for a resource includes the practice run configuration and the status for running autoshifts, zonal autoshift status. When a resource has a practice run configuation, Route 53 ARC starts weekly zonal shifts for the resource, to shift traffic away from an Availability Zone. Weekly practice runs help you to make sure that your application can continue to operate normally with the loss of one Availability Zone.
+///You can update the zonal autoshift autoshift status to enable or disable zonal autoshift. When zonal autoshift is ENABLED
, you authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery. Traffic is also shifted away for the required weekly practice runs.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for.
+ ///The zonal autoshift status for the resource that you want to update the zonal autoshift configuration for. Choose ENABLED
to authorize Amazon Web Services to shift away resource traffic for an application from an Availability Zone during events, on your behalf, to help reduce time to recovery.
The identifier of a zonal shift.
pub zonal_shift_id: ::std::string::String, - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::string::String, - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub expiry_time: ::aws_smithy_types::DateTime, ///The time (UTC) when the zonal shift starts.
@@ -36,18 +36,18 @@ impl UpdateZonalShiftOutput { use std::ops::Deref; self.zonal_shift_id.deref() } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn resource_identifier(&self) -> &str { use std::ops::Deref; self.resource_identifier.deref() } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn expiry_time(&self) -> &::aws_smithy_types::DateTime { &self.expiry_time @@ -116,53 +116,53 @@ impl UpdateZonalShiftOutputBuilder { pub fn get_zonal_shift_id(&self) -> &::std::option::Option<::std::string::String> { &self.zonal_shift_id } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
/// This field is required. pub fn resource_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.resource_identifier = ::std::option::Option::Some(input.into()); self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn set_resource_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.resource_identifier = input; self } - ///The identifier for the resource to shift away traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
+ ///The identifier for the resource that Amazon Web Services shifts traffic for. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, supported resources are Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// This field is required. pub fn expiry_time(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.expiry_time = ::std::option::Option::Some(input); self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn set_expiry_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.expiry_time = input; self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn get_expiry_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.expiry_time diff --git a/sdk/arczonalshift/src/protocol_serde.rs b/sdk/arczonalshift/src/protocol_serde.rs index c38a6b37b33c..b59b56b5d85f 100644 --- a/sdk/arczonalshift/src/protocol_serde.rs +++ b/sdk/arczonalshift/src/protocol_serde.rs @@ -29,6 +29,8 @@ pub(crate) mod shape_create_practice_run_configuration; pub(crate) mod shape_delete_practice_run_configuration; +pub(crate) mod shape_get_autoshift_observer_notification_status; + pub(crate) mod shape_get_managed_resource; pub(crate) mod shape_list_autoshifts; @@ -39,6 +41,8 @@ pub(crate) mod shape_list_zonal_shifts; pub(crate) mod shape_start_zonal_shift; +pub(crate) mod shape_update_autoshift_observer_notification_status; + pub(crate) mod shape_update_practice_run_configuration; pub(crate) mod shape_update_zonal_autoshift_configuration; @@ -67,6 +71,8 @@ pub(crate) mod shape_start_zonal_shift_input; pub(crate) mod shape_throttling_exception; +pub(crate) mod shape_update_autoshift_observer_notification_status_input; + pub(crate) mod shape_update_practice_run_configuration_input; pub(crate) mod shape_update_zonal_autoshift_configuration_input; diff --git a/sdk/arczonalshift/src/protocol_serde/shape_get_autoshift_observer_notification_status.rs b/sdk/arczonalshift/src/protocol_serde/shape_get_autoshift_observer_notification_status.rs new file mode 100644 index 000000000000..883e1d4b9ea7 --- /dev/null +++ b/sdk/arczonalshift/src/protocol_serde/shape_get_autoshift_observer_notification_status.rs @@ -0,0 +1,150 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_get_autoshift_observer_notification_status_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusOutput, + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError, +> { + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::unhandled)?; + generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers); + let generic = generic_builder.build(); + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err(crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::unhandled(generic)) + } + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "AccessDeniedException" => { + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::AccessDeniedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default(); + output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output) + .map_err( + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::unhandled, + )?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "InternalServerException" => { + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::InternalServerException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InternalServerExceptionBuilder::default(); + output = crate::protocol_serde::shape_internal_server_exception::de_internal_server_exception_json_err(_response_body, output) + .map_err( + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::unhandled, + )?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "ThrottlingException" => { + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::ThrottlingException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default(); + output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output).map_err( + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::unhandled, + )?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + _ => crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_get_autoshift_observer_notification_status_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusOutput, + crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = + crate::operation::get_autoshift_observer_notification_status::builders::GetAutoshiftObserverNotificationStatusOutputBuilder::default(); + output = crate::protocol_serde::shape_get_autoshift_observer_notification_status::de_get_autoshift_observer_notification_status( + _response_body, + output, + ) + .map_err(crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::unhandled)?; + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + crate::serde_util::get_autoshift_observer_notification_status_output_output_correct_errors(output) + .build() + .map_err(crate::operation::get_autoshift_observer_notification_status::GetAutoshiftObserverNotificationStatusError::unhandled)? + }) +} + +pub(crate) fn de_get_autoshift_observer_notification_status( + value: &[u8], + mut builder: crate::operation::get_autoshift_observer_notification_status::builders::GetAutoshiftObserverNotificationStatusOutputBuilder, +) -> Result< + crate::operation::get_autoshift_observer_notification_status::builders::GetAutoshiftObserverNotificationStatusOutputBuilder, + ::aws_smithy_json::deserialize::error::DeserializeError, +> { + let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable(); + let tokens = &mut tokens_owned; + ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "status" => { + builder = builder.set_status( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::types::AutoshiftObserverNotificationStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + if tokens.next().is_some() { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} diff --git a/sdk/arczonalshift/src/protocol_serde/shape_update_autoshift_observer_notification_status.rs b/sdk/arczonalshift/src/protocol_serde/shape_update_autoshift_observer_notification_status.rs new file mode 100644 index 000000000000..8e41897f837e --- /dev/null +++ b/sdk/arczonalshift/src/protocol_serde/shape_update_autoshift_observer_notification_status.rs @@ -0,0 +1,180 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +#[allow(clippy::unnecessary_wraps)] +pub fn de_update_autoshift_observer_notification_status_http_error( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusOutput, + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError, +> { + #[allow(unused_mut)] + let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body) + .map_err(crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled)?; + generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers); + let generic = generic_builder.build(); + let error_code = match generic.code() { + Some(code) => code, + None => { + return Err( + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled(generic), + ) + } + }; + + let _error_message = generic.message().map(|msg| msg.to_owned()); + Err(match error_code { + "AccessDeniedException" => { + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::AccessDeniedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default(); + output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output) + .map_err( + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled, + )?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "InternalServerException" => { + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::InternalServerException( + { + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::InternalServerExceptionBuilder::default(); + output = crate::protocol_serde::shape_internal_server_exception::de_internal_server_exception_json_err(_response_body, output).map_err(crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }, + ) + } + "ThrottlingException" => { + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::ThrottlingException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ThrottlingExceptionBuilder::default(); + output = crate::protocol_serde::shape_throttling_exception::de_throttling_exception_json_err(_response_body, output).map_err( + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled, + )?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } + "ValidationException" => { + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::ValidationException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ValidationExceptionBuilder::default(); + output = crate::protocol_serde::shape_validation_exception::de_validation_exception_json_err(_response_body, output).map_err( + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled, + )?; + let output = output.meta(generic); + crate::serde_util::validation_exception_correct_errors(output).build().map_err( + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled, + )? + }; + tmp + }) + } + _ => crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::generic(generic), + }) +} + +#[allow(clippy::unnecessary_wraps)] +pub fn de_update_autoshift_observer_notification_status_http_response( + _response_status: u16, + _response_headers: &::aws_smithy_runtime_api::http::Headers, + _response_body: &[u8], +) -> std::result::Result< + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusOutput, + crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError, +> { + Ok({ + #[allow(unused_mut)] + let mut output = crate::operation::update_autoshift_observer_notification_status::builders::UpdateAutoshiftObserverNotificationStatusOutputBuilder::default(); + output = crate::protocol_serde::shape_update_autoshift_observer_notification_status::de_update_autoshift_observer_notification_status( + _response_body, + output, + ) + .map_err(crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled)?; + output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string)); + crate::serde_util::update_autoshift_observer_notification_status_output_output_correct_errors(output) + .build() + .map_err(crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusError::unhandled)? + }) +} + +pub fn ser_update_autoshift_observer_notification_status_input( + input: &crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusInput, +) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> { + let mut out = String::new(); + let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out); + crate::protocol_serde::shape_update_autoshift_observer_notification_status_input::ser_update_autoshift_observer_notification_status_input_input( + &mut object, + input, + )?; + object.finish(); + Ok(::aws_smithy_types::body::SdkBody::from(out)) +} + +pub(crate) fn de_update_autoshift_observer_notification_status( + value: &[u8], + mut builder: crate::operation::update_autoshift_observer_notification_status::builders::UpdateAutoshiftObserverNotificationStatusOutputBuilder, +) -> Result< + crate::operation::update_autoshift_observer_notification_status::builders::UpdateAutoshiftObserverNotificationStatusOutputBuilder, + ::aws_smithy_json::deserialize::error::DeserializeError, +> { + let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable(); + let tokens = &mut tokens_owned; + ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?; + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "status" => { + builder = builder.set_status( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| { + s.to_unescaped() + .map(|u| crate::types::AutoshiftObserverNotificationStatus::from(u.as_ref())) + }) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + if tokens.next().is_some() { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "found more JSON tokens after completing parsing", + )); + } + Ok(builder) +} diff --git a/sdk/arczonalshift/src/protocol_serde/shape_update_autoshift_observer_notification_status_input.rs b/sdk/arczonalshift/src/protocol_serde/shape_update_autoshift_observer_notification_status_input.rs new file mode 100644 index 000000000000..f3a4000b603b --- /dev/null +++ b/sdk/arczonalshift/src/protocol_serde/shape_update_autoshift_observer_notification_status_input.rs @@ -0,0 +1,10 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub fn ser_update_autoshift_observer_notification_status_input_input( + object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, + input: &crate::operation::update_autoshift_observer_notification_status::UpdateAutoshiftObserverNotificationStatusInput, +) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { + if let Some(var_1) = &input.status { + object.key("status").string(var_1.as_str()); + } + Ok(()) +} diff --git a/sdk/arczonalshift/src/serde_util.rs b/sdk/arczonalshift/src/serde_util.rs index a1c69562157e..b32ab7e4ce56 100644 --- a/sdk/arczonalshift/src/serde_util.rs +++ b/sdk/arczonalshift/src/serde_util.rs @@ -95,6 +95,15 @@ pub(crate) fn delete_practice_run_configuration_output_output_correct_errors( builder } +pub(crate) fn get_autoshift_observer_notification_status_output_output_correct_errors( + mut builder: crate::operation::get_autoshift_observer_notification_status::builders::GetAutoshiftObserverNotificationStatusOutputBuilder, +) -> crate::operation::get_autoshift_observer_notification_status::builders::GetAutoshiftObserverNotificationStatusOutputBuilder { + if builder.status.is_none() { + builder.status = "no value was set".parse::The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub applied_status: crate::types::AutoshiftAppliedStatus, - ///The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The time (UTC) when the autoshift started.
pub start_time: ::aws_smithy_types::DateTime, } impl AutoshiftInResource { - ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub fn applied_status(&self) -> &crate::types::AutoshiftAppliedStatus { &self.applied_status } - ///The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
/// This field is required. pub fn applied_status(mut self, input: crate::types::AutoshiftAppliedStatus) -> Self { self.applied_status = ::std::option::Option::Some(input); self } - ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub fn set_applied_status(mut self, input: ::std::option::OptionThe appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub fn get_applied_status(&self) -> &::std::option::OptionThe Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The Availability Zone that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource, when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The time (in UTC) when the autoshift ended.
pub end_time: ::aws_smithy_types::DateTime, @@ -16,7 +16,7 @@ pub struct AutoshiftSummary { pub status: crate::types::AutoshiftExecutionStatus, } impl AutoshiftSummary { - ///The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
The Availability Zone that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
+ ///The Availability Zone (for example, use1-az1
) that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
A control condition is an alarm that you specify for a practice run. When you configure practice runs with zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch to use with the practice run. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting.
+///A control condition is an alarm that you specify for a practice run. When you configure practice runs with zonal autoshift for a resource, you specify Amazon CloudWatch alarms, which you create in CloudWatch to use with the practice run. The alarms that you specify are an outcome alarm, to monitor application health during practice runs and, optionally, a blocking alarm, to block practice runs from starting or to interrupt a practice run in progress.
///Control condition alarms do not apply for autoshifts.
///For more information, see Considerations when you configure zonal autoshift in the Amazon Route 53 Application Recovery Controller Developer Guide.
#[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ControlCondition { - ///The type of alarm specified for a practice run. The only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the only valid value is CLOUDWATCH
.
The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.
+ ///The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
pub alarm_identifier: ::std::string::String, } impl ControlCondition { - ///The type of alarm specified for a practice run. The only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the only valid value is CLOUDWATCH
.
The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.
+ ///The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
pub fn alarm_identifier(&self) -> &str { use std::ops::Deref; self.alarm_identifier.deref() @@ -37,33 +37,33 @@ pub struct ControlConditionBuilder { pub(crate) alarm_identifier: ::std::option::Option<::std::string::String>, } impl ControlConditionBuilder { - ///The type of alarm specified for a practice run. The only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. The only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. The only valid value is CLOUDWATCH
.
The type of alarm specified for a practice run. You can only specify Amazon CloudWatch alarms for practice runs, so the only valid value is CLOUDWATCH
.
The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.
+ ///The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
/// This field is required. pub fn alarm_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.alarm_identifier = ::std::option::Option::Some(input.into()); self } - ///The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.
+ ///The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
pub fn set_alarm_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.alarm_identifier = input; self } - ///The Amazon Resource Name (ARN) for the Amazon CloudWatch alarm that you specify as a control condition for a practice run.
+ ///The Amazon Resource Name (ARN) for an Amazon CloudWatch alarm that you specify as a control condition for a practice run.
pub fn get_alarm_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.alarm_identifier } diff --git a/sdk/arczonalshift/src/types/_practice_run_configuration.rs b/sdk/arczonalshift/src/types/_practice_run_configuration.rs index 19e597340641..997135defc51 100644 --- a/sdk/arczonalshift/src/types/_practice_run_configuration.rs +++ b/sdk/arczonalshift/src/types/_practice_run_configuration.rs @@ -1,6 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. -///A practice run configuration for a resource includes the Amazon CloudWatch alarms that you've specified for a practice run, as well as any blocked dates or blocked windows for the practice run.
+///A practice run configuration for a resource includes the Amazon CloudWatch alarms that you've specified for a practice run, as well as any blocked dates or blocked windows for the practice run. When a resource has a practice run configuration, Route 53 ARC shifts traffic for the resource weekly for practice runs.
+///Practice runs are required for zonal autoshift. The zonal shifts that Route 53 ARC starts for practice runs help you to ensure that shifting away traffic from an Availability Zone during an autoshift is safe for your application.
///You can update or delete a practice run configuration. Before you delete a practice run configuration, you must disable zonal autoshift for the resource. A practice run configuration is required when zonal autoshift is enabled.
#[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] diff --git a/sdk/arczonalshift/src/types/_zonal_shift_in_resource.rs b/sdk/arczonalshift/src/types/_zonal_shift_in_resource.rs index 05f850b4e0f5..89cf2b02b68f 100644 --- a/sdk/arczonalshift/src/types/_zonal_shift_in_resource.rs +++ b/sdk/arczonalshift/src/types/_zonal_shift_in_resource.rs @@ -4,8 +4,8 @@ #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ZonalShiftInResource { - ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub applied_status: crate::types::AppliedStatus, ///The identifier of a zonal shift.
@@ -13,14 +13,14 @@ pub struct ZonalShiftInResource { ///The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::string::String, - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub expiry_time: ::aws_smithy_types::DateTime, ///The time (UTC) when the zonal shift starts.
pub start_time: ::aws_smithy_types::DateTime, - ///A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
+ ///A comment that you enter for a customer-initiated zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
pub comment: ::std::string::String, ///The outcome, or end state, returned for a practice run. The following values can be returned:
///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub fn applied_status(&self) -> &crate::types::AppliedStatus { &self.applied_status @@ -54,12 +54,12 @@ impl ZonalShiftInResource { use std::ops::Deref; self.resource_identifier.deref() } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn expiry_time(&self) -> &::aws_smithy_types::DateTime { &self.expiry_time @@ -68,7 +68,7 @@ impl ZonalShiftInResource { pub fn start_time(&self) -> &::aws_smithy_types::DateTime { &self.start_time } - ///A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
+ ///A comment that you enter for a customer-initiated zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
pub fn comment(&self) -> &str { use std::ops::Deref; self.comment.deref() @@ -110,23 +110,23 @@ pub struct ZonalShiftInResourceBuilder { pub(crate) practice_run_outcome: ::std::option::OptionThe appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
/// This field is required. pub fn applied_status(mut self, input: crate::types::AppliedStatus) -> Self { self.applied_status = ::std::option::Option::Some(input); self } - ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub fn set_applied_status(mut self, input: ::std::option::OptionThe appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one traffic shift active. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-started zonal shifts, or an autoshift. The appliedStatus
field for an autoshift for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an applied status set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-started zonal shifts > autoshifts > practice run zonal shifts.
+ ///The appliedStatus
field specifies which application traffic shift is in effect for a resource when there is more than one active traffic shift. There can be more than one application traffic shift in progress at the same time - that is, practice run zonal shifts, customer-initiated zonal shifts, or an autoshift. The appliedStatus
field for a shift that is in progress for a resource can have one of two values: APPLIED
or NOT_APPLIED
. The zonal shift or autoshift that is currently in effect for the resource has an appliedStatus
set to APPLIED
.
The overall principle for precedence is that zonal shifts that you start as a customer take precedence autoshifts, which take precedence over practice runs. That is, customer-initiated zonal shifts > autoshifts > practice run zonal shifts.
///For more information, see How zonal autoshift and practice runs work in the Amazon Route 53 Application Recovery Controller Developer Guide.
pub fn get_applied_status(&self) -> &::std::option::OptionThe Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// This field is required. pub fn expiry_time(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.expiry_time = ::std::option::Option::Some(input); self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn set_expiry_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.expiry_time = input; self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn get_expiry_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.expiry_time @@ -212,18 +212,18 @@ impl ZonalShiftInResourceBuilder { pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.start_time } - ///A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
+ ///A comment that you enter for a customer-initiated zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
/// This field is required. pub fn comment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.comment = ::std::option::Option::Some(input.into()); self } - ///A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
+ ///A comment that you enter for a customer-initiated zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
pub fn set_comment(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.comment = input; self } - ///A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
+ ///A comment that you enter for a customer-initiated zonal shift. Only the latest comment is retained; no comment history is maintained. That is, a new comment overwrites any existing comment string.
pub fn get_comment(&self) -> &::std::option::Option<::std::string::String> { &self.comment } diff --git a/sdk/arczonalshift/src/types/_zonal_shift_summary.rs b/sdk/arczonalshift/src/types/_zonal_shift_summary.rs index 3dec385f4d1f..4b0a85a01178 100644 --- a/sdk/arczonalshift/src/types/_zonal_shift_summary.rs +++ b/sdk/arczonalshift/src/types/_zonal_shift_summary.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. ///Lists information about zonal shifts in Amazon Route 53 Application Recovery Controller, including zonal shifts that you start yourself and zonal shifts that Route 53 ARC starts on your behalf for practice runs with zonal autoshift.
-///Zonal shifts are temporary, including customer-started zonal shifts and the zonal autoshift practice run zonal shifts that Route 53 ARC starts weekly, on your behalf. A zonal shift that a customer starts can be active for up to three days (72 hours). A practice run zonal shift has a 30 minute duration.
+///Zonal shifts are temporary, including customer-initiated zonal shifts and the zonal autoshift practice run zonal shifts that Route 53 ARC starts weekly, on your behalf. A zonal shift that a customer starts can be active for up to three days (72 hours). A practice run zonal shift has a 30 minute duration.
#[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ZonalShiftSummary { @@ -10,9 +10,9 @@ pub struct ZonalShiftSummary { ///The identifier for the resource to include in a zonal shift. The identifier is the Amazon Resource Name (ARN) for the resource.
///At this time, you can only start a zonal shift for Network Load Balancers and Application Load Balancers with cross-zone load balancing turned off.
pub resource_identifier: ::std::string::String, - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub expiry_time: ::aws_smithy_types::DateTime, ///The time (UTC) when the zonal shift starts.
@@ -56,12 +56,12 @@ impl ZonalShiftSummary { use std::ops::Deref; self.resource_identifier.deref() } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn expiry_time(&self) -> &::aws_smithy_types::DateTime { &self.expiry_time @@ -158,35 +158,35 @@ impl ZonalShiftSummaryBuilder { pub fn get_resource_identifier(&self) -> &::std::option::Option<::std::string::String> { &self.resource_identifier } - ///The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The Availability Zone that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
+ ///The Availability Zone (for example, use1-az1
) that traffic is moved away from for a resource when you start a zonal shift. Until the zonal shift expires or you cancel it, traffic for the resource is instead moved to other Availability Zones in the Amazon Web Services Region.
The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
/// This field is required. pub fn expiry_time(mut self, input: ::aws_smithy_types::DateTime) -> Self { self.expiry_time = ::std::option::Option::Some(input); self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn set_expiry_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self { self.expiry_time = input; self } - ///The expiry time (expiration time) for a customer-started zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
+ ///The expiry time (expiration time) for a customer-initiated zonal shift. A zonal shift is temporary and must be set to expire when you start the zonal shift. You can initially set a zonal shift to expire in a maximum of three days (72 hours). However, you can update a zonal shift to set a new expiration at any time.
///When you start a zonal shift, you specify how long you want it to be active, which Route 53 ARC converts to an expiry time (expiration time). You can cancel a zonal shift when you're ready to restore traffic to the Availability Zone, or just wait for it to expire. Or you can update the zonal shift to specify another length of time to expire in.
pub fn get_expiry_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> { &self.expiry_time diff --git a/sdk/globalaccelerator/src/error_meta.rs b/sdk/globalaccelerator/src/error_meta.rs index eaa25db40012..a53dc3648fba 100644 --- a/sdk/globalaccelerator/src/error_meta.rs +++ b/sdk/globalaccelerator/src/error_meta.rs @@ -276,11 +276,15 @@ where impl FromYou don't have access permission.
+ AccessDeniedException(crate::types::error::AccessDeniedException), ///There was an internal error for Global Accelerator.
InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), ///Processing your request would cause you to exceed an Global Accelerator limit.
LimitExceededException(crate::types::error::LimitExceededException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -299,12 +303,18 @@ impl CreateAcceleratorError { /// pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::LimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } + /// Returns `true` if the error kind is `CreateAcceleratorError::AccessDeniedException`. + pub fn is_access_denied_exception(&self) -> bool { + matches!(self, Self::AccessDeniedException(_)) + } /// Returns `true` if the error kind is `CreateAcceleratorError::InternalServiceErrorException`. pub fn is_internal_service_error_exception(&self) -> bool { matches!(self, Self::InternalServiceErrorException(_)) @@ -317,13 +327,19 @@ impl CreateAcceleratorError { pub fn is_limit_exceeded_exception(&self) -> bool { matches!(self, Self::LimitExceededException(_)) } + /// Returns `true` if the error kind is `CreateAcceleratorError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for CreateAcceleratorError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { + Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), Self::LimitExceededException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -331,9 +347,11 @@ impl ::std::error::Error for CreateAcceleratorError { impl ::std::fmt::Display for CreateAcceleratorError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { + Self::AccessDeniedException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), Self::LimitExceededException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -355,9 +373,11 @@ impl ::aws_smithy_types::retry::ProvideErrorKind for CreateAcceleratorError { impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateAcceleratorError { fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { + Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::LimitExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/create_custom_routing_accelerator.rs b/sdk/globalaccelerator/src/operation/create_custom_routing_accelerator.rs index be446a3d3c80..8d978d3bb726 100644 --- a/sdk/globalaccelerator/src/operation/create_custom_routing_accelerator.rs +++ b/sdk/globalaccelerator/src/operation/create_custom_routing_accelerator.rs @@ -271,6 +271,8 @@ pub enum CreateCustomRoutingAcceleratorError { InvalidArgumentException(crate::types::error::InvalidArgumentException), ///Processing your request would cause you to exceed an Global Accelerator limit.
LimitExceededException(crate::types::error::LimitExceededException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -308,6 +310,7 @@ impl CreateCustomRoutingAcceleratorError { Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::LimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -327,6 +330,10 @@ impl CreateCustomRoutingAcceleratorError { pub fn is_limit_exceeded_exception(&self) -> bool { matches!(self, Self::LimitExceededException(_)) } + /// Returns `true` if the error kind is `CreateCustomRoutingAcceleratorError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for CreateCustomRoutingAcceleratorError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { @@ -335,6 +342,7 @@ impl ::std::error::Error for CreateCustomRoutingAcceleratorError { Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), Self::LimitExceededException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -346,6 +354,7 @@ impl ::std::fmt::Display for CreateCustomRoutingAcceleratorError { Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), Self::LimitExceededException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -371,6 +380,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateCustomR Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::LimitExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/delete_accelerator.rs b/sdk/globalaccelerator/src/operation/delete_accelerator.rs index 78decd0cb5fd..2ce4a24d4bc8 100644 --- a/sdk/globalaccelerator/src/operation/delete_accelerator.rs +++ b/sdk/globalaccelerator/src/operation/delete_accelerator.rs @@ -261,6 +261,8 @@ pub enum DeleteAcceleratorError { InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -299,6 +301,7 @@ impl DeleteAcceleratorError { Self::AssociatedListenerFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -322,6 +325,10 @@ impl DeleteAcceleratorError { pub fn is_invalid_argument_exception(&self) -> bool { matches!(self, Self::InvalidArgumentException(_)) } + /// Returns `true` if the error kind is `DeleteAcceleratorError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for DeleteAcceleratorError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { @@ -331,6 +338,7 @@ impl ::std::error::Error for DeleteAcceleratorError { Self::AssociatedListenerFoundException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -343,6 +351,7 @@ impl ::std::fmt::Display for DeleteAcceleratorError { Self::AssociatedListenerFoundException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -369,6 +378,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteAcceler Self::AssociatedListenerFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/delete_custom_routing_accelerator.rs b/sdk/globalaccelerator/src/operation/delete_custom_routing_accelerator.rs index 5e02a09e73ec..89dac6c709a1 100644 --- a/sdk/globalaccelerator/src/operation/delete_custom_routing_accelerator.rs +++ b/sdk/globalaccelerator/src/operation/delete_custom_routing_accelerator.rs @@ -263,6 +263,8 @@ pub enum DeleteCustomRoutingAcceleratorError { InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -301,6 +303,7 @@ impl DeleteCustomRoutingAcceleratorError { Self::AssociatedListenerFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -324,6 +327,10 @@ impl DeleteCustomRoutingAcceleratorError { pub fn is_invalid_argument_exception(&self) -> bool { matches!(self, Self::InvalidArgumentException(_)) } + /// Returns `true` if the error kind is `DeleteCustomRoutingAcceleratorError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for DeleteCustomRoutingAcceleratorError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { @@ -333,6 +340,7 @@ impl ::std::error::Error for DeleteCustomRoutingAcceleratorError { Self::AssociatedListenerFoundException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -345,6 +353,7 @@ impl ::std::fmt::Display for DeleteCustomRoutingAcceleratorError { Self::AssociatedListenerFoundException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -371,6 +380,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteCustomR Self::AssociatedListenerFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/list_tags_for_resource.rs b/sdk/globalaccelerator/src/operation/list_tags_for_resource.rs index ac61b238b6c3..fa6a1593787a 100644 --- a/sdk/globalaccelerator/src/operation/list_tags_for_resource.rs +++ b/sdk/globalaccelerator/src/operation/list_tags_for_resource.rs @@ -255,10 +255,16 @@ impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListTagsForRe pub enum ListTagsForResourceError { ///The accelerator that you specified doesn't exist.
AcceleratorNotFoundException(crate::types::error::AcceleratorNotFoundException), + ///No cross-account attachment was found.
+ AttachmentNotFoundException(crate::types::error::AttachmentNotFoundException), + ///The endpoint group that you specified doesn't exist.
+ EndpointGroupNotFoundException(crate::types::error::EndpointGroupNotFoundException), ///There was an internal error for Global Accelerator.
InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), + ///The listener that you specified doesn't exist.
+ ListenerNotFoundException(crate::types::error::ListenerNotFoundException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -293,8 +299,11 @@ impl ListTagsForResourceError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AcceleratorNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::AttachmentNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::EndpointGroupNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ListenerNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -302,6 +311,14 @@ impl ListTagsForResourceError { pub fn is_accelerator_not_found_exception(&self) -> bool { matches!(self, Self::AcceleratorNotFoundException(_)) } + /// Returns `true` if the error kind is `ListTagsForResourceError::AttachmentNotFoundException`. + pub fn is_attachment_not_found_exception(&self) -> bool { + matches!(self, Self::AttachmentNotFoundException(_)) + } + /// Returns `true` if the error kind is `ListTagsForResourceError::EndpointGroupNotFoundException`. + pub fn is_endpoint_group_not_found_exception(&self) -> bool { + matches!(self, Self::EndpointGroupNotFoundException(_)) + } /// Returns `true` if the error kind is `ListTagsForResourceError::InternalServiceErrorException`. pub fn is_internal_service_error_exception(&self) -> bool { matches!(self, Self::InternalServiceErrorException(_)) @@ -310,13 +327,20 @@ impl ListTagsForResourceError { pub fn is_invalid_argument_exception(&self) -> bool { matches!(self, Self::InvalidArgumentException(_)) } + /// Returns `true` if the error kind is `ListTagsForResourceError::ListenerNotFoundException`. + pub fn is_listener_not_found_exception(&self) -> bool { + matches!(self, Self::ListenerNotFoundException(_)) + } } impl ::std::error::Error for ListTagsForResourceError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { Self::AcceleratorNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::AttachmentNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::EndpointGroupNotFoundException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), + Self::ListenerNotFoundException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -325,8 +349,11 @@ impl ::std::fmt::Display for ListTagsForResourceError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::AcceleratorNotFoundException(_inner) => _inner.fmt(f), + Self::AttachmentNotFoundException(_inner) => _inner.fmt(f), + Self::EndpointGroupNotFoundException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), + Self::ListenerNotFoundException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -349,8 +376,11 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListTagsForRe fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AcceleratorNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::AttachmentNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::EndpointGroupNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ListenerNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/update_accelerator.rs b/sdk/globalaccelerator/src/operation/update_accelerator.rs index 72d18ffb217f..f0c971326efc 100644 --- a/sdk/globalaccelerator/src/operation/update_accelerator.rs +++ b/sdk/globalaccelerator/src/operation/update_accelerator.rs @@ -255,10 +255,14 @@ pub enum UpdateAcceleratorError { AcceleratorNotFoundException(crate::types::error::AcceleratorNotFoundException), ///You don't have access permission.
AccessDeniedException(crate::types::error::AccessDeniedException), + ///You can't use both of those options.
+ ConflictException(crate::types::error::ConflictException), ///There was an internal error for Global Accelerator.
InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -294,8 +298,10 @@ impl UpdateAcceleratorError { match self { Self::AcceleratorNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -307,6 +313,10 @@ impl UpdateAcceleratorError { pub fn is_access_denied_exception(&self) -> bool { matches!(self, Self::AccessDeniedException(_)) } + /// Returns `true` if the error kind is `UpdateAcceleratorError::ConflictException`. + pub fn is_conflict_exception(&self) -> bool { + matches!(self, Self::ConflictException(_)) + } /// Returns `true` if the error kind is `UpdateAcceleratorError::InternalServiceErrorException`. pub fn is_internal_service_error_exception(&self) -> bool { matches!(self, Self::InternalServiceErrorException(_)) @@ -315,14 +325,20 @@ impl UpdateAcceleratorError { pub fn is_invalid_argument_exception(&self) -> bool { matches!(self, Self::InvalidArgumentException(_)) } + /// Returns `true` if the error kind is `UpdateAcceleratorError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for UpdateAcceleratorError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { Self::AcceleratorNotFoundException(_inner) => ::std::option::Option::Some(_inner), Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), + Self::ConflictException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -332,8 +348,10 @@ impl ::std::fmt::Display for UpdateAcceleratorError { match self { Self::AcceleratorNotFoundException(_inner) => _inner.fmt(f), Self::AccessDeniedException(_inner) => _inner.fmt(f), + Self::ConflictException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -357,8 +375,10 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateAcceler match self { Self::AcceleratorNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/update_accelerator_attributes.rs b/sdk/globalaccelerator/src/operation/update_accelerator_attributes.rs index 5a40eb8df545..565317e70ee2 100644 --- a/sdk/globalaccelerator/src/operation/update_accelerator_attributes.rs +++ b/sdk/globalaccelerator/src/operation/update_accelerator_attributes.rs @@ -261,6 +261,8 @@ pub enum UpdateAcceleratorAttributesError { InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -298,6 +300,7 @@ impl UpdateAcceleratorAttributesError { Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -317,6 +320,10 @@ impl UpdateAcceleratorAttributesError { pub fn is_invalid_argument_exception(&self) -> bool { matches!(self, Self::InvalidArgumentException(_)) } + /// Returns `true` if the error kind is `UpdateAcceleratorAttributesError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for UpdateAcceleratorAttributesError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { @@ -325,6 +332,7 @@ impl ::std::error::Error for UpdateAcceleratorAttributesError { Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -336,6 +344,7 @@ impl ::std::fmt::Display for UpdateAcceleratorAttributesError { Self::AccessDeniedException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -361,6 +370,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateAcceler Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator.rs b/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator.rs index 7ddebae5fe0c..f99191a6f547 100644 --- a/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator.rs +++ b/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator.rs @@ -255,10 +255,14 @@ impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateCustomR pub enum UpdateCustomRoutingAcceleratorError { ///The accelerator that you specified doesn't exist.
AcceleratorNotFoundException(crate::types::error::AcceleratorNotFoundException), + ///You can't use both of those options.
+ ConflictException(crate::types::error::ConflictException), ///There was an internal error for Global Accelerator.
InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -293,8 +297,10 @@ impl UpdateCustomRoutingAcceleratorError { pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AcceleratorNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -302,6 +308,10 @@ impl UpdateCustomRoutingAcceleratorError { pub fn is_accelerator_not_found_exception(&self) -> bool { matches!(self, Self::AcceleratorNotFoundException(_)) } + /// Returns `true` if the error kind is `UpdateCustomRoutingAcceleratorError::ConflictException`. + pub fn is_conflict_exception(&self) -> bool { + matches!(self, Self::ConflictException(_)) + } /// Returns `true` if the error kind is `UpdateCustomRoutingAcceleratorError::InternalServiceErrorException`. pub fn is_internal_service_error_exception(&self) -> bool { matches!(self, Self::InternalServiceErrorException(_)) @@ -310,13 +320,19 @@ impl UpdateCustomRoutingAcceleratorError { pub fn is_invalid_argument_exception(&self) -> bool { matches!(self, Self::InvalidArgumentException(_)) } + /// Returns `true` if the error kind is `UpdateCustomRoutingAcceleratorError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for UpdateCustomRoutingAcceleratorError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { match self { Self::AcceleratorNotFoundException(_inner) => ::std::option::Option::Some(_inner), + Self::ConflictException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -325,8 +341,10 @@ impl ::std::fmt::Display for UpdateCustomRoutingAcceleratorError { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { match self { Self::AcceleratorNotFoundException(_inner) => _inner.fmt(f), + Self::ConflictException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -349,8 +367,10 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateCustomR fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata { match self { Self::AcceleratorNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator_attributes.rs b/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator_attributes.rs index fbf5ceb1b581..accaec25163c 100644 --- a/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator_attributes.rs +++ b/sdk/globalaccelerator/src/operation/update_custom_routing_accelerator_attributes.rs @@ -267,6 +267,8 @@ pub enum UpdateCustomRoutingAcceleratorAttributesError { InternalServiceErrorException(crate::types::error::InternalServiceErrorException), ///An argument that you specified is invalid.
InvalidArgumentException(crate::types::error::InvalidArgumentException), + ///There's already a transaction in progress. Another transaction can't be processed.
+ TransactionInProgressException(crate::types::error::TransactionInProgressException), /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code). #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \ variable wildcard pattern and check `.code()`: @@ -304,6 +306,7 @@ impl UpdateCustomRoutingAcceleratorAttributesError { Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InternalServiceErrorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::InvalidArgumentException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), + Self::TransactionInProgressException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e), Self::Unhandled(e) => &e.meta, } } @@ -323,6 +326,10 @@ impl UpdateCustomRoutingAcceleratorAttributesError { pub fn is_invalid_argument_exception(&self) -> bool { matches!(self, Self::InvalidArgumentException(_)) } + /// Returns `true` if the error kind is `UpdateCustomRoutingAcceleratorAttributesError::TransactionInProgressException`. + pub fn is_transaction_in_progress_exception(&self) -> bool { + matches!(self, Self::TransactionInProgressException(_)) + } } impl ::std::error::Error for UpdateCustomRoutingAcceleratorAttributesError { fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> { @@ -331,6 +338,7 @@ impl ::std::error::Error for UpdateCustomRoutingAcceleratorAttributesError { Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner), Self::InternalServiceErrorException(_inner) => ::std::option::Option::Some(_inner), Self::InvalidArgumentException(_inner) => ::std::option::Option::Some(_inner), + Self::TransactionInProgressException(_inner) => ::std::option::Option::Some(_inner), Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source), } } @@ -342,6 +350,7 @@ impl ::std::fmt::Display for UpdateCustomRoutingAcceleratorAttributesError { Self::AccessDeniedException(_inner) => _inner.fmt(f), Self::InternalServiceErrorException(_inner) => _inner.fmt(f), Self::InvalidArgumentException(_inner) => _inner.fmt(f), + Self::TransactionInProgressException(_inner) => _inner.fmt(f), Self::Unhandled(_inner) => { if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) { write!(f, "unhandled error ({code})") @@ -367,6 +376,7 @@ impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateCustomR Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InternalServiceErrorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::InvalidArgumentException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), + Self::TransactionInProgressException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner), Self::Unhandled(_inner) => &_inner.meta, } } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_create_accelerator.rs b/sdk/globalaccelerator/src/protocol_serde/shape_create_accelerator.rs index 0d1a5559527c..d74e1a1e7a3c 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_create_accelerator.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_create_accelerator.rs @@ -18,6 +18,21 @@ pub fn de_create_accelerator_http_error( let _error_message = generic.message().map(|msg| msg.to_owned()); Err(match error_code { + "AccessDeniedException" => crate::operation::create_accelerator::CreateAcceleratorError::AccessDeniedException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::AccessDeniedExceptionBuilder::default(); + output = crate::protocol_serde::shape_access_denied_exception::de_access_denied_exception_json_err(_response_body, output) + .map_err(crate::operation::create_accelerator::CreateAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "InternalServiceErrorException" => crate::operation::create_accelerator::CreateAcceleratorError::InternalServiceErrorException({ #[allow(unused_mut)] let mut tmp = { @@ -66,6 +81,24 @@ pub fn de_create_accelerator_http_error( } tmp }), + "TransactionInProgressException" => crate::operation::create_accelerator::CreateAcceleratorError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::create_accelerator::CreateAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), _ => crate::operation::create_accelerator::CreateAcceleratorError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_create_custom_routing_accelerator.rs b/sdk/globalaccelerator/src/protocol_serde/shape_create_custom_routing_accelerator.rs index a0cb6b391756..9b2dd25b50cf 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_create_custom_routing_accelerator.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_create_custom_routing_accelerator.rs @@ -89,6 +89,26 @@ pub fn de_create_custom_routing_accelerator_http_error( tmp }) } + "TransactionInProgressException" => { + crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } _ => crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_delete_accelerator.rs b/sdk/globalaccelerator/src/protocol_serde/shape_delete_accelerator.rs index e26c7dc591b3..9f302b8cb666 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_delete_accelerator.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_delete_accelerator.rs @@ -103,6 +103,24 @@ pub fn de_delete_accelerator_http_error( } tmp }), + "TransactionInProgressException" => crate::operation::delete_accelerator::DeleteAcceleratorError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::delete_accelerator::DeleteAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), _ => crate::operation::delete_accelerator::DeleteAcceleratorError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_delete_custom_routing_accelerator.rs b/sdk/globalaccelerator/src/protocol_serde/shape_delete_custom_routing_accelerator.rs index 703173cc4128..4a7302d89fec 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_delete_custom_routing_accelerator.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_delete_custom_routing_accelerator.rs @@ -117,6 +117,26 @@ pub fn de_delete_custom_routing_accelerator_http_error( tmp }) } + "TransactionInProgressException" => { + crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } _ => crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_list_tags_for_resource.rs b/sdk/globalaccelerator/src/protocol_serde/shape_list_tags_for_resource.rs index 7795ac3672ac..d855261af8b8 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_list_tags_for_resource.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_list_tags_for_resource.rs @@ -36,6 +36,40 @@ pub fn de_list_tags_for_resource_http_error( } tmp }), + "AttachmentNotFoundException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::AttachmentNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::AttachmentNotFoundExceptionBuilder::default(); + output = + crate::protocol_serde::shape_attachment_not_found_exception::de_attachment_not_found_exception_json_err(_response_body, output) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), + "EndpointGroupNotFoundException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::EndpointGroupNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::EndpointGroupNotFoundExceptionBuilder::default(); + output = crate::protocol_serde::shape_endpoint_group_not_found_exception::de_endpoint_group_not_found_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "InternalServiceErrorException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServiceErrorException({ #[allow(unused_mut)] let mut tmp = { @@ -69,6 +103,21 @@ pub fn de_list_tags_for_resource_http_error( } tmp }), + "ListenerNotFoundException" => crate::operation::list_tags_for_resource::ListTagsForResourceError::ListenerNotFoundException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ListenerNotFoundExceptionBuilder::default(); + output = crate::protocol_serde::shape_listener_not_found_exception::de_listener_not_found_exception_json_err(_response_body, output) + .map_err(crate::operation::list_tags_for_resource::ListTagsForResourceError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), _ => crate::operation::list_tags_for_resource::ListTagsForResourceError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator.rs b/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator.rs index ea928a4b13a1..a59c1d372bdb 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator.rs @@ -49,6 +49,21 @@ pub fn de_update_accelerator_http_error( } tmp }), + "ConflictException" => crate::operation::update_accelerator::UpdateAcceleratorError::ConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::update_accelerator::UpdateAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "InternalServiceErrorException" => crate::operation::update_accelerator::UpdateAcceleratorError::InternalServiceErrorException({ #[allow(unused_mut)] let mut tmp = { @@ -82,6 +97,24 @@ pub fn de_update_accelerator_http_error( } tmp }), + "TransactionInProgressException" => crate::operation::update_accelerator::UpdateAcceleratorError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::update_accelerator::UpdateAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), _ => crate::operation::update_accelerator::UpdateAcceleratorError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator_attributes.rs b/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator_attributes.rs index 2031d209a805..d22e2f447219 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator_attributes.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_update_accelerator_attributes.rs @@ -90,6 +90,26 @@ pub fn de_update_accelerator_attributes_http_error( } tmp }), + "TransactionInProgressException" => { + crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } _ => crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator.rs b/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator.rs index 30acbc4ea7be..eae69442563c 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator.rs @@ -40,6 +40,21 @@ pub fn de_update_custom_routing_accelerator_http_error( tmp }) } + "ConflictException" => crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::ConflictException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::ConflictExceptionBuilder::default(); + output = crate::protocol_serde::shape_conflict_exception::de_conflict_exception_json_err(_response_body, output) + .map_err(crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), "InternalServiceErrorException" => { crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::InternalServiceErrorException({ #[allow(unused_mut)] @@ -77,6 +92,26 @@ pub fn de_update_custom_routing_accelerator_http_error( tmp }) } + "TransactionInProgressException" => { + crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err( + _response_body, + output, + ) + .map_err(crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::unhandled)?; + let output = output.meta(generic); + output.build() + }; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }) + } _ => crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::generic(generic), }) } diff --git a/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator_attributes.rs b/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator_attributes.rs index 45b2b7116c56..56e77e94822d 100644 --- a/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator_attributes.rs +++ b/sdk/globalaccelerator/src/protocol_serde/shape_update_custom_routing_accelerator_attributes.rs @@ -88,6 +88,22 @@ pub fn de_update_custom_routing_accelerator_attributes_http_error( } tmp }), + "TransactionInProgressException" => crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::TransactionInProgressException({ + #[allow(unused_mut)] + let mut tmp = + { + #[allow(unused_mut)] + let mut output = crate::types::error::builders::TransactionInProgressExceptionBuilder::default(); + output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err(_response_body, output).map_err(crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::unhandled)?; + let output = output.meta(generic); + output.build() + } + ; + if tmp.message.is_none() { + tmp.message = _error_message; + } + tmp + }), _ => crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::generic(generic) }) } diff --git a/sdk/globalaccelerator/src/types/error.rs b/sdk/globalaccelerator/src/types/error.rs index c8dd0f0326be..02cabaddb813 100644 --- a/sdk/globalaccelerator/src/types/error.rs +++ b/sdk/globalaccelerator/src/types/error.rs @@ -17,16 +17,16 @@ pub use crate::types::error::_invalid_port_range_exception::InvalidPortRangeExce pub use crate::types::error::_endpoint_group_not_found_exception::EndpointGroupNotFoundException; +pub use crate::types::error::_transaction_in_progress_exception::TransactionInProgressException; + pub use crate::types::error::_accelerator_not_found_exception::AcceleratorNotFoundException; -pub use crate::types::error::_transaction_in_progress_exception::TransactionInProgressException; +pub use crate::types::error::_conflict_exception::ConflictException; pub use crate::types::error::_attachment_not_found_exception::AttachmentNotFoundException; pub use crate::types::error::_endpoint_not_found_exception::EndpointNotFoundException; -pub use crate::types::error::_conflict_exception::ConflictException; - pub use crate::types::error::_invalid_next_token_exception::InvalidNextTokenException; pub use crate::types::error::_associated_endpoint_group_found_exception::AssociatedEndpointGroupFoundException; diff --git a/sdk/globalaccelerator/src/types/error/builders.rs b/sdk/globalaccelerator/src/types/error/builders.rs index 19705fada06f..bc818e1d11e1 100644 --- a/sdk/globalaccelerator/src/types/error/builders.rs +++ b/sdk/globalaccelerator/src/types/error/builders.rs @@ -17,16 +17,16 @@ pub use crate::types::error::_invalid_port_range_exception::InvalidPortRangeExce pub use crate::types::error::_endpoint_group_not_found_exception::EndpointGroupNotFoundExceptionBuilder; +pub use crate::types::error::_transaction_in_progress_exception::TransactionInProgressExceptionBuilder; + pub use crate::types::error::_accelerator_not_found_exception::AcceleratorNotFoundExceptionBuilder; -pub use crate::types::error::_transaction_in_progress_exception::TransactionInProgressExceptionBuilder; +pub use crate::types::error::_conflict_exception::ConflictExceptionBuilder; pub use crate::types::error::_attachment_not_found_exception::AttachmentNotFoundExceptionBuilder; pub use crate::types::error::_endpoint_not_found_exception::EndpointNotFoundExceptionBuilder; -pub use crate::types::error::_conflict_exception::ConflictExceptionBuilder; - pub use crate::types::error::_invalid_next_token_exception::InvalidNextTokenExceptionBuilder; pub use crate::types::error::_associated_endpoint_group_found_exception::AssociatedEndpointGroupFoundExceptionBuilder; diff --git a/sdk/quicksight/src/client.rs b/sdk/quicksight/src/client.rs index 440721c66fcf..b21a17ed03f6 100644 --- a/sdk/quicksight/src/client.rs +++ b/sdk/quicksight/src/client.rs @@ -59,13 +59,13 @@ pub(crate) struct Handle { /// # Using the `Client` /// /// A client has a function for every operation that can be performed by the service. -/// For example, the [`CancelIngestion`](crate::operation::cancel_ingestion) operation has -/// a [`Client::cancel_ingestion`], function which returns a builder for that operation. +/// For example, the [`BatchCreateTopicReviewedAnswer`](crate::operation::batch_create_topic_reviewed_answer) operation has +/// a [`Client::batch_create_topic_reviewed_answer`], function which returns a builder for that operation. /// The fluent builder ultimately has a `send()` function that returns an async future that /// returns a result, as illustrated below: /// /// ```rust,ignore -/// let result = client.cancel_ingestion() +/// let result = client.batch_create_topic_reviewed_answer() /// .aws_account_id("example") /// .send() /// .await; @@ -136,6 +136,10 @@ impl Client { } } +mod batch_create_topic_reviewed_answer; + +mod batch_delete_topic_reviewed_answer; + mod cancel_ingestion; mod create_account_customization; @@ -193,7 +197,7 @@ mod create_vpc_connection; /// # let client: aws_sdk_quicksight::Client = unimplemented!(); /// use ::http::header::{HeaderName, HeaderValue}; /// -/// let result = client.cancel_ingestion() +/// let result = client.batch_create_topic_reviewed_answer() /// .customize() /// .mutate_request(|req| { /// // Add `x-example-header` with value @@ -407,6 +411,8 @@ mod list_themes; mod list_topic_refresh_schedules; +mod list_topic_reviewed_answers; + mod list_topics; mod list_user_groups; diff --git a/sdk/quicksight/src/client/batch_create_topic_reviewed_answer.rs b/sdk/quicksight/src/client/batch_create_topic_reviewed_answer.rs new file mode 100644 index 000000000000..2e2211d82517 --- /dev/null +++ b/sdk/quicksight/src/client/batch_create_topic_reviewed_answer.rs @@ -0,0 +1,22 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +impl super::Client { + /// Constructs a fluent builder for the [`BatchCreateTopicReviewedAnswer`](crate::operation::batch_create_topic_reviewed_answer::builders::BatchCreateTopicReviewedAnswerFluentBuilder) operation. + /// + /// - The fluent builder is configurable: + /// - [`aws_account_id(impl IntoThe ID of the Amazon Web Services account that you want to create a reviewed answer in.
The ID for the topic reviewed answer that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
The definition of the Answers to be created.
The ID for the topic reviewed answer that you want to create. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
+ /// - [`topic_arn(OptionThe Amazon Resource Name (ARN) of the topic.
+ /// - [`succeeded_answers(OptionThe definition of Answers that are successfully created.
+ /// - [`invalid_answers(OptionThe definition of Answers that are invalid and not created.
+ /// - [`status(i32)`](crate::operation::batch_create_topic_reviewed_answer::BatchCreateTopicReviewedAnswerOutput::status):The HTTP status of the request.
+ /// - [`request_id(OptionThe Amazon Web Services request ID for this operation.
+ /// - On failure, responds with [`SdkErrorThe ID of the Amazon Web Services account that you want to delete a reviewed answers in.
The ID for the topic reviewed answer that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
The Answer IDs of the Answers to be deleted.
The ID of the topic reviewed answer that you want to delete. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
+ /// - [`topic_arn(OptionThe Amazon Resource Name (ARN) of the topic.
+ /// - [`succeeded_answers(OptionThe definition of Answers that are successfully deleted.
+ /// - [`invalid_answers(OptionThe definition of Answers that are invalid and not deleted.
+ /// - [`request_id(OptionThe Amazon Web Services request ID for this operation.
+ /// - [`status(i32)`](crate::operation::batch_delete_topic_reviewed_answer::BatchDeleteTopicReviewedAnswerOutput::status):The HTTP status of the request.
+ /// - On failure, responds with [`SdkErrorThe ID of the Amazon Web Services account that containd the reviewed answers that you want listed.